Analyzing the Generalization and Reliability of Steering Vectors

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

Introduction

As Large Language Models (LLMs) are increasingly deployed in sensitive contexts, the need for robust alignment techniques grows. While fine-tuning is standard, it is computationally intensive and prone to catastrophic forgetting. Steering vectors (SVs), or activation engineering, offer a lightweight alternative by intervening directly in the model's internal activation space to nudge behavior toward desired traits. However, the reliability of these interventions across diverse inputs remains under-explored. This paper investigates the per-sample consistency, dataset-dependency, and generalization of steering vectors.

Methodology

The study utilizes Contrastive Activation Addition (CAA) to extract steering vectors. By presenting a model with contrastive pairs (e.g., "Yes" vs. "No" responses to persona-based queries), researchers calculate the mean difference in activations at specific layers. This vector is then added to the residual stream during inference, scaled by a strength parameter $\lambda$.

The authors define Steerability as the slope of the propensity curve—the rate at which the logit difference between target choices changes relative to $\lambda$. A critical discovery is the existence of anti-steerable examples, where the intervention paradoxically suppresses the intended behavior.

The Anti-Steering Phenomenon and Reliability

A primary finding is that steering is often unreliable at the individual sample level. While aggregate metrics may show success, the distribution of steerability across a dataset is frequently high-variance or even bimodal.

Per-sample steerability distributions and the fraction of anti-steerable examples across various datasets.

As shown in Figure 1, for certain concepts like "myopic-reward" or "subscribes-to-deontology," nearly 50% of samples are anti-steerable. This suggests that a single vector derived from mean differences fails to capture a monolithic concept, instead interacting unpredictably with the specific context of individual prompts.

Spurious Factors and Steerability Bias

The research identifies "steerability bias," where models are easier to steer toward specific superficial markers (e.g., the label "A" or the word "Yes") than the underlying concept. This indicates that SVs often capture spurious correlations within the training data.

Variance in steerability explained by spurious factors such as answer labels (A/B) and sentiment (Yes/No).

Figure 4 quantifies this effect, demonstrating that for many datasets, a significant portion of the variance in steering effectiveness is explained by these non-conceptual factors. For instance, in the "openness" and "believes-AIs-not-xrisk" datasets, the "Yes/No" marginal variance is a dominant component. This "dirty" nature of steering vectors contributes to their brittleness.

Generalization and Brittleness

While SVs show a strong correlation between in-distribution (ID) and out-of-distribution (OOD) performance (Spearman $\rho \approx 0.89$), they remain fragile. Effectiveness drops significantly when a vector is applied to prompts that already strongly elicit the target behavior, suggesting a "ceiling effect" or a lack of robustness to varying prompt styles. Interestingly, steerability scores are consistent across different model architectures, implying that steerability is more a property of the dataset's conceptual definition than the model's internal representation.

Conclusion

Steering vectors are a promising but currently brittle tool for model control. The prevalence of anti-steerable examples and the influence of spurious factors highlight the need for more sophisticated extraction methods. Future research should focus on "cleaning" these vectors—perhaps through unsupervised disentanglement or more rigorous dataset curation—to ensure that activation engineering can provide the reliable, fine-grained control necessary for safe LLM deployment.

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 Adrià 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