A controlled study training transformers from scratch on formally verifiable A* traces. Models trained on reasoning that has nothing to do with the problem at hand match — and often beat — models trained on correct traces. The lesson: intermediate tokens help, but not for the reasons we tell ourselves.
We train 0.5B-parameter transformers from scratch on formally verifiable A* traces for grid-maze pathfinding — a domain where every intermediate token can be checked by a verifier. Three things happen that shouldn't. Models produce correct plans from invalid traces. Models trained on traces from unrelated problems generalize better than models trained on correct traces. Reinforcement learning raises accuracy while lowering trace validity. Taken together, the results argue that so-called "Chains of Thought" do not necessarily mean what they seem to mean.
Pre-trained models make trace-validity a matter of interpretation — natural-language traces are too ambiguous to formally audit. So we shrink the problem until it becomes auditable: 30×30 mazes, four orthogonal actions, a vocabulary of 944 tokens, and an A* validator that replays every create/close operation against an open and closed list.
create x y cG cH / close x y cG cH token stream.Plan accuracy on 1,000 held-out problems per maze type, following 500k-sample training runs. Swapped models see reasoning traces from completely unrelated mazes during training; the target plan is still the correct one for the presented problem.
Instead of fully replacing the trace distribution, we sweep the proportion of examples receiving mismatched traces. A little swapping hurts — a lot of swapping helps. Plan accuracy traces a U; trace validity monotonically collapses. Wilson-trained, 50k samples.
Add 25% swap: accuracy dips. Reach 75–100% swap: accuracy climbs back — and exceeds the normal baseline on Drunkard (OOD).
Trace validity falls monotonically from ~97% (Normal) to 0% (fully Swapped). No U-shape here — accuracy and trace-meaning have decoupled.
GRPO post-training checkpoints for both model families. Each cell shows plan accuracy / trace validity within valid plans, in %.
| Checkpoint | Model Type | Wilson | Kruskal | DFS | Drunkard | SF-style |
|---|---|---|---|---|---|---|
| 0 | Normal | 79.9/ 97.1 | 83.1/ 95.6 | 54.0/ 87.4 | 0.2/ 0.0 | 0.0/ — |
| Swapped | 83.3/ 0.0 | 85.0/ 0.0 | 52.6/ 0.0 | 11.7/ 0.0 | 0.2/ 0.0 | |
| 70 | Normal | 88.9/ 97.9 | 89.1/ 98.1 | 62.3/ 92.1 | 0.0/ — | 0.0/ — |
| Swapped | 93.4/ 0.0 | 93.5/ 0.0 | 67.1/ 0.0 | 14.4/ 0.0 | 0.4/ 0.0 | |
| 140 | Normal | 89.6/ 98.2 | 91.7/ 98.2 | 62.4/ 92.9 | 0.0/ — | 0.0/ — |
| Swapped | 99.5/ 0.0 | 99.3/ 0.0 | 81.9/ 0.0 | 14.4/ 0.0 | 0.4/ 0.0 |
| Checkpoint | Model Type | Wilson | Kruskal | DFS | Drunkard | SF-style |
|---|---|---|---|---|---|---|
| 0 | Normal | 40.8/ 89.0 | 44.6/ 93.0 | 19.9/ 85.4 | 62.1/ 85.2 | 56.2/ 81.1 |
| Swapped | 45.8/ 0.0 | 51.0/ 0.0 | 29.0/ 0.0 | 95.4/ 0.0 | 89.1/ 0.0 | |
| 70 | Normal | 54.2/ 72.0 | 58.8/ 67.7 | 20.7/ 68.6 | 88.0/ 66.9 | 82.4/ 65.3 |
| Swapped | 62.3/ 0.0 | 67.5/ 0.0 | 39.4/ 0.0 | 99.6/ 0.0 | 96.9/ 0.0 | |
| 140 | Normal | 63.7/ 52.1 | 68.8/ 49.9 | 27.9/ 50.5 | 91.2/ 45.7 | 89.1/ 43.4 |
| Swapped | 69.0/ 0.0 | 75.5/ 0.0 | 41.6/ 0.0 | 99.2/ 0.0 | 98.5/ 0.0 |
→ As GRPO pushes plan accuracy up (SF-style Normal: 56.2 → 89.1), trace validity falls (81.1 → 43.4). The swapped model meanwhile climbs to 98.5% with stable 0% trace validity — none of the solving is happening in the visible reasoning.
A popular reading of CoT length says models "think longer" on harder problems — "inference-time scaling." If that were true, model trace length would track A*'s ground-truth trace length. It doesn't.
→ In-distribution, the model learned to imitate the length distribution of its training data, not the computation. One maze-generator further out, that illusion collapses.
@article{valmeekam2026beyond,
title = {Beyond Semantics: The Unreasonable Effectiveness of
Reasonless Intermediate Tokens},
author = {Valmeekam, Karthik and Palod, Vardhan and Stechly, Kaya
and Gundawar, Atharva and Kambhampati, Subbarao},
journal = {Transactions on Machine Learning Research (TMLR)},
year = {2026},
url = {https://openreview.net/forum?id=gDE7YcRC3F}
}
Companion work on pre-trained LLMs fine-tuned for QA: Bhambri, Biswas, Kambhampati — ACL 2026. Builds on Searchformer (Lehnert et al. 2024) and Stream of Search (Gandhi et al. 2024).