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 · Submission to ICLR 2026 · Rejected

TL;DR

Reinforcement learning (RL) substantially boosts large language models' reasoning abilities, but what internal mechanisms actually change? By training lightweight, additive steering vectors via RL and analyzing them with mechanistic interpretability tools (logit lens, path patching, and difference SAEs), this paper reveals that much of the reasoning boost boils down to surprisingly localized, modular interventions: substituting critical opening tokens, suppressing distracting non-English vocabulary, and routing computations through MLPs rather than attention heads.

What Problem Does This Paper Address?

Reasoning-focused post-training (such as RL with verifiable rewards like DeepSeek-R1) produces massive capability jumps in mathematics and logic. However, full model fine-tuning scatters weight updates across billions of parameters, obscuring the precise internal computation shifts that drive these improvements.

To bypass this opacity, the authors exploit a recent discovery: frozen base models injected with simple, trained residual-stream vectors (steering vectors) can match full fine-tuning performance. Because these vectors are isolated, low-dimensional additive shifts, they offer a clean testbed to reverse-engineer exactly what RL teaches a reasoning model to do.

Methods

The authors analyze two base architectures—Qwen2.5-Math-7B and LLaMA-3.1-8B-Instruct—using the following techniques:

  • RL-Trained Steering Vectors: Single and multi-layer additive vectors ($s_\ell \in \mathbb{R}^d$) injected into residual streams and trained using an RLOO (REINFORCE Leave-One-Out) objective on verifiable math problems.
  • Circuit-Level & Path Patching: Breaking down the penultimate layer into its constituent submodules (Query, Key, Value projections, Attention heads, and MLP) to track causal paths.
  • Logit-Lens Probing: Projecting steering shifts directly onto unembedding matrices to decode specific token biases.
  • DiffSAE (Difference Sparse Autoencoders): Training sparse autoencoders specifically on activation differences ($h_{\text{steered}} - h_{\text{base}}$) to identify interpretable latent features correlated with correct vs. incorrect answers.
  • Adaptive Steering: Replacing fixed vectors with a rank-1 LoRA on MLP outputs to evaluate input-dependent dynamic scaling.

Datasets

  • Training: The DeepScaleR dataset, using mathematical correctness verification via Math-Verify to provide RL rewards.
  • Evaluation: Six competitive math reasoning benchmarks:
  • MATH500, MinervaMath, and OlympiadBench (evaluated via Pass@1).
  • AIME 2024/2025 and AMC 2023 (evaluated via Avg@32).
  • No new benchmarks were introduced.

Key Insights and Ideas

  • Last-Layer Steering is Just First-Token Substitution: The final-layer vector operates almost purely at the unembedding layer by heavily boosting opening tokens such as "To" (in Qwen) or "Step" (in LLaMA). Simply prepending "To" as a static prompt prefix to the base model recovers roughly 75% (10–11 points) of the entire last-layer vector’s performance gain.
  • Penultimate Layers Act via MLPs, Bypassing Attention: Isolating the second-to-last layer reveals that attention patterns ($QK$-circuits) remain virtually unaffected. The performance gain routes almost entirely through the Value-to-Output ($V \to W_O$) projection and the MLP, serving to up-weight structural markers (e.g., Python code comment tokens, newlines) and "process" words (e.g., swapping "solution" for "calculations" to discourage premature conclusion).
  • Pre-Final Layers Filter Out Non-English Tokens: Propagated hidden shifts from across early-to-mid layers converge to a shared unembedding bias that strongly downweights foreign language tokens (Chinese, Korean, Thai, Arabic), effectively pruning irrelevant vocabulary subspaces during English math reasoning.
  • Steering Vectors are Transferable and Composable: Steering vectors learned on a base model transfer effectively to other checkpoints within the same model family (e.g., from Qwen-Base to Qwen-Instruct). Furthermore, isolated vectors from distant layers compose additively without retraining, nearing all-layer steering performance.
  • Failure-Predicting Features: DiffSAEs isolated specific latent features that activate up to $5\times$ more frequently during the prompt processing of problems the model ultimately answers incorrectly, hinting that early activations already reflect problem difficulty.

Key Results

  • First-Token Injection: Prepending "To" to prompts on Qwen2.5-Math-7B raises accuracy from 24.8% to 35.5% under greedy decoding and from 14.3% to 25.5% under sampling—reproducing most of the explicit last-layer vector's gain (38.7% greedy / 29.4% sampling).
  • Penultimate MLP Dominance: Bypassing attention entirely (Skip-Attn) preserves over half of the penultimate vector's boost; steering head $V_1$ alone achieves full penultimate performance ($\sim 38.8\%$).
  • Pairwise Composition: Combining two mid-to-late vectors (e.g., $s_{14}$ or $s_{16}$ paired with $s_{25}$) reaches $\sim 43\%$ accuracy on Qwen, effectively matching full multi-layer steering.
  • Adaptive Steering (Rank-1 LoRA): Allowing token-dependent magnitudes closes the gap to full multi-layer steering across the first 20 layers, showing clear layerwise functional specializations (early layers modulate syntactic formatting, mid/late layers modulate reasoning tokens like "when" and "which").

Limitations and Future Work

  • Model Discrepancies: Many strong effects observed on Qwen were markedly weaker on LLaMA (e.g., last-layer token substitution yielded marginal gains on LLaMA, and pairwise vectors often interfered rather than composed).
  • Chat Template Sensitivity: Steering vector transfer failed completely across checkpoints with mismatched chat formatting templates (e.g., LLaMA base vs. instruct).
  • Mid-Layer Mechanisms Unresolved: While early and final layers display clear roles (language filtering and token substitution), the exact mechanistic circuits through which mid-layer vectors alter multi-step reasoning require further investigation.

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