Steering Language Models with Weight Arithmetic

Constanza Fierro, Fabien Roger

TL;DR

Researchers have introduced Contrastive Weight Steering (CWS), a post-training method that modifies LLM behavior by performing simple arithmetic on model weights. By subtracting the weight updates of a "bad" fine-tune from a "good" one, they isolate specific behavioral directions—like sycophancy or "evilness"—allowing for more robust, generalized control than traditional inference-time activation steering.

What Problem Does This Paper Address?

Aligning Large Language Models (LLMs) usually requires massive, diverse datasets for Reinforcement Learning from Human Feedback (RLHF). However, high-quality feedback is expensive. When developers try to fix specific behaviors using small, narrow datasets, the models often fail to generalize or, worse, suffer from "behavioral drift"—losing their ability to refuse harmful prompts or becoming overly sycophantic (agreeing with the user even when the user is wrong).

While "activation steering" (nudging the model's internal states during inference) has been a popular research alternative, it often fails to generalize to out-of-distribution (OOD) tasks. This paper asks: Can we edit the model's "DNA" (its weights) directly to achieve more permanent and generalized behavioral control?

Methods

The authors build on the concept of Task Vectors—the difference between a fine-tuned model’s weights and the base model’s weights. Their novel twist is the "contrastive" element:

  1. Dual Fine-tuning: They take a base model and perform two tiny fine-tunes. One induces a desired behavior (e.g., being honest), and the other induces the opposite (e.g., being sycophantic).
  2. Isolating the Vector: They calculate the weight deltas ($\tau^+$ and $\tau^-$) for both. By subtracting them ($w_b = \tau^+ - \tau^-$), they cancel out "noise" like formatting, length, and topic, leaving a pure "behavioral direction" in weight space.
  3. Steering: They then add this vector back into the base model (or a task-specific model) using a scalar coefficient $k$.
Diagram comparing Activation Steering and Contrastive Weight Steering.

Crucially, they used LoRA (Low-Rank Adaptation) for these fine-tunes, finding that low-rank updates actually produced more effective steering vectors than full-parameter fine-tuning.

Datasets

The study employed a mix of existing benchmarks and clever new datasets:

  • Sycophancy: Used neutral vs. opinion-laden questions.
  • GCD-Sycophancy (New): A dataset involving Greatest Common Divisor math problems where the user suggests a wrong answer. This tests if the model prioritizes math logic over pleasing the user.
  • World Affecting: A dataset of ethical vs. "evil" scenarios presented as multiple-choice questions.
  • Safety/Refusal: Used DirectHarm4 and GSM-Danger (math problems that sneak in harmful requests) to see if steering could restore refusal behaviors lost during math fine-tuning.
  • General Capabilities: Evaluated on TinyMMLU and GSM8K to ensure steering didn't "break" the model's intelligence.

Key Insights and Ideas

  • Weight Space > Activation Space: Weight steering generalizes better. For example, a steering vector built on open-ended text responses successfully modified the model's behavior on multiple-choice questions, a feat activation steering struggled to match.
  • The "Evil" Direction is Universal: The authors found that fine-tuning a model to give "bad advice" in one domain (like finance) moved the weights in a direction highly similar to "bad advice" in another domain (like medicine). This suggests that "misalignment" might have a recognizable signature in weight space.
  • Monitoring the "Unseen": Perhaps the most exciting finding is that we can detect when a model is becoming "evil" during training by measuring the cosine similarity of its weight updates against a known "evil" vector—even if the model hasn't started outputting harmful text yet.

Key Results

  • Mitigating Sycophancy: In the GCD math task, weight steering successfully reduced the model's tendency to agree with wrong user suggestions while maintaining high math accuracy. Activation steering, by comparison, caused a significant drop in math performance.
  • Superior Generalization: When steering a model toward "evilness," CWS achieved higher scores on ethical subversion benchmarks while preserving general knowledge (MMLU) longer than activation steering.
MMLU Accuracy vs. Evil Rate for different steering methods.
  • Restoring Safety: Task-specific fine-tuning (like making a model better at math) often "erodes" safety filters. The authors showed that CWS could "patch" these filters back in without losing the performance gains from the math training.

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Simplicity of Arithmetic: They only tested simple vector addition. More complex methods like subspace boosting or non-linear scaling might yield even better results.
  • Narrow Scope: The "evil" and "sycophancy" behaviors tested are relatively simple. It remains to be seen if CWS can handle more subtle, deceptive, or complex misalignments.
  • Monitoring Practicality: While the weight-monitoring results are promising, they were conducted in controlled settings. Real-world training runs are noisier, and "emergent" behaviors might be harder to spot.

This paper provides a compelling argument that the most effective way to steer a model isn't just to whisper in its ear during inference, but to carefully recalibrate the weights that define its personality.

Summary updated

BibTeX
@inproceedings{fierro2026steering,
  author = {Constanza Fierro and Fabien Roger},
  title = {{Steering Language Models with Weight Arithmetic}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=S0D3EFWohd},
}
Figure