Treating population-level activation patterns rather than individual neurons as the unit of interpretability lets Andy Zou and colleagues boost LLaMA-2-Chat-13B accuracy on TruthfulQA MC1 from 35.9% to 54.0% (+18.1 percentage points) without fine-tuning for truthfulness. Drawing on the “Hopfieldian” view in cognitive neuroscience, Representation Engineering (RepE) splits top-down transparency into Representation Reading (extracting linear directions via Linear Artificial Tomography, LAT) and Representation Control (steering those directions at inference or via low-rank adapters).
- 18.1pp TruthfulQA gain without training on truth: Contrast-vector control raises LLaMA-2-Chat-13B from
35.9%to54.0%(and 7B-Chat from31.0%to47.9%), whileLoRRAhits47.5%on 13B using only Alpaca data and zero inference overhead. - Models know more than they say: Reading internal truthfulness with
LATscores69.8%on LLaMA-2-Chat-70B compared to29.9%standard zero-shot accuracy, showing that false outputs often stem from imitative dishonesty rather than missing knowledge. - Jailbreak refusal jumps from 16% to 83%: Conditional piece-wise control on Vicuna-13B lifts refusal against GCG adversarial suffixes from
16%to83%while keeping benign instruction following at92%. - Deception, bias, and memorization control:
LATseparates instructed honesty from lying with over90%accuracy, cuts race-gender stereotyping in medical vignettes (60.0%to13.0%), and halves verbatim quote memorization (89.3%to37.9%–47.6%) while leaving historical QA at96.2%.
How It Works
LAT adapts neuroimaging workflows into three steps using 5 to 128 unlabeled stimulus pairs. First, stimuli are wrapped in a task template: a declarative prompt ("Consider the amount of <concept> in the following: <stimulus>. The amount of <concept> is") for concepts like utility or truthfulness, or paired instruction templates (Tf+ vs. Tf-) for procedural functions like honesty or harmlessness. Second, hidden states are collected at the concept token (or final token -1 in decoder models, and across every assistant token for functions). Third, unsupervised PCA over normalized pairwise activation differences yields a “reading vector” v, whose dot product scores new inputs.
For Representation Control, Zou et al. test three baselines: adding the fixed Reading Vector; computing a Contrast Vector per input by running both Tf+ and Tf- prompts during inference (iterated layer by layer); and LoRRA (Low-Rank Representation Adaptation), which trains rank-8 LoRA attention weights to match contrast-shifted targets on generic Alpaca data so weights merge cleanly before deployment. Interventions apply linear addition (R +/- v), conditional piece-wise amplification (R + sign(R^T v)v), or projection removal.
Key Findings
- Correlation probes fool you without causal tests: On ETHICS Utility, supervised logistic regression achieved the highest reading accuracy yet barely changed model behavior under manipulation or projection removal (Figure 12). Unsupervised PCA, K-Means, and Mean Difference succeeded across correlation, manipulation, and termination tests.
- Truth, QA, and jailbreak robustness: On five QA benchmarks (
RACE,CSQA,OBQA,ARC-c,ARC-e),LAToutperforms few-shot prompting (60.3%vs.49.5%onRACEaverage) and beats Contrast-Consistent Search on DeBERTa (82%vs.69%average). On Vicuna-13B, an internal harmfulness vector retains over90%accuracy even under GCG attacks, letting piece-wise control boost GCG refusal from16%to83%(see also Representation Circuit Breakers). - Emotions, fairness, and memorization: Adding a
+Happinessemotion vector flips LLaMA-2-Chat-13B compliance on 500 harmful requests from0.0%to100.0%. Conversely, subtracting a race-derived bias vector cuts"black female"mentions in clinical sarcoidosis vignettes from60.0%to13.0%, and subtracting a memorization vector drops verbatim quote completion from89.3%to37.9%–47.6%without hurting historical date recall (96.2%vs.97.2%).
Caveats & Builder Takeaway
RepE shares the limits of linear activation steering: it requires white-box hidden-state access (or adapter tuning), can still lose accuracy under misleading prompts if extracted at the final token (-24.0% to -29.7% drop on TruthfulQA vs. -0.1% to -1.2% at concept tokens), and occasionally fires lie or immorality detectors on benign mentions of sensitive phrases like "use the gun". Unsupervised PCA on small random samples (5 to 10 pairs) can also latch onto superficial features in some trials.
For engineers building on open-weight LLMs, RepE’s lasting takeaway is methodological: never evaluate a probe on classification correlation alone, and use LoRRA when you want the generalization of Contrastive Activation Addition or Activation Addition baked into weights without paying a 3x inference latency tax.


