How does RL Post-training Induce Skill Composition? A Case Study on Countdown

Simon Park, Simran Kaur, Sanjeev Arora

This research paper, recently accepted to a workshop at ICML 2026, investigates a fundamental question in AI: How does Reinforcement Learning (RL) actually improve a model's ability to reason? While we know RL works (as seen in models like DeepSeek-R1 or OpenAI’s o1), the authors argue that we often confuse a model simply getting better at long sequences ("length generalization") with a model learning to combine known skills in entirely new ways ("compositional generalization").

Using the arithmetic game COUNTDOWN as a controlled laboratory, the researchers uncover a structural hierarchy of difficulty that governs how LLMs learn to think.

TL;DR

RL post-training doesn't just sharpen a model's existing knowledge; it enables "compositional generalization," allowing models to solve structural patterns they never saw during training. However, this ability is hit by a "lookahead bottleneck": models master balanced, symmetrical reasoning paths easily but struggle with "right-heavy" structures that require committing to a top-level decision before processing a complex sub-task.

What Problem Does This Paper Address?

The "black box" of RL post-training is a major hurdle in LLM research. We see models gain "reasoning" capabilities, but we don't know if they are just memorizing longer templates or actually learning the underlying logic of composition.

Current evaluations often fail to distinguish between:

  1. Length Generalization: Solving a harder version of a known problem by just doing more of the same steps.
  2. Compositional Generalization: Synthesizing a novel algorithmic structure from familiar components.

The authors aim to disentangle these two and identify exactly which types of logical structures are "easy" or "hard" for autoregressive models to learn via RL.

Methods

The researchers used the COUNTDOWN task (given $n$ numbers, use $\{+, -, \times, \div\}$ to reach a target). To analyze the "shape" of the model's thoughts, they:

  • Parsed solutions into Binary Expression Trees: Each subtree represents a "skill."
  • Developed a Canonicalization Framework: They created a principled way to map mathematically identical but syntactically different expressions (e.g., $(A+B)+C$ vs $C+(A+B)$) to a single "canonical pattern." This allowed them to track exactly which logical structures the model was using.
  • Training: They finetuned Qwen-2.5 models (1.5B to 7B parameters) using GRPO (Group Relative Policy Optimization), a RL algorithm that rewards correct answers and proper formatting.
  • Structural Signatures: They classified patterns by their "shape signature" $[x] \circ [y]$, where $x$ and $y$ are the number of operands in the left and right subtrees.

Datasets

  • Balanced COUNTDOWN Dataset: The authors found that existing datasets are heavily biased toward simple addition/subtraction. They built a new benchmark that enforces a near-uniform distribution over all possible mathematical patterns, ensuring that "simplicity bias" didn't skew the results.
  • Lean 4 Theorem Proving: To see if their findings held in the real world, they performed a preliminary study on formal mathematical proofs in Lean, where proof strategies can also be represented as trees of sub-tasks.

Key Insights and Ideas

  • The "Lookahead Bottleneck": This is the paper's most significant finding. Because LLMs generate text from left to right, they struggle with "right-heavy" patterns like $A / (B - C/D)$. To solve this, the model must commit to the division operator ($/$) before it has even figured out the complex three-term expression on the right. This requires a level of planning that remains a primary failure mode.
  • Balanced is Easier: Models master "balanced" trees (where the workload is split evenly between sub-tasks) much faster than deep, unbalanced ones. A balanced tree has a shallower depth, making it more "compact" for the model to process.
  • RL Induces True Composition: In a "held-out" experiment, the researchers removed specific patterns (like $A/B + C$) from the training data. The RL-trained models were still able to "discover" and use these patterns by composing simpler sub-skills they had learned elsewhere.
  • Hierarchy of Difficulty: The order of skill acquisition is: Balanced > Left-Heavy > Right-Heavy.

Key Results

  • Strong Generalization: Models trained only on 3 or 4 numbers ($n=3, 4$) showed massive improvements on 5 numbers ($n=5$), with Pass@32 reaching nearly 70% for the 1.5B model.
  • Reliability Gap: There is a significant lag between a model first producing a pattern and being able to produce it reliably (defined as >80% precision).
  • Theorem Proving Confirmation: In the Lean dataset, RL-trained models showed a clear preference for balanced proofs (increasing from 51% to 56% of attempts) and a marked avoidance of right-heavy proofs (dropping from 35% to 29%).

Limitations and Future Work

  • Task Scope: The bulk of the work is on the synthetic COUNTDOWN task. While the Lean results are promising, more work is needed to see how these structural bottlenecks manifest in coding or creative writing.
  • Curriculum Design: The study used a uniform distribution of patterns. The authors suggest that future work should explore "curriculum learning"—intentionally feeding the model more "right-heavy" or structurally difficult examples once it has mastered the basics.
  • Post-hoc Analysis: The theorem-proving section was a post-hoc evaluation of an existing model; a dedicated RL training run for theorem proving with these structural controls would be a logical next step.

Summary updated

BibTeX
@inproceedings{park2026how,
  author = {Simon Park and Simran Kaur and Sanjeev Arora},
  title = {{How does RL Post-training Induce Skill Composition? A Case Study on Countdown}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zb8jA9cOxq},
}
Figure