Steering Vectors as a Training Signal in LLM Post-Training

Tiejin Chen, Maunil Vyas, Huaiyuan Yao, Hua Wei

TL;DR

Steering vectors (SVs)—typically used as inference-time "nudges" to alter LLM behavior—can actually serve as a powerful training signal during post-training. By injecting these vectors during Supervised Fine-Tuning (SFT) or using them to "rescue" zero-gradient groups in Reinforcement Learning (RL), researchers can permanently bake desired behaviors into model weights, yielding up to a 12% improvement in reasoning tasks.

What Problem Does This Paper Address?

Post-training LLMs usually involves two main stages: Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL). Both have inherent flaws that this paper seeks to fix using representation-level interventions.

  1. The Off-Policy Gap in SFT: During standard SFT, we use "teacher forcing," where the model is trained to predict the next token of a reference trajectory. However, at inference time, the model generates its own tokens. This creates a mismatch: the model's internal activations during training (on gold data) look very different from its activations during generation (on its own "off-policy" data).
  2. The Zero-Variance Problem in RL: Popular RL algorithms like GRPO rely on comparing multiple rollouts for the same prompt. If a model is particularly weak and all its attempts at a hard math problem are wrong, the reward signal is flat (zero variance). The model receives no gradient and learns nothing from its failures.

The authors ask: Can we use steering vectors—directions in the residual stream that correspond to specific behaviors—not just to control a frozen model, but to guide the optimization of its parameters?

Methods

The authors propose a framework that treats SVs as a persistent training signal across two regimes:

1. The Supervised Regime (SV-SFT & Distillation)

Before training, the authors precompute a "displacement vector" ($V^{l^*}$) by comparing the hidden states of the model's own greedy predictions against the ground-truth reference. During training, this vector is injected into the residual stream at a mid-stack layer (e.g., $L/2 + 1$).

They test two injection methods:

  • Additive: Simply adding the vector to the hidden state.
  • Slerp (Spherical Linear Interpolation): Rotating the hidden state toward the target direction without changing its magnitude, which helps prevent the activations from "falling off" the manifold the model was trained on.

2. The Reinforcement Learning Regime (SV-Rescue)

In the RL setting (using GRPO), they precompute a "correctness-contrast" direction. When the model produces a group where every rollout is incorrect, they project the hidden states of these wrong rollouts onto the correctness direction. This creates a "proxy reward" that ranks the "less wrong" answers higher, providing a gradient even when the verifier provides none.

Figure 1: Overall framework. Panel (A) precomputes the off-policy displacement vector, which serves as the injection signal for the Supervised Regime in (B). In parallel, the Reinforcement Learning Regime in (C) applies the steering mechanism independently to rescue zero-variance rollout groups.

Datasets

The study evaluates performance across a diverse set of benchmarks:

  • Math: GSM8K (grade-school), MATH (competition-level), and DeepScaleR.
  • Code: MBPP and DeepCoder.
  • Reasoning: StrategyQA.
  • Out-of-Distribution (OOD): MATH-500, AIME-24, AIME-25, and LiveCodeBench.

Key Insights and Ideas

  • Internalization, Not Memorization: A crucial finding is that models trained with SVs perform best at inference without the vectors. The training process "internalizes" the behavioral shift into the weights. Re-injecting the vector at inference actually hurts performance, suggesting the model has already moved its representations to the desired target.
  • The "Thinking" Teacher Advantage: The gains from SV-augmented distillation are massive when the teacher is in "thinking mode" (producing long chain-of-thought traces). These traces provide a much richer, more coherent steering signal than standard, terse responses.
  • Layer Placement is Fickle: While mid-stack injection is a good heuristic, the optimal layer is highly model-specific. For example, the "canonical" layer 15 worked for Qwen but was a "valley" of poor performance for Llama-3.2, which preferred layers 10 or 19.
  • Code is Different: Standard reference-based SVs failed on code generation. The authors discovered that for code, the SV often captures "style" (e.g., comments, variable naming) rather than "correctness." To fix this, they had to use an "execution-conditioned" direction (comparing passing vs. failing code).

Key Results

  • Distillation Gains: Using SVs during distillation from a thinking-mode teacher (Qwen3-8B) improved a Qwen2.5-1.5B student's MATH score by 12% over plain distillation.
  • SFT Improvements: On GSM8K, SV-augmented SFT consistently outperformed plain SFT across multiple model families (Qwen and Llama).
  • RL Rescue: In RL settings, SV-Rescue provided a significant boost for the weakest models. For Llama-3.2-3B on GSM8K, it raised accuracy from 81.83% to 84.49%, and up to 86.71% when combined with temperature exploration (SV-Explore).
  • OOD Transfer: The benefits aren't just for the training distribution; the gains transferred cleanly to harder, held-out benchmarks like AIME.
Figure 2: Analysis of our SV-augmented SFT on Qwen2.5-1.5B with GSM8K.

Limitations and Future Work

  • Model Scale: The study focused on models at or below 7B parameters. Whether these representation-level signals scale to 70B+ models remains an open question.
  • Manual Tuning: The "best" layer and injection strength ($\alpha$) currently require a small validation sweep, as there is no principled way to predict them a priori.
  • Coarse Directions: The current SVs are broad "correctness" summaries. Future work could explore finer-grained vectors targeting specific failure modes, reasoning styles, or task subtypes.

Summary updated

BibTeX
@inproceedings{chen2026steering,
  author = {Tiejin Chen and Maunil Vyas and Huaiyuan Yao and Hua Wei},
  title = {{Steering Vectors as a Training Signal in LLM Post-Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jMVLPhJP73},
}
Figure