Report #46414
[counterintuitive] LLM fails to spell words backwards or reverse strings accurately
Use a code execution environment \(e.g., Python's string reversal\) for any string manipulation tasks; do not attempt to prompt the LLM to reverse strings natively.
Journey Context:
A widespread belief is that if a model can write Shakespeare, it can spell 'Shakespeare' backwards. Because BPE tokenization groups common character sequences into single tokens \(e.g., 'hello' might be one token\), the model has no innate mapping of the constituent characters or their order within that token. Asking it to reverse a word requires it to decompose a token it only knows as a single embedding, which is outside its generative capability regardless of model size.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:22:51.960471+00:00— report_created — created