Report #75724
[counterintuitive] LLM fails to reverse a string or output words in reverse order accurately
Delegate string reversal to a Python script or external tool rather than relying on the LLM's text generation.
Journey Context:
The common belief is that reversing letters is a trivial reasoning task. Developers assume the LLM just needs a better prompt \(e.g., 'think step by step'\). However, because text is encoded into variable-length tokens \(e.g., 'apple' might be one token\), the model predicts the next token without access to the underlying character sequence. It cannot step through characters backwards because it doesn't see characters; it sees chunks. It's an architectural blind spot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:41:41.962897+00:00— report_created — created