Research map / Large language models / Reasoning and chain of thought
Finite State Automata Inside Transformers with Chain-of-Thought: A Mechanistic Study on State Tracking
Yifan Zhang, Wenyu Du, Dongming Jin, Jie Fu, Zhi Jin
Peking University · Key Laboratory of High Confidence Software Technology · The University of Hong Kong · Shanghai AI Laboratory
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
Add chain-of-thought scratchpad to a transformer · A5, A4xZ5, Z60 word problems · sequence accuracy Improved
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add chain-of-thought scratchpad to a transformer | GPT2 transformer · A5, A4xZ5, Z60 word problems | sequence accuracy | Improved |
| Use CoT instead of pause tokens (implicit CoT) | Transformer · state tracking word problems | sequence accuracy | Improved |
| Train on one subset of group elements, test on full set | Transformer+CoT · Z60, A4xZ5, A5 out-of-distribution | sequence accuracy: perfect generalization | No clear effect |
| Inject false previous state q_{i-1} into scratchpad at test time | Transformer+CoT · A5 scratchpad noise | next-token accuracy: approx 0.017 accuracy | Hurt |
| Inject false states other than q_{i-1} into scratchpad | Transformer+CoT · A5 scratchpad noise | next-token accuracy | No clear effect |
| Add noisy-scratchpad (false q_{i-1}) examples to training data (ablation) | Transformer+CoT · A5 scratchpad noise | next-token accuracy: 0.017 -> 0.896 | Improved |
| Add skipped-step examples to training data (ablation) | Transformer+CoT · A5 skipping steps | probe of q_i, q_{i+1}, q_{i+2} | Improved |
| Mask q_{i-2} in final layer (ablation) | Transformer+CoT trained with noise · A5 noisy scratchpad | probe accuracy of q_i: above 0.9 -> nearly zero | Hurt |
| Mask q_{i-2} in final layer (ablation) | Transformer+CoT trained without noise · A5 noisy scratchpad | probe accuracy of q_i | No clear effect |
| Replace absolute positional embedding with NoPE | Transformer+CoT · length generalization | sequence accuracy: 0.99 at length 20 -> 0.00 at 30 | Mixed |
| Scale GPT2-small to GPT2-large | Transformer+CoT · A5 FSA recovery | compression/distinction | No clear effect |
Open problems this paper states
- “Studies only GPT2 models, leaving other models such as Llama unexplored.” → Evidence comes from small models on synthetic arithmetic or group tasks. (an open problem in theory of autoregressive reasoning)
- “State tracking is defined as word problems over cyclic and symmetric groups, which is all the conclusions rest on.” → Evidence comes from small models on synthetic arithmetic or group tasks. (an open problem in theory of autoregressive reasoning)
Open problems in theory of autoregressive reasoning
Do results on small synthetic models and idealized theory carry over to real reasoning LLMs?
- Tested on math or code benchmarks, with open-ended tasks untested. · 8 papers state it
- Theory covers one-layer or simplified models, and deeper cases are only conjectured. · 7 papers state it
- Key hyperparameters must be tuned per task or domain. · 7 papers state it
Closest papers by meaning
- (How) Do Language Models Track State? (ICML 2025 · similarity 0.91)
- Chain of Thought Empowers Transformers to Solve Inherently Serial Problems (ICLR 2024 · similarity 0.90)
- Analyzing the Power of Chain of Thought through Memorization Capabilities (NeurIPS 2025 · similarity 0.90)
- The Illusion of State in State-Space Models (ICML 2024 · similarity 0.88)
- Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization (NeurIPS 2025 · similarity 0.88)
- The Expressive Capacity of State Space Models: A Formal Language Perspective (NeurIPS 2024 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.