Report #45180
[counterintuitive] Why does LLM fail to reverse strings or words correctly
Use a code execution tool or external program to perform string reversal operations.
Journey Context:
String reversal looks like a trivial language task, leading developers to believe a better prompt or a larger model will eventually solve it. In reality, transformers process tokens sequentially. Reversing a string requires decomposing multi-character tokens into individual characters, reversing their order, and reassembling them. This is a symbolic computation that autoregressive models perform terribly on because they predict the next most likely token statistically, rather than computing spatial transformations. The 'Reversal Curse' demonstrates this architectural blind spot: models trained on 'A is B' cannot automatically infer 'B is A'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:18:20.723294+00:00— report_created — created