Reinforcement learning improves math reasoning by influencing key token choices
What RL Brings to Reasoning: A Few Decisions the Base Model Would Not Make
Computation and LanguageMachine Learning
Summary
Solving math problems well requires making good decisions step-by-step. The authors studied how reinforcement learning (RL) helps language models solve math problems better than standard versions. They found that changing just a few important parts of the model’s output, especially the first few words, recovers most of the improvement brought by RL. This shows that the benefit of RL is not just in many small changes but mainly in a few crucial decisions early and later in the reasoning process.
What this means in practice
- •For ai system engineers: Improve mathematical reasoning in language models by selectively incorporating RL-trained token choices without full retraining.
- •For natural language processing developers: Enhance model output quality by triggering specific opening tokens to boost problem-solving performance in complex tasks.
Authors
Siyu Zhang, Yuquan Lu, Yoshua Y. Li, Yifan Ding, Kun Zeng, Yu Huo, Yifu Guo, Rongxiang Weng, Xunliang Cai, Xiaoying Tang
Abstract
Reinforcement learning with verifiable rewards (RLVR) substantially improves mathematical reasoning, but what it adds to the base model remains unclear. We investigate this through a sequence of generation-time interventions on Qwen3-4B-Base, measuring how much of its RL-trained counterpart's gain each intervention recovers on 120 AIME problems. Power sampling with the same 8,192-token output limit brings no gain beyond greedy decoding. Yet borrowing the RL model's token only where the two models' greedy choices differ, roughly 4% of generated positions, recovers 90.5% of the pass@1 gain, with similar recovery across three model pairs on MATH-500. We find that even a single opening token has a substantial effect: forcing the base model to begin with "Alright" recovers 35% of the RL gain. The opening alone is insufficient, however. Later replacements after the same opening add another 5.2 percentage points to pass@1, and the fixed rules we test for inserting reflective words such as "Wait" do not reproduce this benefit. Sparse replacement also retains much of the base model's diversity while staying close to the RL model at pass@1. At k=256, it solves 67.5% of the problems, significantly more than the RL model (61.4%) and a mixture of whole responses matched in pass@1 (61.45%). The comparison is at equal attempt counts rather than equal compute, since rl-replace consults both models at every decoding step. These results show that the opening can recover a meaningful part of the RL gain, but a larger contribution comes from later choices, which can be borrowed while retaining much of the base model's diversity. Code is available at https://github.com/CyrusZhang04/WhatRLBrings.