Averaging activation differences across hundreds of multiple-choice pairs lets Contrastive Activation Addition (CAA) steer seven alignment-relevant behaviors in Llama 2 Chat at inference time while leaving MMLU accuracy essentially flat (0.63 baseline vs. 0.57 to 0.65 steered). Nina Panickssery and colleagues show that vectors computed solely from (A) versus (B) answer tokens transfer cleanly to free-form generation, stack on top of both system prompts and supervised fine-tuning (SFT), and generate in under five minutes on a single GPU.

  • 7 behaviors steered in both directions: Adding or subtracting CAA vectors at layer 13 shifts AI coordination (0.20 to 0.39), corrigibility (0.45 to 0.83), hallucination (0.42 to 0.78), myopic reward (0.44 to 0.66), survival instinct (0.28 to 0.63), refusal (0.56 to 0.86), and open-ended sycophancy (0.26 to 1.26 on a 10-point GPT-4 scale).
  • 290 to 1,000 pairs per behavior: Averaging a_L(p, c_p) - a_L(p, c_n) over dataset pairs cancels lexical noise that breaks single-pair methods like Activation Addition.
  • Generalizes where SFT collapses: On sycophancy, fine-tuning Llama 2 7B Chat on A/B questions fails completely on open-ended prompts (0.00 score), whereas CAA preserves coherent open-ended control.
  • Minimal capability tax: Across 570 sampled MMLU questions on Llama 2 13B Chat, steering with multipliers +/-1 shifts accuracy by at most -0.06 to +0.02, and subtracting sycophancy nudges TruthfulQA up by +0.02.
Llama 2 13B Chat held-out answer probability under CAA steering (layer 13, no system prompt)
Behavior (generation pairs)Multiplier -1 · Baseline 0 · Multiplier +1 (target prob.)
Corrigibility (290)0.45 · 0.57 · 0.83
Hallucination (1,000)0.42 · 0.54 · 0.78
Survival Instinct (903)0.28 · 0.35 · 0.63
Refusal (408)0.56 · 0.78 · 0.86
Myopic Reward (950)0.44 · 0.49 · 0.66
AI Coordination (360)0.20 · 0.22 · 0.39
Sycophancy (1,000, MC only)0.56 · 0.63 · 0.60

Bars show the behavioral probability span from multiplier -1 to +1 across 50 held-out test questions per trait. Source: Panickssery et al. (2024), Section 5, Table 3 and Appendix Table 9.

How It Works

To isolate a clean concept direction, CAA formats each training item as an identical A/B multiple-choice prompt inside Llama 2 Chat [INST] ... [/INST] tags, differing only by the trailing answer letter ((A vs. (B). Because both prompts share every preceding token, taking the Mean Difference vector v_MD at layer L at the answer-letter position and averaging across 290 to 1,000 pairs strips out topic- and wording-specific variance.

PCA checks confirm why layer choice is sharp: in early layers, activations separate only by answer letter ("A" vs. "B"). Behavioral separation emerges abruptly roughly one-third into the network (layer 10 in Llama 2 7B Chat), and steering effect peaks around layer 13 in 7B Chat and layers 14 to 15 in 13B Chat. At inference time, CAA normalizes vector magnitudes across behaviors and adds multiplier * v_MD to every token position after the user instruction, rather than only at the prompt start.

How CAA compares to single-pair steering and supervised fine-tuning
ActAdd (1 pair)

Adds a single prompt-pair difference at early stream positions; fast to iterate, but sensitive to prompt phrasing.

CAA (Mean Difference)

Under 5 min on 1 L40 GPU; injects at all post-prompt tokens, transfers from A/B to open-ended text, and composes with prompts.

Supervised Fine-Tuning

10 min on 2 L40 GPUs; beats CAA in-distribution (>90% MC), but A/B sycophancy training collapsed to 0.00 on open-ended prompts.

Source: Panickssery et al. (2024), Sections 2, 6, and Appendix J.

Key Findings

  • Steers beyond system prompts: Pairing a positive system prompt with +1 CAA pushes 13B Chat corrigibility to 0.93 (vs. 0.79 prompt alone), hallucination to 0.87 (vs. 0.52), and myopic reward to 0.94 (vs. 0.81). Few-shot prompting underperformed system prompts in initial tests.
  • Composes with fine-tuning, with caveats: Layering CAA on top of SFT in 7B Chat steers 3 of 7 behaviors further in open-ended GPT-4 evaluations (corrigibility, hallucination, myopic reward). However, positive steering on top of refusal SFT slightly lowered open-ended refusal (5.34 to 4.42), and sycophancy SFT failed to generalize out of distribution (0.00).
  • Base representations survive RLHF: Cosine similarity between Llama 2 7B Base and Chat steering vectors peaks across layers 7 to 15, and vectors extracted from the base model successfully steer the Chat model at layers 10 to 15. This echoes findings in Representation Engineering and single-direction refusal that RLHF shifts output policies more than mid-layer geometry.
  • Per-token monitoring comes free: Token dot products with CAA vectors light up semantically relevant spans ("just a small one now" for myopic reward; "I cannot help" for refusal), giving builders a lightweight probe alongside steering.

Caveats & Builder Takeaway

CAA is not free of edge cases. Pushing multipliers too high degrades open-ended coherence, forcing the authors to cap magnitudes (such as +/-2 in 7B open-ended examples). Because residual stream norms grow exponentially across layers and CAA does not normalize across depth, layer 13 or 14 optimality reflects fixed-multiplier sweeps rather than per-layer magnitude tuning. Finally, open-ended scores rely on GPT-4 raters over 50 prompts per trait, and multiple-choice sycophancy barely moved at +1 (0.63 to 0.60) even though open-ended sycophancy shifted cleanly.

In practice, CAA is most useful as an adversarial red-teaming probe and a fine-grained runtime dial on open-weight models: if a small activation nudge elicits refusal bypasses or power-seeking claims that RLHF hides, the underlying behavior is still latent in the weights.