Skip to content← Home
← All sections

Section 10 · Questions 203–212

Steering, editing and unlearning

Steering

  1. Activation steering changes what a model does by nudging the numbers it computes while it runs, without retraining it or changing the prompt. More precisely, it adds a fixed vector, a list of numbers that stands for a concept, to the model’s activationsActivation: One of the numbers a network computes for a particular input as it runs; its weights, by contrast, stay fixed once training ends. Q33 → in the residual streamResidual stream: Where a transformer keeps its work in progress: a running list of numbers for each token, which every layer reads from and adds to. Q41 → (the running vector that every layer reads from and adds to). The weightsWeights: The numbers inside a model that training sets; they stay fixed afterward and are the same for every input. Q33 →, set in training, stay untouched.

    Say a model would continue “The weather today is” with “sunny and mild.” With a vector for weddings added partway through the model, it might write “perfect for a wedding” instead.

    The simplest vectors come from contrast. Turner et al. (2023) subtracted the activations for one pair of prompts, such as “Love” and “Hate”; contrastive activation addition averages over many pairs that differ mainly in one behavior, so accidental differences cancel (Panickssery et al., 2023). It works on goals too: in a maze-solving agent, subtracting a “cheese vector” made it largely ignore the cheese it had been trained to seek (Mini et al., 2023).

    Steering works because many concepts appear to be represented as directions in activation spaceWhat is the linear representation hypothesis? Q159 → (Park et al., 2023b). Push the stream along a concept’s direction and the model behaves as if the concept were present. But a vector that steers shows a usable direction, not necessarily the one the model uses: Makelov et al. (2023) argued that it can switch on a dormant pathway instead.

    In a large head-to-head benchmark, plain prompting did better. On AxBench, which scores steering toward a concept while staying fluent and on task (0–2), prompting Gemma 2 for the concept scored 0.894, against 0.239 for a mean-difference steering vector (Wu et al., 2025a).

    Sources Park et al., The Linear Representation Hypothesis and the Geometry of Large Language Models (2023b); Makelov et al., Is This the Subspace You Are Looking for? An Interpretability Illusion for Subspace Activation Patching (2023); Turner et al., Steering Language Models With Activation Engineering (2023); Panickssery et al., Steering Llama 2 via Contrastive Activation Addition (2023); Mini et al., Understanding and Controlling a Maze-Solving Policy Network (2023); Wu et al., AxBench: Steering LLMs? Even Simple Baselines Outperform Sparse Autoencoders (2025a).

  2. Representation engineering (Zou et al., 2023a) looks in a model’s activations, the numbers it computes as it runs, for the pattern that goes with a high-level concept such as honesty or power-seeking. It uses that pattern to read the concept, measuring how strongly it is present, and to control it, turning it up or down. It works top-down, starting from the concept instead of building up from features and circuitsFeature: A property of the input that a network represents internally, such as a curve or text in French, carried by one neuron or by a pattern across many. Q156 → as mechanistic interpretabilityMechanistic interpretability: Working out, from the numbers inside a neural network, the steps by which it turns inputs into outputs: which features it represents and how its weights connect them. Q152 → does, and gives up an account of how a behavior is computed in exchange for practical handles on it.

    To find a concept’s direction, Zou et al. write pairs of prompts that ask for the concept and for its opposite, such as “Pretend you are an honest person” against a dishonest version, record the activations layer by layer, and run principal component analysis on the differences. The first component is the reading vector, and projecting a new activation onto it scores the concept. Nothing checks that the direction tracks only the intended concept. In Llama 2-Chat, the honesty direction picked out deliberate lies tokenToken: A word or piece of a word, the unit of text a language model reads and writes. Q37 → by token and, used for steering, raised the 13B model’s TruthfulQA score from 35.9% to 54%, though an immorality monitor built the same way also fired on harmless phrases such as “use the gun.”

    Source Zou et al., Representation Engineering: A Top-Down Approach to AI Transparency (2023a).

  3. Briefly in public products, and more lastingly in safety audits. Anthropic’s Golden Gate ClaudeWhat did sparse autoencoders find inside a production model? Q175 →, a Claude 3 Sonnet with one SAESparse autoencoder (SAE): A tool that sorts a model’s activations into a much larger set of separate signals, only a few active at once, in the hope that each stands for one thing a person can name. Q174 → feature clamped high, ran as a 24-hour demo and brought most replies around to the bridge. Goodfire offered feature steering of Llama models to developers (Ho, 2024) but has since deprecated it.

    In Claude Sonnet 4.5’s pre-deployment audit, Anthropic used steering to suppress the model’s sense of being testedWhat happens to a model’s behavior when its sense of being tested is suppressed? Q190 → (Anthropic, 2025). Hua et al. (2025) showed in a purpose-built model that steering can make a model behave in evaluation as it would in deployment. Google DeepMind researchers note that in the Sonnet 4.5 audit SAE features did no better than a steering vectorActivation steering: Changing what a model does by nudging the numbers it computes while it runs, by adding a fixed vector to its activations, without changing its weights. Q203 → built from one pair of prompts (Nanda et al., 2025).

    Sources Anthropic, Golden Gate Claude (2024); Ho, Feature Steering for Reliable and Expressive AI Engineering (2024); Anthropic, System Card: Claude Sonnet 4.5 (2025); Hua et al., Steering Evaluation-Aware Language Models to Act Like They Are Deployed (2025); Nanda et al., A Pragmatic Vision for Interpretability (2025).

  4. One way is to find the pattern in the model’s activations that goes with the trait, called its direction, and use it twice: to screen the training data, and to counteract the trait during training. Chen et al. (2025b) call such a direction a persona vectorHow is a model’s persona represented inside it? Q197 → and find it automatically from a short description of the trait.

    Before training, they compare how far each example’s response pushes along the trait direction with how far the model’s own response to the same prompt goes. Examples that push further are likely to move the model there, and ranking data this way predicted which datasets would make a model more “evil,” sycophanticSycophancy: A model telling users what they want to hear instead of what is true or useful. Q87 → or prone to hallucinateHallucination: Fluent output that is false or unsupported but presented as fact, such as an invented citation. Q137 →.

    During training, they steer preventatively, adding the persona vector to the activations. The data’s pull toward the trait is already satisfied by the added vector, so the weights have less reason to move that way. At deployment the vector is removed, and the model shows less of the trait than one fine-tunedFine-tuning: Further training of an already trained model on a smaller, chosen set of examples. Q51 → without it. Concept ablation fine-tuning does the reverse, projecting an unwanted direction out during training; on fine-tuning that otherwise causes emergent misalignmentEmergent misalignment: Broad misbehavior that appears after training a model on something narrow. Q127 →, it cut misaligned responses about 10-fold (Casademunt et al., 2025).

    Sources Chen et al., Persona Vectors: Monitoring and Controlling Character Traits in Language Models (2025b); Casademunt et al., Steering Out-of-Distribution Generalization with Concept Ablation Fine-Tuning (2025).

  5. Circuit breakers are a defense trained into a model to make a harmful answer break off once the model has started producing it. They act on the model’s internal representations instead of its words. Zou et al. (2024) fine-tune the model with representation rerouting: on harmful generations, a loss pushes the internal representations toward directions orthogonal to the originals, and on harmless text a second loss keeps them close to the original model’s. When an attack gets the model started on a harmful answer, the rerouted representations derail it, and the output breaks off or turns to gibberish. Keyed on the content being produced, not the wording of the request, it cut attack success sharply across many unseen automated attacks on Llama 3 and Mistral models with little loss of capability.

    Later attacks did much better. Schwinn and Geisler (2024) showed that small changes to embedding-space attacks raised attack success on circuit-breaker models close to 100%. Expert red-teamersRed teaming: Adversarial testing in which people or models deliberately try to make a system fail. Q250 → using multi-turn conversations reached 51.7% attack success against the open circuit-breaker model, where automated single-turn attacks scored 8.3% (Li et al., 2024c). The embedding attacks need open weightsOpen-weight model: A model whose weights, the learned numbers that make it up, are published, so anyone can run, study and modify it. Q290 →, and human red-teaming is costly to scale.

    Sources Zou et al., Improving Alignment and Robustness with Circuit Breakers (2024); Schwinn and Geisler, Revisiting the Robust Alignment of Circuit Breakers (2024); Li et al., LLM Defenses Are Not Robust to Multi-Turn Human Jailbreaks Yet (2024c).

