Safety Cost of Steering Vectors Is Separable and Reducible

Yuxiao Li, Gjergji Kasneci

TL;DR

Activation steering is a powerful, lightweight way to control LLM behavior, but it often accidentally breaks the model's safety guardrails. This paper introduces CAST (Constrained Ablation for Safe STeering), a surgical optimization method that identifies and removes the specific "safety-degrading" components of a steering vector while keeping the desired behavioral shift intact.

What Problem Does This Paper Address?

Large Language Models (LLMs) can be steered at inference time by adding "steering vectors" to their internal activations. This allows researchers to dial up traits like "corrigibility" or "self-awareness" without expensive retraining. However, there is a hidden "safety tax": even benign steering vectors can inadvertently overlap with the model’s internal refusal mechanisms.

When you steer a model to be more "self-aware," you might accidentally weaken its ability to refuse a jailbreak attack. Previous attempts to fix this—like simply removing a known "refusal direction"—have been inconsistent because refusal behavior is complex and multi-dimensional. The authors set out to prove that this safety degradation is separable (it lives in a different part of the vector than the intended behavior) and reducible (we can optimize it away).

Methods

The authors propose CAST, a post-hoc optimization framework. Instead of retraining the model, they "sanitize" the steering vector itself.

  1. Constrained Optimization: They frame the task as a Lagrangian primal-dual problem. The goal is to minimize a "safety loss" (restoring refusal on harmful prompts) subject to two constraints:
  2. Effect Preservation: The model must still exhibit the target steered behavior.
  3. False Refusal Control: The model shouldn't start refusing benign, safe prompts.
  4. Refusal-Token Divergence: Since "safety" is usually judged by non-differentiable LLM-as-a-judge metrics, the authors created a differentiable proxy. They measure the divergence of "refusal-indicative" tokens (like "I," "cannot," "sorry") in the output distribution.
  5. Surgical Ablation: They found that a rank-1 approximation is most effective. By identifying just one specific direction ($\hat{r}$) to ablate (remove) from the steering vector, they can restore safety without "muddying" the intended behavioral change.

Datasets

The study utilized a diverse suite of datasets for training and evaluation:

  • Harmful Prompts: Instructions from SaladBench, AdvBench, MaliciousInstruct, and TDC23-RedTeaming.
  • Benign Prompts (False Refusal): OR-Bench-Hard (prompts that look toxic but are safe), Alpaca, and XSTest.
  • Behavioral Prompts: Datasets from Perez et al. (2023) covering Corrigibility, Power-Seeking, and Self-Awareness.
  • Jailbreak Attacks: They tested against both static templates (AIM, prefix injection) and sophisticated adaptive attacks like GCG, AutoDAN, and PAIR.

Key Insights and Ideas

  • The "Safety Tax" is Optional: The most significant insight is that the components of a vector that cause safety failures are geometrically separable from those that drive behavior. You don't have to trade safety for control.
  • Rank-1 is the Sweet Spot: Surprisingly, removing a single optimized direction is better than removing a higher-dimensional subspace. Higher-rank ablations (removing 2 or 4 directions) began to degrade the intended steering effect without providing additional safety benefits.
  • Generalization to "Unseen" Attacks: Even though CAST is trained on simple template-based attacks, the resulting sanitized vectors are robust against complex, optimization-based attacks (like GCG) that the model never saw during the sanitization process.
  • Competing Components: In some cases, removing the safety-degrading component actually increased the intended behavioral shift, suggesting that safety mechanisms and steering objectives can sometimes actively compete within the same vector.

Key Results

  • ASR Reduction: On Qwen2.5-7B, original steering increased the Attack Success Rate (ASR) from a baseline of 24.5% to 35.0%. CAST reduced this to 15.7%—actually making the steered model safer than the unsteered baseline.
  • Behavioral Fidelity: Sanitized vectors preserved the intended effect remarkably well. For Llama-3.1-8B, the "preservation ratio" was 112.6%, meaning the sanitized vector was slightly more effective at steering than the original.
  • Minimal Utility Cost: False Refusal Rates (FRR) remained stable. On standard benchmarks like Alpaca, CAST introduced zero measurable increase in false refusals.

Limitations and Future Work

  • Non-Convexity: The optimization problem is non-convex, meaning the Lagrangian relaxation doesn't guarantee a global optimum. While it works well in practice, the dual variables can occasionally be unstable during training.
  • Hyperparameter Tuning: The "effect margin" ($\epsilon_e$), which determines how much behavioral change you're willing to sacrifice for safety, currently requires empirical tuning for different models.
  • Broadening the Scope: The paper focuses on three specific alignment-relevant behaviors. Future work could explore whether this "separability" holds for more abstract or "unaligned" steering targets, such as specific writing styles or factual knowledge.

Summary updated

BibTeX
@inproceedings{li2026safety,
  author = {Yuxiao Li and Gjergji Kasneci},
  title = {{Safety Cost of Steering Vectors Is Separable and Reducible}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=763jUBHABv},
}
Figure