TL;DR
By studying transformers trained from scratch on synthetic reasoning benchmarks, this paper shows that Chain-of-Thought (CoT) supervision acts as a "chemical catalyst" that exponentially accelerates grokking and out-of-distribution generalization. The authors mathematically model this learning curve using a three-parameter logistic function, uncover a temporary "unfaithfulness" phase where models guess answers before mastering reasoning steps, and identify fundamental computational limits where CoT fails to generalize.
What Problem Does This Paper Address?
While Chain-of-Thought (CoT) prompting and fine-tuning consistently boost reasoning performance in large language models, the underlying learning dynamics remain poorly understood. Do transformers learn to reason step-by-step from the start, or do they stumble upon answers via shortcuts? And does CoT fundamentally increase what a transformer can generalize to, or does it merely speed up learning?
The authors investigate these questions through the lens of grokking—the phenomenon where a model transitions abruptly from memorization to generalization long after achieving near-zero training loss.
Methods
- Direct vs. CoT Pretraining: The authors train 12-layer GPT-2 style transformers from scratch under two supervision formats: predicting only the final answer (Direct-Answering) versus emitting intermediate reasoning tokens before the answer (CoT-Guided).
-
Autocatalytic Kinetic Modeling: The authors model the grokking phase transition as an autocatalytic reaction. Generalization accuracy over training step $t$ is approximated via a three-parameter logistic curve in logarithmic steps: $$\text{Acc}(t) = \frac{L}{1 + \exp\left(-k_{\text{fit}}(\log_{10} t - \log_{10} t_0)\right)}$$ where $L$ is accuracy saturation, $t_0$ is the takeoff step, and $k_{\text{fit}}$ is the transition slope. They link these parameters to the chemical Arrhenius equation, treating task complexity as an activation energy barrier ($\Delta$) and training data volume as an effective temperature ($T_{\text{eff}}$).
-
Mechanistic Probing & Causal Tracing: Linear probes track layer-by-layer decodability of facts and answers, while activation patching (causal tracing) identifies which token representations at which layers causally dictate the final answer.
Datasets
The authors designed a synthetic symbolic reasoning benchmark built on structured Knowledge Bases (KBs) to strictly separate memorization from generalization:
- Attributive KB ($\text{KB}_{\text{attr}}$) and Relational KB ($\text{KB}_{\text{rel}}$): 1,000 entities, partitioned into a 90% In-Distribution (ID) set and a 10% Out-of-Distribution (OOD) set.
- Four Symbolic Reasoning Tasks:
- Comparison ($O(k)$): Identifying the entity with max/min attribute value across $k$ entities.
- Sorting ($O(k \log k)$): Ordering $k$ entities by scalar values.
- Composition ($O(k)$): Multi-hop sequential path traversals on a directed multigraph.
- Intersection ($\tilde{O}(k \cdot s)$): Finding a unique entity that satisfies $k$ attribute-value constraints.
All training tuples use ID entities, while evaluation requires generalization to hold-out OOD entities.
Key Insights and Ideas
- CoT Acts as a Learning Catalyst: In the Arrhenius framing, CoT decomposes a single large reasoning barrier ($\Delta$) into smaller intermediate barriers ($\Delta_{\text{trace}}$ and $\Delta_{\text{ans}|\text{trace}}$). This exponential rate boost dramatically brings forward the takeoff point $t_0$.
- The Transient Unfaithfulness Gap: The authors define unfaithfulness as the gap between Final Answer Accuracy and Full Sequence Accuracy. Rather than reasoning faithfully from the start, models pass through an intermediate training regime where they successfully predict the final answer while generating hallucinated or invalid CoT traces. Only with extensive optimization do trace and answer realign.
- The Computational Frontier of CoT: CoT is not a panacea. While it unlocks tasks requiring sequential state tracking (Composition), it fails completely on tasks requiring multi-set constraint filtering (Intersection), regardless of the prompt ordering or intermediate scratchpads used.
- Architectural Dependence: A parameter-matched Mamba (state-space model) failed to generalize on Comparison even with CoT guidance, indicating that transformer attention mechanisms are uniquely biased to exploit CoT context.
Key Results
- Generalization Gains:
- Sorting ($k=3$): CoT-guided models achieved 92% OOD accuracy, whereas non-CoT baselines collapsed at 18%. At $k=4$, CoT achieved 83% vs. non-CoT's 4%.
- Composition ($k=2, 3$): Non-CoT models achieved 0.0% OOD generalization. CoT supervision unlocked 100% OOD accuracy in under 3,000 steps.
- Hard Limits (Intersection): Both direct-answering and CoT models achieved 1.00 ID accuracy but remained near 0% to 7% OOD accuracy, proving that multi-set intersection hits a computational ceiling for standard autoregressive generation.
- Kinetics & Probing:
- The logistic kinetic equation fits empirical grokking dynamics closely, yielding $R^2 \ge 0.90$ across tasks.
- Linear probing shows non-CoT models build representations gradually across layers (peaking at layers 10–12). In CoT models, answer decodability is high across almost all layers once intermediate tokens enter the context window.
Limitations and Future Work
- Synthetic vs. Natural Language Reasoning: The benchmark uses clean synthetic tuples without the syntactic complexity, ambiguity, and broad pretraining priors of large language models.
- Model Scale: Experiments were constrained to a single 12-layer GPT-2 model size. Verifying whether the Arrhenius parameters and unfaithfulness trajectories hold across varying model parameter scales remains for future work.
- Failure Modes of Intermediate Traces: The persistent failure on set intersection questions suggests that standard autoregressive CoT cannot substitute for non-trivial external search or tabular set-matching operations.
Summary updated