Chain-of-Thought Reasoning is a Policy Improvement Operator

Hugh Zhang, David C. Parkes · Submission to ICLR 2024 · Rejected

TL;DR

This paper introduces SECToR (Self-Education via Chain-of-Thought Reasoning), demonstrating that chain-of-thought (CoT) reasoning can act as a policy improvement operator for language models, analogous to how Monte-Carlo Tree Search (MCTS) operates in AlphaZero. By using "slow" CoT reasoning to solve problems and distilling those solutions back into "fast" direct prediction, a 582M-parameter model bootstrapped itself from 6-digit addition up to 29-digit addition without any external ground-truth data.

What Problem Does This Paper Address?

State-of-the-art language models are heavily dependent on vast corpora of human-generated training data, raising concerns about looming data exhaustion. While self-training and reinforcement learning via self-play (e.g., AlphaZero) allow systems to reach superhuman capabilities in games, attempts to apply autonomous self-training to language models have repeatedly failed due to error avalanching—a failure mode where small model hallucinations or arithmetic mistakes compound over successive training generations until the model degenerates into nonsense.

Furthermore, language models notoriously struggle with length generalization in arithmetic (e.g., generalizing to add numbers longer than seen during training). The authors explore whether an LLM can autonomously expand its reasoning horizon without external ground-truth feedback.

Methods

SECToR formalizes CoT reasoning as a reinforcement learning policy improvement operator (turning policy $\pi$ into an improved policy $\pi'$ via test-time computation):

  1. Two Modes of Inference:
  2. Fast (Direct) Addition: Emitting the answer immediately without intermediate tokens (Type 1 reasoning).
  3. Slow (CoT) Addition: Decomposing an $N$-digit problem into an $(N-1)$-digit subproblem plus a partial solution digit (Type 2 reasoning).
  4. Supervised Curriculum Initialization: The base model (byte-level ByT5) is trained on 1- to 6-digit addition (both fast and slow) until it exhibits length generalization to $N+1$ digits using slow reasoning.
  5. Autonomous Self-Training Loop:
  6. The model generates slow reasoning solutions for $N+1$ digits via greedy decoding.
  7. To generate fast training targets for $N+1$ digits without human labels, SECToR uses a decoding strategy called simplify-then-guess: the model simplifies the problem step-by-step up to $K$ times ($K=5$), makes a direct "fast" guess after each simplification step, and takes a majority vote over all guesses.
  8. Commutativity Checks: To suppress error avalanching, the model checks consistency by independently computing both $a + b$ and $b + a$. If the predictions do not match, the data point is discarded.
  9. The model is fine-tuned on its self-generated, filtered dataset to master $(N+1)$-digit addition directly.
  10. Iterative Bootstrapping: Once the model learns to directly solve $(N+1)$-digit problems, its slow reasoning operator can reach $(N+2)$ digits, repeating the cycle.

Datasets

The authors evaluate on integer addition:

  • Synthetic Addition Data: Problems of the form $a + b$ and $a + b + 1$, where $a$ and $b$ are uniformly sampled integers with identical digit lengths.
  • Supervised Base Data: Only numbers with 1 to 6 digits (for the 582M model) or up to 8 digits (for the 300M model) were generated programmatically.
  • Self-Trained Data: All training data for digit lengths beyond 6 (up to 29 digits) was entirely self-generated by the model.

Key Insights and Ideas

  • CoT as Search / Policy Improvement: Much like AlphaZero uses MCTS during self-play to generate targets for its policy network, language models can spend inference-time compute via CoT to produce stronger target outputs that are subsequently distilled back into the base weights.
  • Asymmetric Generalization: Models exhibit near-perfect length generalization to $N+1$ digits when using step-by-step recursive simplification (slow), even when their direct execution (fast) length generalization completely fails.
  • Robust Error Suppression is Crucial: Prior self-improvement methods stagnate within a few iterations. Combining simplify-then-guess with mathematical invariants (commutativity: $a+b = b+a$) dramatically drops data generation error rates, allowing self-learning to survive over 20 consecutive cycles.

Key Results

  • 22 Consecutive Steps of Self-Improvement: Starting from supervised training on $\le 6$ digits, the ByT5-582M model autonomously progressed through 22 self-training stages up to 29-digit addition.
  • High Accuracy Without CoT: The final post-training checkpoint achieved 98–100% accuracy on 1- to 29-digit addition, and 88% accuracy on 30-digit addition directly (in "fast" mode without generating scratchpad tokens).
  • Scale Comparison: A smaller 300M-parameter ByT5 model achieved self-learning up to 24-digit addition, though it required supervised initialization up to 8 digits before length generalization emerged.

Limitations and Future Work

  • Task Scope: The proof-of-concept is restricted to addition. It remains an open question whether SECToR extends to non-linear operations (e.g., multiplication), complex mathematical proofs, or programming.
  • Eventual Degradation: Training is not infinite; small unmitigated errors eventually accumulated, causing self-training to terminate at 29 digits.
  • Compute Inefficiency: Generating verified data via multi-step rollouts and commutativity consistency checks requires significant inference compute.
  • Safety in Subjective Domains: In less objective domains lacking rigid invariant checks (unlike arithmetic commutativity), recursive self-training risks reinforcing hallucinations and social biases.

Summary updated

BibTeX
@inproceedings{zhang2023chain,
  author = {Hugh Zhang and David C. Parkes},
  title = {{Chain-of-Thought Reasoning is a Policy Improvement Operator}},
  booktitle = {Instruction @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=bH64KCBzqS},
}
Figure