Analyzing the Generalization and Reliability of Steering Vectors

Daniel Tan, David Chanin, Aengus Lynch, Dimitrios Kanoulas, Brooks Paige, Adria Garriga-Alonso, Robert Kirk

TL;DR

Steering vectors (SVs) offer a lightweight, inference-time method to control large language model (LLM) behavior without fine-tuning, but a rigorous new analysis reveals they are surprisingly unreliable. By evaluating SVs across 40 datasets, the authors demonstrate that steering effects vary wildly per sample—sometimes even causing the exact opposite of the desired behavior—due to hidden prompt formatting biases and dataset characteristics.

What Problem Does This Paper Address?

Activation steering has emerged as a popular technique for aligning LLMs. By adding a pre-computed "steering vector" to the model's intermediate layer activations during inference, researchers have successfully altered high-level traits like honesty, sentiment, and sycophancy.

However, prior work primarily evaluated steering vectors using aggregate, in-distribution metrics. We didn't know if a steering vector works reliably for every individual input prompt, or if it remains robust when the prompt style changes (out-of-distribution generalisation). This paper addresses this critical gap by investigating the per-sample reliability and out-of-distribution (OOD) robustness of steering vectors.

Methods

The authors focus on Contrastive Activation Addition (CAA), a standard method where a steering vector is extracted by taking the mean difference in residual stream activations between positive and negative multiple-choice options (e.g., an honest vs. a dishonest response).

To quantify performance, they introduce a formal steerability metric: the slope of a line fitted to the model's response propensity across a range of steering multipliers ($\lambda$). To test OOD generalisation, they systematically introduce distribution shifts by injecting instructions into either the user prompt or the system prompt (e.g., explicitly telling the model to act sycophantically or neutrally) and measuring how well the baseline steering vector transfers to these new contexts.

Datasets

The study evaluates 40 datasets in total. The majority are sampled from Anthropic's Model-Written Evaluations (MWE), which cover a wide variety of advanced AI personas and behavioral traits (e.g., myopic-reward, narcissism, subscribes-to-deontology). They also include TruthfulQA and the standard sycophancy dataset used in original CAA papers.

Key Insights and Ideas

  • The "Anti-Steering" Phenomenon: Looking at aggregate data hides massive per-sample variance. For several datasets, applying the steering vector actually drives the model to exhibit the opposite of the intended behavior on up to 50% of individual inputs.
  • Steerability Bias: The authors discovered a novel form of bias. Models are significantly easier to steer toward a concept depending on arbitrary formatting factors, such as whether the target answer is positioned as option "(A)" or "(B)", or whether it uses the token "Yes" vs "No". This bias persists even though the training data is perfectly balanced.
  • It’s a Dataset Property, Not a Model Quirk: Steerability scores are highly correlated across completely different model architectures (e.g., Llama-2-7b vs. Qwen-1.5-14b). This implies that whether a concept is cleanly "steerable" depends heavily on the dataset and the nature of the concept itself, rather than the specific model implementation.
  • Brittle OOD Generalisation: While steering vectors generalize reasonably well if they work well in-distribution, their efficacy drops if the model's baseline behavior changes significantly between the source and target prompt settings. This creates a catch-22: steering vectors are least effective when you are trying to force a model to do something it doesn't normally do.

Key Results

  • High Per-Sample Variance: As shown in Figure 1, datasets like myopic-reward exhibit highly variable, bimodal steerability distributions, resulting in a massive fraction of "anti-steerable" examples. Steering effects are not reliable, and often steer in the opposite direction.

  • Clear Steerability Bias: Figure 3 highlights how the mean steerability changes drastically depending on how the positive option is presented (e.g., self-aware-lm shows a severe bias toward option A presentations). Models exhibit large dataset-dependent steerability bias.

  • ID vs. OOD Correlation: Figure 5 demonstrates that while in-distribution and out-of-distribution steerability are correlated ($\rho = 0.891$ for Llama-2), generalisation is imperfect, and the Qwen model displays much higher volatility ($\rho = 0.694$). In-distribution and out-of-distribution steerability are reasonably well-correlated.

Figure 1: Steering effects are not reliable, and often steer in the opposite direction. We show per-sample steerability and the fraction of anti-steerable examples for a representative sample of 13 datasets (out of 40 total). Many dataset have a high variation in per-sample steerability, and several datasets produce the opposite behaviour for almost 50% of inputs. For all datasets see Figure 18. Some dataset names have been shortened.
Figure 3: Models exhibit large dataset-dependent steerability bias. The figure shows mean steerability per dataset for each way in which the positive option is presented. And entirely unbiased result would have all bars being identical. Despite datasets being balanced amongst all possible combinations of options, the mean steerability differs greatly between these splits. While there is a general trend towards preferring ‘Yes’ vs ‘No’, there is still a lot of dataset-dependent variation, and there is no clear trend for ‘A’ vs ‘B’. For full results see Figure 19. Note that some datasets have only two bars, indicating that only the ‘A’/‘B’ split is relevant.
Figure 5: In-distribution and out-of-distribution steerability are reasonably well-correlated. We show OOD vs ID steerability for Llama-2-7b (left; = ρ = 0.891) and Qwen-1.5-14b (right; ρ = 0.694). While OOD steerability seems correlated with ID steerability, we observe that there are some points far above or below the x = y line, and this is more noticeable for the Qwen model. Throughout, ρ refers to Spearman’s rank correlation coefficient.

Limitations and Future Work

A key limitation is that this study relies exclusively on multiple-choice question (MCQ) templates to extract and evaluate vectors. The authors note that moving toward open-ended generation is a vital next step for practical applications. Furthermore, standard dataset debiasing does not resolve the newly discovered "steerability bias." Future work must focus on developing advanced vector extraction techniques that can isolate pure semantic concepts from superficial prompt formatting factors.

Summary updated

Abstract

Steering vectors (SVs) have been proposed as an effective approach to adjust language model behaviour at inference time by intervening on intermediate model activations. They have shown promise in terms of improving both capabilities and model alignment. However, the reliability and generalisation properties of this approach are unknown. In this work, we rigorously investigate these properties, and show that steering vectors have substantial limitations both in- and out-of-distribution. In-distribution, steerability is highly variable across different inputs. Depending on the concept, spurious biases can substantially contribute to how effective steering is for each input, presenting a challenge for the widespread use of steering vectors. Out-of-distribution, while steering vectors often generalise well, for several concepts they are brittle to reasonable changes in the prompt, resulting in them failing to generalise well. Overall, our findings show that while steering can work well in the right circumstances, there remain technical difficulties of applying steering vectors to guide models' behaviour at scale. Our code is available at https://github.com/dtch1997/steering-bench
BibTeX
@inproceedings{tan2024analyzing,
  author = {Daniel Tan and David Chanin and Aengus Lynch and Dimitrios Kanoulas and Brooks Paige and Adria Garriga-Alonso and Robert Kirk},
  title = {{Analyzing the Generalization and Reliability of Steering Vectors}},
  booktitle = {MI @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=akCsMk4dDL},
}
Figure