Small Vectors, Big Effects: A Mechanistic Study of RL-Induced Reasoning via Steering Vectors

Viacheslav Sinii, Nikita Balagansky, Gleb Gerasimov, Daniil Laptev, Yaroslav Aksenov, Vadim Kurochkin, Alexey Gorbatovski, Boris Shaposhnikov, Daniil Gavrilov

TL;DR

Reinforcement learning (RL) significantly boosts LLM reasoning performance, but how it alters internal circuits remains a black box. This paper uses single-layer trainable steering vectors to mechanistically dissect RL-induced reasoning, revealing that simple token-biasing at the final layer and attention-bypassing MLP shifts in the penultimate layer drive these massive performance gains.

What Problem Does This Paper Address?

Large reasoning models (LRMs) like DeepSeek-R1 achieve remarkable breakthroughs by training with reinforcement learning and verifiable rewards (RLVR) to generate long chain-of-thought reasoning. However, we lack a mechanistic understanding of how RL training actually reshapes the internal computations of a base model. Does it create entirely new circuits, or does it simply amplify existing latent behaviors?

This paper addresses this gap by isolating the effects of RL training to individual layers using lightweight, additive steering vectors in the residual stream. This allows the authors to pinpoint exactly which submodules (attention heads, MLPs, or unembeddings) are responsible for driving the model's newly acquired reasoning behaviors.

Methods

The authors train single-layer steering vectors ($s_\ell \in \mathbb{R}^d$) inserted into the output residual stream of a specific layer $\ell$, keeping all other model weights frozen. These vectors are optimized using the RLOO (Reinforcement Learning from Ourselves) objective in a standard RLVR pipeline.

By training only one vector at a time per model, they isolate inter-layer interactions and establish an upper bound on what a linear intervention at any single layer can achieve. They then analyze these trained vectors using mechanistic interpretability tools like the logit-lens (to read out token preferences), path patching (to localize circuits), and circuit-style analysis within the QK/OV framework.

Datasets

  • Training: The models were trained on the DeepScaleR dataset, which focuses on mathematical problem-solving.
  • Evaluation: Performance was measured across six standard mathematical benchmarks: AIME24, AIME25, AMC23, MATH500, MinervaMath, and OlympiadBench.

Key Insights and Ideas

  • The "First-Token" Hack: The last-layer steering vector acts almost entirely as a token-substitution bias concentrated on the very first generated token. For Qwen, it heavily boosts the token "To", and for Llama, it boosts "Step". Remarkably, simply hardcoding/prefixing these tokens to the prompt without any steering vectors recovers roughly 75% of the last-layer steering vector's performance gain!
  • MLP Over Attention: In the penultimate layer, the steering vector achieves its performance gains while completely bypassing attention mechanisms. Instead, it operates almost entirely through the MLP and unembedding layers to up-weight structural symbols and process words (e.g., changing "solution" to "calculations"), preventing the model from ending its generation prematurely.
  • No Virtual Propagation: Early-layer steering vectors do not simply propagate forward to become "virtual" versions of later-layer vectors. As the induced shifts travel through the network, they diffuse and become nearly orthogonal to the steering vectors trained at later layers, indicating that different layers rely on distinct learned mechanisms.
  • Zero-Shot Vector Transfer: Steering vectors trained on one model can be directly inserted into another model from the same family (e.g., transferring from a base model to an instruct or math-tuned variant) and still retain a significant portion of their performance, showing that the underlying steering directions are highly preserved across fine-tuning variants.

Key Results

  • Substantial Performance Recovery: Single-layer steering vectors recover a massive chunk of full fine-tuning performance. For example, in Qwen2.5-Math-7B, training just the last-layer vector ($s_{27}$) closes over 50% of the gap between the base model and full RL fine-tuning.
Figure 1. Single-layer steering. Mean accuracy on six benchmarks when training a single steering vector sℓat layer ℓ(all other layers frozen). Many layers recover a substantial fraction of the gain from full fine-tuning, implying they captured reasoning-relevant information.
  • Causal Token Substitution: Prefixing "To" to prompts in Qwen2.5-Math-7B boosted accuracy by 10–11 points under both greedy decoding and sampling, matching about three-quarters of the explicit last-layer vector's gain.
  • Penultimate Layer Localization: In the penultimate layer of Qwen2.5-Math-7B ($s_{26}$), patching only the value head $V_1$ completely closed the gap to the full single-layer steering performance, proving the intervention acts purely via the value-output path rather than altering attention patterns.

Limitations and Future Work

  • Model-Specific Variance: While the qualitative findings hold across models, the effects are noticeably cleaner and stronger in Qwen than in Llama. For instance, Llama showed weaker single-token alignment in the last layer and required a cooperative multi-head effect in the penultimate layer rather than localizing to a single value head.
  • The Mid-Layer Mystery: While the paper successfully localizes and explains the mechanisms of the final and penultimate layers, mid-layer steering vectors also yield strong performance improvements but remain much harder to localize to a single submodule. The authors note that pinning down these mid-layer mechanisms is a promising direction for future work.

Summary updated

BibTeX
@inproceedings{sinii2025small,
  author = {Viacheslav Sinii and Nikita Balagansky and Gleb Gerasimov and Daniil Laptev and Yaroslav Aksenov and Vadim Kurochkin and Alexey Gorbatovski and Boris Shaposhnikov and Daniil Gavrilov},
  title = {{Small Vectors, Big Effects: A Mechanistic Study of RL-Induced Reasoning via Steering Vectors}},
  booktitle = {MechInterp @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=M8WDG1TfBb},
}
Figure