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
CAAvectors at layer 13 shifts AI coordination (0.20to0.39), corrigibility (0.45to0.83), hallucination (0.42to0.78), myopic reward (0.44to0.66), survival instinct (0.28to0.63), refusal (0.56to0.86), and open-ended sycophancy (0.26to1.26on 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.00score), whereasCAApreserves coherent open-ended control. - Minimal capability tax: Across 570 sampled MMLU questions on Llama 2 13B Chat, steering with multipliers
+/-1shifts accuracy by at most-0.06to+0.02, and subtracting sycophancy nudges TruthfulQA up by+0.02.
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.
Key Findings
- Steers beyond system prompts: Pairing a positive system prompt with
+1CAApushes 13B Chat corrigibility to0.93(vs.0.79prompt alone), hallucination to0.87(vs.0.52), and myopic reward to0.94(vs.0.81). Few-shot prompting underperformed system prompts in initial tests. - Composes with fine-tuning, with caveats: Layering
CAAon 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.34to4.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
CAAvectors 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.


