TL;DR
When we fine-tune language models with Reinforcement Learning (RL) on math or logic puzzles, are they actually learning new ways to think, or just getting better at retrieving tricks they already learned during pretraining? By building a transparent "glass-box" symbol-rewriting game, the authors show that RL genuinely builds new, higher-level strategies out of basic building blocks. Much like a chess player learning to see whole board patterns instead of individual moves, RL compresses step-by-step operations into reusable mental shortcuts—allowing models to solve problems that were previously out of reach.
What Problem Does This Paper Address?
Post-training Large Language Models (LLMs) using Reinforcement Learning with Verifiable Rewards (RLVR)—where a model gets a simple thumbs-up or thumbs-down on its final answer—has sparked a major debate. One camp argues that RL merely reweights existing behaviors, surfacing solutions already latent in the base model. Another camp claims RL unlocks genuinely new capabilities.
Settling this in standard LLMs is nearly impossible because pretraining data is massive and opaque. When a model suddenly exhibits a clever reasoning step, we can't tell if it invented that step or just dusted off a low-probability memory from the internet. Furthermore, natural language steps are messy and hard to audit for logical validity. We needed a clean room where every rule, pretraining memory, and reasoning step is 100% observable.
Methods
The authors introduce a controlled, synthetic rewrite-grammar environment (think of it like simplified algebraic manipulation) to train a small Transformer from scratch, before scaling their test up to a real 4-billion-parameter LLM (Qwen3-4B).
- Pretraining on Primitives: In the synthetic setup, the model is pretrained on chains of single-step rules: expansions (e.g.,
a -> bc) and contractions (bc -> a). It never sees multi-step shortcuts. - Budget-Constrained Post-Training: The model is given an expanded string and asked to contract it back to a single target character within a strict 256-token budget. Harder problems are designed so that plodding along one primitive rule at a time runs out of tokens—forcing the model to invent shortcuts if it wants the binary final-answer reward.
- Standard Algorithms, Novel Auditing: They compare standard GRPO (Group Relative Policy Optimization, an RL algorithm that compares a group of good and bad rollouts from the same prompt) against Rejection Fine-Tuning (RFT) (an imitation baseline that simply clones successful rollouts). What's novel is the exact trajectory auditing: every generated step is mechanically classified as primitive, a macro contraction (collapsing sequential steps into one), a parallel contraction (doing independent steps simultaneously), or spurious (invalid).
Datasets
Rather than relying on existing benchmarks that an LLM might have memorized, the authors introduce two synthetic, procedurally generated environments:
- Synthetic Rewrite-Grammar Testbed: Generated from a known alphabet where contractions are globally unambiguous. Problems are sorted into Difficulty Buckets 1–5 based on how many primitive steps exceed the 256-token generation limit.
- Opaque Boolean Circuit Simplification: Used to test
Qwen3-4B. Circuits are sequences of logic gate assignments, where gate names are replaced with opaque tokens so the LLM cannot rely on pre-existing knowledge of Boolean algebra. An initial supervised stage teaches single-gate eliminations, and RL is tested on budget-constrained simplification (Buckets D0–D4).
Key Insights and Ideas
- Phased Procedural Chunking: RL doesn't invent shortcuts immediately. First, it strengthens basic primitive rule execution. Around iteration 5,000, it hits a phase transition: it begins "chunking" sequential steps into macros and combining independent steps in parallel, consolidating these discoveries into a stable, reusable toolkit.
- Selectivity, Not Exploration Volume: Why does RL beat RFT? Surprisingly, RFT explores plenty of shortcuts—most of them are just wrong! If a lucky trajectory gets the right final answer despite a flawed intermediate step, RFT blindly clones the whole sequence, "passenger" errors included. GRPO contrasts successes against failures from the same prompt, actively pushing down invalid actions that frequently appear in failed attempts.
- Pretraining Needs "Chaining", Not Just Facts: By tweaking the pretraining data mix, the authors found that just showing the model lots of isolated contractions isn't enough for RL to work its magic later. Pretraining must expose the model to sustained chains of reductions—providing the weak procedural glue that RL later compresses.
Key Results
- Expanding the Capability Frontier: In the synthetic grammar, the pretrained base model gets 0.00% on Difficulty Buckets 4 and 5, even when given 1,024 tries (
pass@1024). After RL post-training, the model reliably solves them within just 16 tries (pass@16), climbing past RFT which plateaus early. - Scaling to a Pretrained LLM: On Boolean circuits, the starting
Qwen3-4Bpolicy solves in-budget problems (39/40 on D0) but barely touches over-budget ones atpass@1024(solving just 3, 1, 1, and 0 out of 40 across D1–D4). With a 64× smaller sampling budget (pass@16), GRPO solves 27, 20, 6, and 4 problems across D1–D4—and 100% of these over-budget wins use valid macros. - True Operational Transfer:
Qwen3-4Bdoesn't just memorize strings. It applies its newly discovered Boolean macros accurately across randomized variable names (20/20 and 22/22 on test circuits) and even generalizes to a structurally related logical schema ($X \lor (Y \oplus Y) \to X$) that was never required during training, succeeding on 7/9 circuits where the starting policy scored zero.
Limitations and Future Work
The primary setup is synthetic by design: in the small scratch-trained Transformer, symbols are arbitrary and macros are fixed strings, meaning the grammar task alone couldn't rule out string memorization (which motivated the Qwen3-4B Boolean circuit experiments). While this controlled approach sacrifices the open-ended messiness of natural language, it makes hidden post-training dynamics measurable. Future work is not explicitly outlined in the main text.
Summary updated