Report #47482
[counterintuitive] The model can't reverse a string or list — it should be trivial with the right prompt
Use code execution for any sequence reversal operation. The model cannot reliably reverse sequences regardless of prompting strategy or model size.
Journey Context:
String reversal appears trivially easy — humans do it in their heads for short strings. But it is nearly impossible for autoregressive models for two compounding reasons. First, tokenization: the model doesn't see individual characters \(see character counting entry\). Second, and more fundamentally, autoregressive generation is inherently forward. To reverse 'hello' to 'olleh', the model must attend to the last token of the input first, then the second-to-last, etc. But the model's learned attention patterns are strongly biased toward left-to-right sequential processing — this is what the vast majority of training data demonstrates. The model has no 'reverse iterator' mechanism. Even when the model can see all tokens \(e.g., reversing a list of distinct items where tokenization isn't the issue\), it still struggles because it must generate in an order opposite to its training distribution. This is the same reason models struggle with 'what letter comes before Q in the alphabet?' — they learned forward associations \(P comes before Q\) but not backward ones \(Q is preceded by P\). Scale does not fix this because more training data reinforces the forward direction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:10:44.623112+00:00— report_created — created