Editing knowledge and unlearning

  1. By finding where a fact is recalled and making a small, targeted change to those weights. The best-known methods treat a mid-layer MLPMLP block: The part of each transformer layer (a multilayer perceptron) that transforms each token’s vector on its own, by projecting it up to a wider layer, applying a nonlinearity and projecting back down. Q39 →, the feed-forward block inside each transformerTransformer: The neural-network design behind nearly all large language models, built from stacked layers of attention and MLP blocks. Q39 → layer, as a key–value memory (Geva et al., 2020). Meng et al. (2022a) used causal tracing, corrupting the subject and restoring single activations, to locate recall in mid-layer MLPs at the last token of the subject, such as “Eiffel Tower.” The MLP’s input there is the key; its output is the value that later layers turn into facts about the subject.

    ROME (rank-one model editing) computes a new value that makes the model say, for example, “Rome” after “The Eiffel Tower is in,” then makes the smallest rank-one change to the MLP’s weights that maps the key to it. MEMIT spreads edits across several MLPs and inserted thousands of facts at once.

    The edits hold up less well than first reported. Edited models often failed facts implied by the edit, such as which country the tower is now in, and edits bled into prompts about related subjects (Cohen et al., 2023; Hoelscher-Obermaier et al., 2023). Hase et al. (2023) found that where causal tracing localizes a fact does not predict the best layer to edit.

    Sources Geva et al., Transformer Feed-Forward Layers Are Key-Value Memories (2020); Meng et al., Locating and Editing Factual Associations in GPT (2022a); Meng et al., Mass-Editing Memory in a Transformer (2022b); Cohen et al., Evaluating the Ripple Effects of Knowledge Editing in Language Models (2023); Hoelscher-Obermaier et al., Detecting Edit Failures In Large Language Models: An Improved Specificity Benchmark (2023); Hase et al., Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Models (2023).

  2. Machine unlearning aims to make a trained model behave as if certain data, or a certain capability, had never been learned. Bourtoule et al. (2019) framed it for privacy: delete a person’s data and get the model that retraining without it would give. For language models the target is often a capability, such as hazardous knowledge or a copyrighted book.

    Retraining from scratch is too expensive, so methods change the trained model directly, and that is hard to get right. Liu et al. (2024) list the reasons: the target is vague, knowledge is entangled with everything around it, there is no retrained model to compare against, and evaluations are weak. In MUSE, most of eight methods tested either failed to remove the knowledge or damaged the model’s general usefulness (Shi et al., 2024). Barez et al. (2025a) argue that unlearning suits removing specific data, as privacy law requires, far better than removing a capability, because dangerous knowledge is often dual-use and a model can rebuild it from harmless facts it keeps.

    Sources Bourtoule et al., Machine Unlearning (2019); Liu et al., Rethinking Machine Unlearning for Large Language Models (2024); Shi et al., MUSE: Machine Unlearning Six-Way Evaluation for Language Models (2024); Barez et al., Open Problems in Machine Unlearning for AI Safety (2025a).

  3. By unlearningMachine unlearning: Trying to make a trained model behave as if certain data or a certain capability had never been learned. Q209 →, which changes an already trained model with the aim of removing the hazardous knowledge and leaving the rest intact. One such method, RMU (Representation Misdirection for Unlearning), fine-tunes a few layers so that, on hazardous text, activations are pushed toward a large random vector, scrambling what later layers receive, while on general text they stay as before (Li et al., 2024a).

    The same paper introduced the usual measure, WMDP (Weapons of Mass Destruction Proxy): 3,668 multiple-choice questions on biosecurity, cybersecurity and chemical security that stand in for hazardous knowledge without containing the most dangerous details. On Zephyr-7B, RMU cut WMDP-Bio accuracy from 63.7% to 31.2%, near the 25% of random guessing, while MMLU, a broad test of general knowledge, fell only from 58.1% to 57.1%. Multiple-choice knowledge is a proxy; it does not measure how much a model would actually help an attacker.

    Source Li et al., The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning (2024a).

  4. Often it can, because most methods suppress the route to the knowledge without erasing it from the weights. Łucki et al. (2024) took a Zephyr-7B model whose WMDP-Bio accuracy had fallen, by their measure, to 29.9% under RMUHow can a model’s hazardous knowledge be reduced? Q210 → and fine-tuned it on 10 unrelated examples. Accuracy returned to 61.6%, against 64.4% before unlearning, and removing one activation direction per layer restored it fully. Deeb and Roger (2024) recovered at least 88% of the pre-unlearning accuracy for every method they tested on knowledge learned in pretraining, by fine-tuning on facts disjoint from those evaluated. Llama 2 7B, fine-tuned to forget the Harry Potter books (Eldan and Russinovich, 2023), gave the knowledge back under other languages, jailbreaksJailbreak: A prompt or other input that gets an AI model to do something its developer trained it to refuse. Q277 → and relearning (Lynch et al., 2024). Distilling an unlearned model into a fresh student made it much harder to reverse (Lee et al., 2025).

    So claims that knowledge is gone are tested with these same attacks, relearning on held-out facts, tampering with weights and activations, rephrasing and jailbreaks, while measuring what else was lost (Che et al., 2025). Such tests can also mislead, for example by teaching the model the answers during the test (Feng et al., 2025a).

    Sources Łucki et al., An Adversarial Perspective on Machine Unlearning for AI Safety (2024); Deeb and Roger, Do Unlearning Methods Remove Information from Language Model Weights? (2024); Che et al., Model Tampering Attacks Enable More Rigorous Evaluations of LLM Capabilities (2025); Eldan and Russinovich, Who’s Harry Potter? Approximate Unlearning in LLMs (2023); Lynch et al., Eight Methods to Evaluate Robust Unlearning in LLMs (2024); Lee et al., Distillation Robustifies Unlearning (2025); Feng et al., Existing Large Language Model Unlearning Evaluations Are Inconclusive (2025a).

  5. They act at different stages and remove different amounts. Refusal training leaves the capability intact and teaches the model to decline. Unlearning, such as RMU, changes a trained model so that it can no longer use the knowledge (Li et al., 2024a), though fine-tuning often brings it back (Łucki et al., 2024).

    Pretraining data filtering stops the model from learning the knowledge at all. O’Brien et al. (2025) filtered biothreat text from pretraining; their 6.9-billion-parameter models resisted up to 10,000 steps of adversarial fine-tuning without losing other capabilities, though they could still use dangerous information supplied in the prompt. Localization methods sit in between. Gradient routing sends the updates from flagged data into a chosen block of parameters that is deleted after training (Cloud et al., 2024), and a variant took about 7 times as much adversarial fine-tuning to undo as RMU, in models of up to 254 million parameters (Shilov et al., 2025).

    Sources Li et al., The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning (2024a); Łucki et al., An Adversarial Perspective on Machine Unlearning for AI Safety (2024); O’Brien et al., Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs (2025); Cloud et al., Gradient Routing: Masking Gradients to Localize Computation in Neural Networks (2024); Shilov et al., Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMs (2025).