Activation Steering via Generative Causal Mediation

Aruna Sankaranarayanan, Amir Zur, Atticus Geiger, Dylan Hadfield-Menell

TL;DR

Generative Causal Mediation (GCM) is a new framework that identifies the specific components within a Large Language Model (LLM) responsible for complex, free-form behaviors like style transfer or sycophancy. By analyzing entire generated responses rather than single tokens, GCM allows for more precise and generalizable "activation steering," enabling researchers to control model behavior by intervening on as few as 5% of its attention heads.

What Problem Does This Paper Address?

A major goal in AI interpretability is localization: finding the specific "circuits" or neurons responsible for a behavior (e.g., why does the model refuse a harmful prompt?). Traditionally, researchers have used causal mediation analysis to do this, but with a significant limitation: they usually only look at the probability of a single next token or a fixed sequence (like "As an AI language model...").

However, many important AI behaviors—like summarization, creative writing style, or sycophancy—are "diffuse." The signal isn't in one word; it’s spread across a whole paragraph. Existing methods struggle to localize these behaviors because they lack a way to measure the causal effect of internal components on long, unconstrained generations. This paper introduces Generative Causal Mediation (GCM) to bridge this gap, moving beyond single-token proxies to study behaviors in the wild.

Methods

The authors propose GCM as a way to rank model components (specifically attention heads) based on how much they mediate a specific behavior. The process follows three main steps:

  1. Identify the Signal: They use a dataset of contrastive prompt pairs (e.g., "Talk in prose" vs. "Talk in verse").
  2. Measure the Indirect Effect (IE): They run the model on the "original" prompt but "patch" a specific attention head with activations from the "contrastive" prompt. They then measure how much this patch increases the log-likelihood of the model generating the contrastive response (the verse) instead of the original one (the prose).
  3. Steer: Once heads are ranked by their IE, they intervene on the top $k\%$ of heads during inference using techniques like vector addition (adding a "direction" to the activations) or Representation Fine-Tuning (ReFT).

The paper explores three GCM variants:

  • Activation Patching: The precise but computationally expensive "gold standard."
  • Attribution Patching: A much faster linear approximation using gradients.
  • Head Knockouts: A method that identifies necessary heads by zeroing them out.
Figure 1: A schematic overview of Generative Causal Mediation Analysis (GCM) for steering towards the verse style transfer behavior, operationalized as paired original and contrasting inputs with corresponding responses. The LM is run on the original input (Talk in prose. What is time?), while an attention head is patched with its value from the contrasting input (Talk in verse. What is time?). We then measure the indirect effect of this patch on increasing the likelihood of the contrasting response (River without end, time flows silent through) relative to the original response (Time is the unstoppable flow of events). Attention heads are ranked by this effect, and the top k% are patched jointly to steer the model.

Datasets

The researchers evaluated GCM across three distinct tasks using models like SOLAR-10.7B, Qwen1.5-14B, and OLMo-2-13B:

  • Refusal Inducement: Forcing the model to refuse harmless prompts.
  • Sycophancy Reduction: Stopping the model from simply agreeing with a user's stated opinion.
  • Verse Style Transfer: Changing prose responses into poetry.

They created custom contrastive datasets for these tasks and performed robustness tests using "in-the-wild" datasets, including Alpaca (for harmlessness), Sycophancy For NLP, and Reddit WritingPrompts.

Table 2: Illustrative contrastive prompt pairs used for the three task settings.

Key Insights and Ideas

  • Free-form text is a viable signal: You don't need a single "trigger word" to find where a behavior lives in a model. The collective log-likelihood of a 128-token response provides a strong enough signal for causal localization.
  • Attention heads as the unit of control: The authors focused on attention heads because they integrate information across tokens, making them ideal for steering behaviors that are distributed throughout a response.
  • Behavioral Sparsity varies: Some behaviors are easier to find than others. Sycophancy reduction was "trivial" to steer, requiring very few heads, whereas verse style transfer was highly localized to a specific, minimal set of heads.
  • Efficiency vs. Accuracy: Attribution patching (the fast method) performed comparably to full activation patching. This is a huge win for researchers with limited compute, as it requires only two forward passes and one backward pass to rank every head in the model.

Key Results

GCM consistently outperformed standard baselines like linear probes (ITI) and random selection.

  • High Precision: In 8 out of 9 model-task settings, steering just the top 5% of GCM-ranked heads achieved a success rate of at least 80%.
  • Generalization: The discovered "steering vectors" generalized well to unseen, out-of-distribution prompts, with transfer rates between 60% and 80%.
  • Surgical Control: Compared to "global steering" (intervening on all heads), GCM-based local steering was more robust and less likely to cause the model to collapse or become incoherent when using different steering strategies.
Figure 2: A comparison of the best steering success rates achieved by different localization methods at each head sparsity. Each plot shows the best steering success rate (y-axis) achieved when steered a fraction k attention heads (x-axis). At each level of sparsity at least one GCM variant achieves the best steering success rate except in the case of OLMo and Refusal Induction. Per model hyper-parameter search is documented in the appendix(C.1).

Limitations and Future Work

While GCM is powerful, the authors note several areas for further exploration:

  • Component Scope: This study focused exclusively on attention heads. Future work could apply GCM to MLP (Multi-Layer Perceptron) layers or individual neurons.
  • Refusal Evaluation: The authors argue that current "keyword-based" refusal evaluations are too simplistic and used a more nuanced "LM-as-a-judge" approach. They suggest the field needs better metrics for hesitancy and refusal.
  • Linearity Assumption: The success of vector addition suggests these behaviors are represented linearly in the model's latent space, but GCM itself doesn't assume linearity. Exploring non-linear steering remains an open path.

Summary updated

BibTeX
@inproceedings{sankaranarayanan2026activation,
  author = {Aruna Sankaranarayanan and Amir Zur and Atticus Geiger and Dylan Hadfield-Menell},
  title = {{Activation Steering via Generative Causal Mediation}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=tbk5ni9ITW},
}
Figure