Thought leakage in reinforcement learning for large language modelsThe Thinking Leakage in Reinforcement Learning for LLMs
Through intervention experiments, the authors analyzed Qwen3 reinforcement learning in no-think mode and found that its improvement mainly stems from the leakage of thinking from the original think mode's capabilities.
- Hybrid reasoning models trained via RLVR in no-think mode often show improved reasoning accuracy. This paper investigates whether this gain comes from the model learning new problem-solving abilities or merely reactivating reasoning capabilities already present in the model from pretraining or the original think mode (thinking leakage).
- The authors trained Qwen3 models with GRPO in no-think mode and designed causal intervention experiments at three levels: weights, activations, and attention heads, testing the mechanism through weight difference scaling, cross-model exchange of the 8-dimensional think activation subspace, and ablation and patching of key attention heads that read the empty thinking block.
- On Qwen3-8B, replacing the 8-dimensional think subspace eliminated 75% of the RL gain, while backporting transferred 50% of the gain; a few attention heads that read the empty think block carried most of the pattern-shift signal; the GRPO advantage function naturally assigns stronger positive updates to answers with more think-like features.
- Limitations: only drawn from question 5; weight scaling hyperparameters were not validated on a held-out test set; experiments only covered Qwen3 1.7B, 4B, and 8B models and 90 AIME math problems; the paper does not report generalization to multi-turn dialogue, other task domains, or other model architectures.
- Evaluated models
- Qwen3-8BQwen3-4BQwen3-1.7B
- Benchmarks
- AIME 2022–2024DAPO-Math-17k
- Metrics
- AccuracyThinking activation shiftThink win rateResponse lengthReflection words per responseRelative KL reduction
The paper trains Qwen3-1.7B, 4B, and 8B with GRPO in no-thinking mode, proposing that a large part of the accuracy improvement comes from thought leakage, i.e., reactivating the model's original reasoning ability from thinking mode, rather than learning new problem-solving behavior. During training, responses became longer and reflection words increased; the original model judged them as more thinking-like, reaching 94% on 8B, with internal activations shifting 0.56 toward the thinking direction. Intervention experiments show that scaling RL weight updates pushes the model toward thinking mode but does not exceed its accuracy; replacing the 8-dimensional thinking subspace removes 75% of the gain, reverse replacement transfers 50%, and the change goes through attention heads that read empty think blocks. The authors trace the source of this optimization pressure to GRPO advantage signals favoring thinking-like responses.
Why it was selectedUsing weight scaling, activation replacement, and attention head interventions, the paper provides causal evidence that RL gains in no-thinking mode come from reactivating original reasoning abilities.
Paper analysis
What problem does this paper attempt to solve?
Investigating whether the accuracy improvement brought by RLVR training in no-think mode for mixed reasoning models mainly comes from thinking leakage from the original think mode.
Core question: Whether the accuracy gain obtained by mixed reasoning models through reinforcement learning training in no-think mode essentially comes from thinking leakage from the original think mode rather than learning a completely new problem-solving mechanism.
- Problem context and importance: No-think reinforcement learning is widely used in training practice for mixed reasoning models. Models such as Qwen3 switch between think and no-think modes through an empty think block in the dialogue template, and the industry often trains in no-think mode with verifiable reward reinforcement learning (RLVR) to improve reasoning accuracy in no-think scenarios.
- Existing understanding and controversy: There is no mechanistic explanation for the source of the performance improvement from RLVR. Previous research mainly focused on whether reinforcement learning can exceed the latent capability ceiling of the base model, or how to learn to control when to think, but did not investigate whether reinforcement learning targeting one mode in a mixed model retrieves the inherent capability of the other mode.
- Core hypothesis: The thinking leakage hypothesis. The authors hypothesize that the two modes share the same model weights and differ only by a few tokens in the prompt prefix, and the reward optimization pressure of RLVR will push the model to reactivate and reuse the reasoning mechanisms already present in the original model's think mode under no-think mode.
- Research approach and findings: Causal interventions at multiple levels: weights, activations, and attention mechanisms. The authors trained Qwen3 series models with GRPO in no-think mode, combined representation engineering with causal mediation analysis, and tested the existence of thinking leakage and its driving mechanism in the optimization signal.
What related research exists?
The paper reviews related work on the sources of RLVR capability, mixed reasoning control, and residual-stream direction intervention, attributing model performance gains to the reuse of existing mechanisms.
Related work mainly revolves around the mechanisms by which reinforcement learning elicits capabilities in large models, mixed reasoning control, and representation intervention methods:
Verifiable-reward reinforcement learning for large language models
- RL gain and base model latent capability: Yue et al. (2025) found that RL-trained models do not surpass the base model on pass@k; Wang et al. (2025) noted that a single training sample can recover most of the gain; Shao et al. (2025) studied the effect of spurious rewards on RLVR; Zhao et al. (2025) described RL post-training as amplifying behaviors learned during pretraining; Zhu et al. (2025) noted that penalizing only incorrect answers is almost as effective as the full signal.
Mixed reasoning and think control
- Reasoning performance with empty think blocks: Ma et al. (2025) noted that reasoning models prompted with empty think blocks still retain strong problem-solving ability, indicating that the no-think template hides rather than removes this capability.
- Thinking patterns and budget control: Fang et al. (2025) and Zhang et al. (2025) used RL to control the choice of reasoning mode; Aggarwal and Welleck (2025) and Fatemi et al. (2025) controlled reasoning length; Chen et al. (2024) studied overthinking; Hao et al. (2024) attempted hidden reasoning in a continuous latent space.
Weight updates and residual-stream representation intervention
- Weight-update features: Mukherjee et al. (2025) found that RL fine-tunes only a small subnetwork; Hu et al. (2022) proposed LoRA; Ilharco et al. (2023) proposed weight-vector scaling in task arithmetic; Lin et al. (2024) argued that post-training mainly elicits existing capabilities rather than adding new ones.
- Residual-stream directions and causal intervention: Arditi et al. (2024) found that refusal behavior is mediated by a single direction in the residual stream; Meng et al. (2022) and Geva et al. (2023) used activation patching and attention knockout; Prakash et al. (2024) applied cross-model activation patching to fine-tuning analysis; Venhoff et al. (2025) and Ward et al. (2025) extracted think-guiding vectors and noted that reasoning fine-tuning reuses pretrained representations.
Baselines and evaluation benchmarks
- Control settings and benchmark datasets: Experiments used the pretrained, non-fine-tuned Qwen3-1.7B, 4B, and 8B original models as control baselines, performed GRPO training on the DAPO-Math-17k dataset, and evaluated reasoning accuracy and response characteristics on AIME 2022–2024 (90 problems total).
Positioning and distinction of this paper
- Causal mechanism positioning: The authors note that previous work explored whether the base model contains thinking mechanisms, while this paper further uses weight scaling, subspace activation patching, and causal intervention on attention heads to establish a causal link between the think subspace and key attention heads in the original model and the accuracy gain from RL under no-think mode.
How does the paper address this problem?
The authors trained models in no-think mode and used metric analysis, weight scaling, subspace activation patching, and attention head interventions to localize the thinking leakage mechanism.
Overall, the authors propose a thinking leakage analysis framework that compares outputs and hidden states between no-think and think modes, combined with causal intervention experiments to verify the source of the gains.
Experimental Setup and Training Pipeline
- Models and Template Configuration: Used original Qwen3-1.7B, 4B, and 8B models; in think mode, the model generates <think>, reasoning process, and </think> at the start of the assistant turn; in no-think mode, the template appends an empty thinking block <think>\n\n</think>\n\n at the end of the prompt.
- GRPO Reinforcement Learning Training: Trained on DAPO-Math-17k, sampling 256 prompts per step and generating 5 responses per prompt (sampling temperature 1); used PPO clipping objective with clip ratio 0.2, token-level mean loss aggregation, and a KL penalty of 10^-3 on the original model; trained rank-64 LoRA adapters (scaling factor 64) on all linear layers, with learning rate 10^-5.
Thinking Similarity Metrics
- Reflection Word Frequency and Log-Likelihood Win Rate: Counted frequencies of reflection words like wait, hmm, actually; used the original model to compute log-likelihood ratio LLR and defined thinking win rate TWR, measuring the pairwise probability that a response is judged by the original model to favor the think prefix.
- Thinking Activation Shift Metric: Extracted the activation difference between the two modes of the original model on the same text in the residual stream of intermediate layers as the thinking direction v, and defined the thinking activation shift as the normalized projection of the model's activation shift δk after training step k onto v:
αk = (⟨ δk, v ⟩)/(|v|2) This formula quantifies the relative magnitude of the model's internal activation movement along the original model's think mode direction, with αk=1 corresponding to the full difference of the original model's think mode.
Weight and Activation Subspace Causal Interventions
- Weight Update Difference Scaling: Used task arithmetic to evaluate W_0 + c \Delta W (c > 1) without further training to explore the state pointed to by the RL update direction.
- 8-Dimensional Think Subspace Construction: Using the original model's outputs on 128 training prompts, extracted the first two principal components of the normalized activation differences between the two modes to construct an 8-dimensional orthonormal basis matrix Q_l per layer.
- Cross-Model Subspace Activation Patching: During generation, performed subspace replacement on the residual stream of layers 1 to 35:
htarget ← htarget + Ql Ql⊤ (hsource − htarget) This formula precisely replaces the target model's think subspace components with the source model's components during free generation, leaving other activation dimensions unchanged.
Attention Head Ablation and Patching Analysis
- Empty Thinking Block Attention Measurement: Computed the sum of attention weights of each attention head to the 4 tokens of the empty thinking block and averaged across positions.
- Attention Knockout and Single-Head Patching: Used attention knockout to set the attention scores of key heads to the empty thinking block to a very small value and renormalize; or used cross-model patching to replace the output of a single head from the original model with the corresponding head's output from the RL-trained model.
What experiments did the paper conduct?
The authors evaluated the Qwen3 series on AIME and tested the thinking leakage mechanism through weight scaling, activation patching, and attention intervention experiments.
Experimental setup
- Models under test: Qwen3-8B, Qwen3-4B, Qwen3-1.7B (3 models total; released checkpoints not yet RL-trained before evaluation are called original models).
- Evaluation datasets and scale: AIME 2022–2024 (including AIME I and AIME II, 90 math problems total); training set uses DAPO-Math-17k (a 256-problem subset is used for advantage-function analysis and gradient probing).
- Baseline settings: Untuned Qwen3 original models of the corresponding sizes (including think-mode and no-think-mode baselines).
- Metric definitions: AIME accuracy (checks whether the expression inside the last \boxed{} matches the reference answer; answers without a box are counted as incorrect); average generation length (tokens); average number of reflection words per answer; think win rate TWR; think activation shift α and cosine similarity; relative KL divergence reduction R_KL.
- Evaluation method: AIME uses rule-based judgment against the reference answer; TWR uses the original model as a fixed judge (teacher forcing to compute LLR); generation uses sampling temperature 1 and a maximum generation length of 32,768 tokens (32k token budget).
- Sample size and repetitions: AIME evaluation samples 2 samples per problem (180 samples total; some original-model baselines use 8 samples; Tables 5 and 6 both use 2 samples per problem); attention single-head analysis ranks on the first 30 problems and performs held-out validation on the last 60 problems.
Main results
According to Figure 1 and the text of Section 4:
Swipe horizontally to read the table
Model and state AIME accuracy Generation length (tokens) Reflection words (per answer) TWR win rate Activation shift α Qwen3-8B (original model no-think) 0.17 2.7k 1.3 50% 0.00 Qwen3-8B (RL-trained step 67) 0.43 7.2k 13.0 94% 0.56 Qwen3-4B (original model no-think) not reported 3.0k 2.1 50% 0.00 Qwen3-4B (RL-trained step 67) not reported 6.3k 9.5 86% 0.40 Qwen3-1.7B (original model no-think) not reported 2.5k 1.2 50% 0.00 Qwen3-1.7B (RL-trained step 67) not reported 4.7k 3.3 84% 0.21 - Accuracy rises together with length and reflection words: The authors note that all three model sizes show both accuracy improvement and length increase; Qwen3-8B length rose from 2.7k to 7.2k tokens, and reflection words rose from 1.3 to 13.0 (Figure 1b, 1c).
- Outputs are judged by the original model as close to think mode: Qwen3-8B think win rate reached 94%, 4B reached 86%, 1.7B reached 84%; the original model judged the RL-trained no-think outputs as much more think-like (Figure 1d).
- Implicit activations align toward the think direction: Middle-layer activation shift α reached 0.56 on 8B, 0.40 on 4B, and 0.21 on 1.7B, and cosine similarity with the think direction rose from 0.54 to 0.70 on 8B (Figure 1e, 1f).
Weight-update scaling experiment
- What was tested: On Qwen3-8B, the RL weight updates at steps 15 and 67 were applied as W_0 + c \Delta W scaling (c between 1 and 12), and AIME performance and generation behavior were tested in no-think mode.
- Results (with numbers): The scaled model spontaneously generated </think> without <think> ever appearing; the step-67 update produced this token in 6.1% of answers at c=1.5, rising to 50.6% at c=3 (Table 5), with its median position at 91% of the answer (the original model's think mode is 92%); the step-67 update at c=3 raised accuracy to 0.722, and step 15 at c=7 raised it to 0.683, but neither exceeded the original model's think-mode 0.74 (Table 5, Figure 2c).
- Authors' interpretation: The authors argue that the direction pointed to by the weight update directly guides the model to close a think block that was never opened in the prompt, and accuracy approaches but does not exceed think mode; the authors say RL mainly optimizes along the direction of activating the existing think mode.
Cross-model activation subspace patching experiment
- What was tested: Between Qwen3-8B (step 67) and the original model, the 8-dimensional think activation subspace was exchanged during free generation across layers 1 to 35, compared with PCA space and random space.
- Results (with numbers): Without patching, the RL gain G = 0.222 (accuracy 0.411 vs. 0.189); replacing the original model's think subspace into the RL model (original-to-RL) lowered accuracy to 0.244, eliminating 75% of the RL gain (Table 6); conversely replacing the RL model's think subspace into the original model (RL-to-original) raised the original model's accuracy to 0.300, transferring 50% of the gain (Table 6); by comparison, PCA subspace eliminated 22% and transferred 25% of the gain, and random subspace gave -3% and 10% (Table 6).
- Authors' interpretation: The authors argue that an 8-dimensional pattern-discriminating activation subspace alone carries most of the performance gain from reinforcement learning, providing causal evidence for thinking leakage.
Attention-head knockout and single-head patching experiments
- What was tested: The attention distribution over the empty think block at the end of the prompt in the original model was analyzed, with attention knockout and cross-model single-head patching.
- Results (with numbers): In the original model, about 90% of attention heads allocated less than 1% attention weight to the empty think block, and only 5 to 7 heads exceeded 10%; knocking out the top 5% of attention heads gave α of 0.78, 0.88, and 0.66 for 8B, 4B, and 1.7B, with relative KL divergence reductions of 72%, 74%, and 77% (Table 1); in single-head patching, a single head L18H19 produced 44% (8B) and 37% (4B) of the activation shift, and L19H13 produced 54% of the shift on 1.7B (Table 2).
- Authors' interpretation: The authors argue that the original model relies on a few key attention heads to read the empty think block and maintain the no-think state, while RL training pushes the model toward think mode precisely by changing the outputs of these same attention heads.
Other ablations and analyses
- Patching along the think single direction only: On Qwen3-8B, patching only the 1-dimensional think direction original-to-RL eliminated 22% of the RL gain, lower than the 75% for the 8-dimensional subspace (Table 6).
- Expanding the think subspace dimension: In the RL-to-original patch, increasing the subspace from 8 to 16 dimensions raised the transferred gain fraction from 50% to 60% (Section 5.2).
- Single-layer activation guidance in the original model: Directly adding a vector along the original model's own think direction at layer 18 gave 12.4 reflection words at strength a=0.5 with accuracy 0.289; at a=1 accuracy reached 0.600, but 24% of samples exhausted the budget (Table 7).
- Single-step GRPO gradient probing: Using collected training data for single-step optimization, the full GRPO signal increased α by +0.0075, positive-advantage-only by +0.0072, negative-advantage-only by +0.0057, within-group shuffling by -0.0022, and all-+1 weights changed it by only +0.0006 (Table 4).
- Residual-stream write-module decomposition: The term where frozen weights act on changed inputs contributed more than 99% of the activation shift along v; removing the part of the update that writes to the think subspace had no effect on accuracy (accuracy 0.435 vs. 0.431 for the full update) (Table 8).
- Training limit truncation ratio: During training, 14% of training samples for the 8B model reached the 8k token length limit, while the 4B and 1.7B models reached the limit in at most 3% of samples under the 16k limit (Appendix H).
What are some points that can be further explored?
The authors pointed out analysis limitations such as the weight scaling factor not being validated on an independent test set and single-step gradients only probing the initial state, along with suggestions for future evaluation.
Limitations and future directions noted by the authors
- The choice of weight-scaling factor is not held-out validation: The authors note that the weight-scaling factor was determined by exploration on the same 90 AIME problems, so the best performance at c=7 (step 15) and c=3 (step 67) is a selected value rather than a held-out test-set result (Section 5.1, Section B).
- Two matched points are insufficient to establish a general rule: The authors note that although step 15 at c=7 and step 67 at c=2 reach similar activation shifts and accuracy, suggesting that the activation position along the think direction is more informative than the absolute magnitude of the weight update, two data points alone cannot establish this conclusion in a general sense (Section B).
- Activation changes are not limited to the think direction: The authors note that the α metric does not include the component orthogonal to the think direction; on 8B step 67 the orthogonal component has magnitude 0.58 ||v||, so the full activation change does not occur only along the think direction (Section 4, Section A).
- The single-step gradient experiment is only an initial gradient probe: The authors note that the single-step GRPO gradient analysis uses specially collected response data rather than real training batches, and only probes the direction of the initial gradient through the activation shift α, not the actual training evolution (Section 6).
- The frozen-weight dominant term cannot directly distinguish the nature of problem-solving computation: The authors note that more than 99% of the activation shift is dominated by the term where frozen weights act on changed inputs, which is a general property of small updates propagating through deep networks and by itself cannot distinguish whether problem-solving computation reuses existing capabilities or is entirely new computation (Section F).
- Future evaluation should separate new capabilities from invocation of existing ones: In the conclusion, the authors suggest that future evaluations of reasoning post-training should treat "whether RL adds new capabilities" and "whether RL changes how existing capabilities are invoked" as two independent questions to be evaluated separately (Section 7).
Experimental coverage
- Model scope: The experiments cover open-source checkpoints of the Qwen3 series at three parameter scales, 1.7B, 4B, and 8B; no other model families were tested.
- Evaluation tasks and datasets: Reasoning evaluation uses only the 90 competition math problems from AIME 2022–2024, and reinforcement learning training uses the DAPO-Math-17k dataset.
- Depth of intervention analysis: Cross-model activation subspace patching was mainly carried out on Qwen3-8B, fixing the evaluated middle layer and layers 1 to 35, without full free-generation patching for every model size.
- Attention analysis scope: Attention-head knockout and patching analysis is based on fixed responses over the first 2,048 tokens (teacher forcing), and does not cover dynamic attention-head knockout under full-sequence autoregressive free generation.
- Training and generation hyperparameters: Generation fixes sampling temperature at 1 and the maximum token budget at 32,768; the paper does not report generalization results under different sampling temperatures or different length penalties.
Summarize the main content of the paper
The authors analyzed the reinforcement learning gains of Qwen3 in no-think mode and proposed that the performance improvement mainly comes from thinking leakage from the original think mode.
- Research positioning: This study is an interpretability analysis of the post-training mechanism of reinforcement learning for large language models, investigating the mechanism by which mixed reasoning models improve reasoning ability in no-think mode.
- Core question: When rule-based reward reinforcement learning is applied to a dual-mode mixed model under the no-think template, does the accuracy improvement come from the model learning a new problem-solving strategy, or from retrieving and reusing reasoning representations that already exist in the original model's think mode.
- Analysis method: The authors conducted GRPO experiments on Qwen3 (1.7B, 4B, 8B), starting from behavioral appearance (length, reflection words, and log-likelihood win rate) and implicit representation (activation direction projection), and designed three sets of causal interventions: weight-difference extrapolation, cross-model 8-dimensional activation subspace replacement, and knockout of key attention heads that read the empty think block plus single-head patching.
- Core experimental findings:
- On Qwen3-8B, scaling the weight update at step 67 by c=3 raised accuracy to 0.722 (the original model's think mode is 0.74), and 50.6% of answers spontaneously generated the </think> closing marker at the end (Table 5).
- In the cross-model activation patching experiment, replacing the original model's 8-dimensional think subspace into the RL-trained model on Qwen3-8B eliminated 75% of the reinforcement learning gain; backporting raised the original model's accuracy from 0.189 to 0.300, transferring 50% of the gain (Table 6).
- Attention analysis showed that in the original model only 5 to 7 attention heads allocated more than 10% of attention weight to the empty think block; knocking out these heads reduced relative KL divergence by 72% to 77% (Table 1), while in the RL single-head patch, head L18H19 alone accounted for 44% of the activation shift (Table 2).
- Training-signal analysis showed that a single-step GRPO gradient increased the middle-layer think activation shift by +0.0075, and the advantage function naturally assigns larger positive update weights to samples with reflection and thinking features (Table 4).
- Conclusion and implications: The authors argue that the reinforcement learning gain under no-think mode largely reflects a reactivation of the original thinking ability, and the boundary between the two modes is fluid under reinforcement learning; the authors suggest that future evaluations of reasoning post-training should strictly separate the acquisition of new problem-solving abilities from changes in how existing abilities are invoked.