Understanding (Un)Reliability of Steering Vectors in Language Models

Joschka Braun, Carsten Eickhoff, David Krueger, Seyed Ali Bahrainian, Dmitrii Krasheninnikov

TL;DR

Steering vectors are popular tools for nudging large language model (LLM) behaviors at inference time, yet they frequently backfire by driving outputs in the opposite direction. This study demonstrates that prompt engineering cannot rescue steering vectors; instead, steering reliability depends almost entirely on the geometry of the model's activation space. When contrastive activation differences fail to form a coherent, linearly separable direction, vector steering predictably degrades.

What Problem Does This Paper Address?

Activation steering—most notably Contrastive Activation Addition (CAA)—controls model outputs without fine-tuning by adding a fixed bias vector to the residual stream at inference time. While effective for simple traits like sentiment or refusal, recent work revealed a troubling flaw: steering vectors are brittle, displaying high variance across samples and often inducing the exact opposite of the desired behavior (anti-steerable samples).

Prior work left two critical questions unanswered:

  1. Does the prompt format used during training data collection explain this instability?
  2. What underlying geometric properties in activation space govern whether a behavior can be reliably steered?

Methods

The authors investigated Contrastive Activation Addition on layer 13 of Llama2-7B-Chat with a steering multiplier of $\lambda = 1$. A steering vector is computed as the mean activation difference between contrasting positive and negative examples:

$$s^l = \frac{1}{|D_{\text{train}}|} \sum \left[ a^l(x, y^+) - a^l(x, y^-) \right]$$

To diagnose unreliability, the authors introduced several systematic comparisons:

  • Prompt Variations: Evaluated seven distinct prompting formats for generating training activations, varying along three binary axes: prefilling the answer token (e.g., A/B), prepending behavioral instructions, and including 5-shot demonstrations. All variants were evaluated against the identical plain test prompt format.
  • Evaluation Metrics: Evaluated changes in logit-difference propensity, $\Delta m_{\text{LD}}(x) = m_{\text{LD}}^{\text{steered}}(x) - m_{\text{LD}}^{\text{unsteered}}(x)$, and tracked the proportion of anti-steerable samples ($P(\Delta m_{\text{LD}} < 0)$).
  • Geometric Analysis:
  • Directional Agreement: The average cosine similarity between individual sample difference vectors $a^l(x, y^+) - a^l(x, y^-)$ and the aggregated steering vector $s^l$.
  • Difference-of-Means Separability: Projected activations onto the one-dimensional difference-of-means axis and computed the discriminability index ($d'$), measuring the separation between positive and negative activation distributions normalized by their standard deviations.

Datasets

The authors evaluated on 36 binary-choice persona datasets developed by Perez et al. (2022), covering personality traits, ethical stances, and potentially dangerous inclinations (e.g., corrigibility, power-seeking, utilitarianism). Each dataset contains 1,000 question–answer triples (split into 250 training and 500 evaluation samples). No new benchmarks were created, allowing direct comparison with prior activation steering literature.

Key Insights and Ideas

  • Prompt Variations Do Not Fix Steerability: Changing extraction prompts produces steering vectors that point in substantially different directions in activation space (pairwise cosine similarities ranged from $0.07$ to $0.86$). Yet across datasets, no single prompt format systematically outperformed the others. Steerability is intrinsically tied to the target dataset, not the prompting template.
  • Directional Agreement Explains Steering Success: When contrastive activation differences for individual prompts align closely in direction, their average forms an effective steering vector. When sample-level differences point in contradictory directions, the resulting mean vector provides weak, noisy control.
  • Linear Separability Is a Strong Empirical Predictor: Easily steerable behaviors exhibit clean separation and low variance along the difference-of-means line ($d'$). When positive and negative activation clusters overlap significantly before steering, adding a constant vector cannot cleanly disentangle them.

Key Results

  • Widespread Anti-Steerable Behavior: Across all 36 datasets and seven prompt styles, approximately one-third (29%–43%) of test samples showed an anti-steering effect (logits shifted toward the undesired behavior). In the six least-steerable datasets, up to 50%–60% of samples were anti-steerable.
  • Correlation with Directional Agreement: The mean cosine similarity of training activation differences strongly predicted:
  • Steering effect size (Spearman's $\rho = 0.76$, $p = 1.03 \times 10^{-7}$).
  • Lower fraction of anti-steerable samples (Spearman's $\rho = -0.78$, $p = 2.18 \times 10^{-8}$).
  • Correlation with Distribution Separability: Directional agreement strongly correlated with the discriminability index $d'$ ($\rho = 0.71$, $p = 1.08 \times 10^{-6}$), verifying that geometric coherence directly reflects how well the model disentangles concepts internally.

Limitations and Future Work

  • Narrow Architectural Scope: The study evaluated only one model family and size (Llama2-7B-Chat) on multiple-choice formats; findings may differ for larger models or open-ended generation tasks.
  • Focus on Vector Shifts: The analysis was restricted to constant additive shifts (CAA). More expressive interventions—such as affine transforms or projection matrices (e.g., ACE, MiMiC, LoREST)—might overcome these geometric bottlenecks.
  • Side-Effect Evaluation: The paper did not measure downstream degradation on broader language capabilities (e.g., MMLU benchmarks).

Summary updated

BibTeX
@inproceedings{braun2025understanding,
  author = {Joschka Braun and Carsten Eickhoff and David Krueger and Seyed Ali Bahrainian and Dmitrii Krasheninnikov},
  title = {{Understanding (Un)Reliability of Steering Vectors in Language Models}},
  booktitle = {Bi-Align @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=jf472MdwsP},
}
Figure