Open Interpretability Models Contributors Research Posts About

Steering Llama 2 via Contrastive Activation Addition

Source

Citation. Nina Panickssery, Meg Tong and Evan Hubinger (Anthropic), Nick Gabrieli (Harvard University), Julian Schulz (University of Göttingen). The sixth author is Alexander Matt Turner (Center for Human-Compatible AI). "Steering Llama 2 via Contrastive Activation Addition". arXiv 2312.06681, v1 9 December 2023, v4 5 July 2024. Paper, code (MIT License). The venue is the Proceedings of the 62nd Annual Meeting of the ACL (Volume 1: Long Papers), August 2024, pages [removed]. Its Anthology ID is 2024.acl-long.828, DOI 10.18653/v1/2024.acl-long.828. We checked the venue on the Anthology page, and it matches the issue's "venue from memory" note.

The first author's name changed. The arXiv record and the v4 HTML give "Nina Panickssery". The Anthology page gives "Nina Rimsky" and "Alexander Turner". Cite the ACL version under Rimsky and the arXiv version under Panickssery, and treat the two names as one person. The arXiv page has no comments or journal-ref field, and the v4 text does not name the venue. The acknowledgements thank the MATS team and several people. The text gives no funding statement. The paper uses GPT-4 to score text and to write two of its datasets.

Status. Not applicable now, and evidence for the fix campaign later. No code, skill or protocol rule depends on it, and no open issue would use it. The campaign belongs to the maintainer, so this page reports evidence and records questions only.

Read. We read the arXiv abstract page, the v4 HTML and the ACL Anthology page on 2026-11-18, through WebFetch. A model read the text for us in three passes. The tool let it quote only short excerpts. So the method and the numbers came back as that model's transcription, with a few verbatim fragments. We have verbatim text for the captions of Tables 3 to 5, the "3 out of 7" sentence and the §9.1 sentence on token positions. We did not read the PDF, the figures, the appendix prompts in full or Tables 9 to 13 cell by cell.

Summary

Claim. The mean difference of residual-stream activations between contrast pairs gives a steering vector. Adding it during generation changes a behaviour of Llama 2 Chat in the expected direction. The effect adds to system prompts, and in some behaviours to finetuning. The cost to capabilities is small.

Method.

Findings, as the source reports them. These numbers came through the reader model, as the Read section says. The model and layer come from the verbatim table captions.

Setting Result (multiplier −1 / 0 / +1)
13B Chat, layer 13, multiple choice, no system prompt (Table 3): refusal 0.56 / 0.78 / 0.86
Same: corrigibility 0.45 / 0.57 / 0.83
Same: hallucination 0.42 / 0.54 / 0.78
Same: sycophancy 0.56 / 0.63 / 0.60, a small effect
7B Chat, layer 13, open-ended GPT-4 score, no finetuning (Table 4): corrigibility 2.30 / 2.82 / 4.70
Same: survival instinct 4.28 / 4.75 / 5.66
Same: sycophancy 0.26 / 0.58 / 1.26
Same: refusal 4.60 / 4.62 / 4.62, no effect
Same, after positive refusal finetuning (Table 4) 5.42 / 5.34 / 4.42: the positive vector lowers the score
CAA on top of finetuning "for 3 out of 7 tested behaviors" it moves the behaviour further
13B Chat, layer 14, MMLU (Table 5) about 0.57 to 0.65, against 0.63 with no steering. The authors call the change not significant
13B, TruthfulQA, sycophancy vector (Appendix H) 0.57 added, 0.62 subtracted, 0.60 none
Cost about 5 minutes on one L40 GPU to make a vector. Finetuning takes about 10 minutes per behaviour on two L40s

The paper also reports these results, without numbers in the text that we read. Activations cluster by behaviour from about one third of the way through the layers (§3.2). A layer-13 vector still steers at other layers, and the effect falls sharply near layer 17 (§8.2). Vectors from the base model steer the chat model, mostly between layers 10 and 15 (§8.3).

Where the claims go beyond the evidence

The authors state the judge limit, the untuned finetuning, the partial system-prompt search and the untested vector normalisation themselves (§10).

Use in this repo