NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Benefits and Pitfalls of Reinforcement Learning for Language Model Planning: A Theoretical Perspective

Siwei Wang, Yifei Shen, Haoran Sun, Shi Feng, Shang-Hua Teng, Li Dong, Yaru Hao, Wei Chen

TL;DR

While reinforcement learning (RL) significantly boosts the planning capabilities of Large Language Models (LLMs), the theoretical mechanics behind its success have remained a black box. This paper abstracts planning as a graph path-finding problem to prove that Supervised Fine-Tuning (SFT) merely memorizes token co-occurrences, whereas Policy Gradient (PG) generalizes via exploration but suffers from a severe "diversity collapse." In contrast, Q-learning paired with stepwise process rewards avoids this collapse, preserves path diversity, and naturally supports off-policy training.

What Problem Does This Paper Address?

State-of-the-art reasoning models (like OpenAI's o1) rely heavily on reinforcement learning to solve complex, multi-step planning tasks. However, we lack a rigorous theoretical understanding of why RL outperforms traditional SFT in these scenarios, and what hidden failure modes exist within common RL algorithms.

To bridge this gap, the authors abstract planning into a mathematically tractable path-finding problem on an unknown graph. In this setup, nodes represent states (or tokens) and edges represent valid actions. The authors use this framework to analyze the gradient dynamics and stable convergence points of SFT, Policy Gradient (PG), and Q-learning methods.

Methods

The authors evaluate three core learning paradigms within a simplified, single-layer Transformer architecture:

  1. Supervised Fine-Tuning (SFT): Standard autoregressive next-token prediction trained on a fixed dataset of valid paths.
  2. Policy Gradient (PG): On-policy optimization (the mathematical foundation of PPO and GRPO) using binary outcome rewards (1 for a correct path, 0 otherwise), analyzed both with and without KL regularization.
  3. Q-learning: An alternative paradigm that uses model logits to approximate state-action values. The authors analyze Q-learning under two reward structures: outcome rewards (given only at the final target) and process rewards (stepwise feedback penalizing illegal moves and rewarding target reaching).

The mathematical novelty lies in proving exact convergence limits and gradient trajectories for these algorithms under a unified graph abstraction.

Datasets

The theoretical insights are validated using two primary graph environments:

  • Synthetic Erdős-Rényi Graphs: Randomly generated graphs with 100 nodes and an edge probability of 0.15, allowing the authors to precisely isolate training vs. testing splits.
  • Blocksworld: A classic planning benchmark requiring the rearrangement of colored blocks. The authors map every distinct block configuration to a unique node (resulting in a 73-node graph for a 4-block setup) and valid moves to edges, stripping away language semantics to evaluate pure structural planning.

Key Insights and Ideas

  • SFT is a Co-occurrence Memorizer: Theorem 3.1 mathematically demonstrates that SFT simply memorizes token frequencies and co-occurrences from its training data. It fails to learn transitivity (i.e., deducing that if $A \rightarrow B$ and $B \rightarrow C$, then $A \rightarrow C$), which explains why SFT struggles to generalize to unseen planning paths.
  • PG Generalizes via Exploration Data Augmentation: Policy Gradient doesn't succeed because its objective function is inherently superior to SFT; rather, its on-policy exploration acts as an automated data augmentation mechanism, continually discovering and training on new valid paths.
  • The Pitfall of "Diversity Collapse" in PG: Without KL regularization, PG suffers from a critical flaw: it continuously erodes output diversity. Even after achieving 100% training accuracy, the gradient dynamics keep pushing the model until it deterministically outputs only a single path per source-target pair. While KL regularization mitigates this, it introduces a strict trade-off that caps maximum training accuracy.
  • Q-learning Requires Stepwise Process Rewards: When trained purely on final outcomes, Q-learning suffers from severe value bias and collapses. However, when paired with process rewards, Q-learning perfectly recovers the graph structure, maintains optimal path diversity at convergence, and seamlessly executes off-policy learning.

Key Results

  • Graph Topology Recovery: SFT fails to learn low-frequency edges present in the training data. As illustrated in Figure 1, both PG and Q-learning capture the underlying graph connectivity significantly better.
Edge frequency vs weights learned by SFT, SFT+PG, SFT+Q-learning
  • PG Diversity Decay: Empirical testing confirms that as PG training progresses without KL regularization ($\lambda=0$), the model's output diversity steadily drops to 1, meaning it loses the ability to generate alternative valid paths (Figure 2).
Empirical results of PG training
  • Q-learning Pareto Frontier: Q-learning with process rewards circumvents the accuracy-diversity trade-off plaguing PG, achieving high test accuracy while preserving path diversity (Figure 3). Additionally, off-policy Q-learning matches the performance of its on-policy counterpart, offering a massive advantage for scaling up training with large batch sizes.
Empirical comparison of Q-learning vs PG
  • Logit Separation: Stepwise process rewards successfully guide Q-learning logits for feasible next-steps to cleanly separate and converge toward the maximum value over training epochs (Figure 4).
Heatmap of normalized logits from Q-learning

Limitations and Future Work

The primary limitation is the simplicity of the graph abstraction. By stripping away natural language semantics and focusing purely on graph topology, the model omits real-world complexities like prompt formatting, semantic ambiguities, and token-generation overhead.

The authors suggest that promising future directions include extending this gradient analysis to multi-head attention mechanisms, designing more sophisticated process rewards for generalized reasoning, and scaling Q-learning frameworks to full-scale LLM post-training pipelines.

Summary updated

BibTeX
@inproceedings{wang2026benefits,
  author = {Siwei Wang and Yifei Shen and Haoran Sun and Shi Feng and Shang-Hua Teng and Li Dong and Yaru Hao and Wei Chen},
  title = {{Benefits and Pitfalls of Reinforcement Learning for Language Model Planning: A Theoretical Perspective}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=34a6DfHOUF},
}
Figure