Report #74906
[counterintuitive] Why does the LLM fail to count characters or reverse words in a string even with explicit instructions
Offload character-level tasks \(counting, reversing, spelling\) to a Python interpreter or external tool. Do not attempt to solve them via prompting.
Journey Context:
Developers assume the model reads text like humans, character by character. In reality, LLMs consume BPE \(Byte Pair Encoding\) tokens, where a single token might represent 'ing', 'quant', or an entire word. The model literally does not have access to the character composition of tokens without external tool use. No amount of few-shot prompting or chain-of-thought can reliably overcome this architectural blindness because the input features lack the necessary granularity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:19:35.422246+00:00— report_created — created