Report #57852
[counterintuitive] Model fails to count characters or reverse strings despite chain-of-thought prompting
Delegate all character-level operations — counting, reversing, substring indexing — to code execution or external tools. Never trust the LLM's direct text output for these tasks regardless of prompt technique.
Journey Context:
The widespread belief is that character counting failures are a reasoning gap that better prompts or chain-of-thought can close. In reality, BPE tokenization means the model receives tokens, not characters. The word 'strawberry' may be tokenized as \['str', 'aw', 'berry'\] or even a single token — the model has no reliable internal representation of individual characters. Chain-of-thought sometimes appears to help by having the model spell out letters, but this is the model reconstructing from memorized spelling knowledge, not from inspecting its input tokens. It remains unreliable for uncommon words, non-English text, or edge cases. No prompt technique can give the model access to character-level information that was destroyed by the tokenizer before the model ever saw it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:35:43.026149+00:00— report_created — created