Skip to content

Refusal in large language models is an affine functionRefusal in LLMs is an Affine Function

arXiv· arXiv:2411.09003· Thomas Marshall, Adam Scherlis, Nora BelroseEleutherAI; Manifold ResearchIndexed by this site · 2026-10-15· Originally publishedSelected AlignmentSelectedAttention38

Quick read

Interpretability

Based on the paper PDF (generated by Gemini); refer to the original

The authors propose Affine Concept Editing (ACE), which combines affine subspace projection with activation addition to control refusal across ten open-source models, finding it more standardized than CAA.

Questions
Existing activation manipulation techniques assume concepts are orthogonal or use the origin as a reference, cannot achieve independent deterministic control of behavior across different prompts, and cause generation collapse on architectures such as recurrent neural networks.
Methods
The authors propose Affine Concept Editing (ACE), extending activation decomposition to affine space, combining affine subspace projection with addition, using the mean of harmless samples as a reference point to adjust behavioral expression along the mean-difference direction.
Experiments and results
On ten open-source models, ACE's normalization effect in controlling refusal is better than CAA; on Hermes Eagle RWKV v5, direction ablation causes gibberish, while ACE maintains coherent generation (Table 3).
Limitations and future work
ACE's standardization effect does not reach full consistency, and LEACE erasure does not improve it either; the experiments act only on a single layer of the residual stream and are limited to refusal behavior, and the paper does not report sample sizes or variance across repeated evaluations.
Experimental setupLlama 3 8B Instruct、Llama 3 70B Instruct et al. · AdvBench、Alpaca · P(refusal)
Evaluated models
Llama 3 8B InstructLlama 3 70B InstructHermes Eagle RWKV v5
Benchmarks
AdvBenchAlpaca
Metrics
P(refusal)
AI summaryand selection rationaleThe paper proposes Affine Concept Editing (ACE), which controls the refusal behavior of large language models by directly intervening on model activations, and tests it on ten open-weight models including Llama 3 70B. The method performs an affine decomposition of activation vectors, adding activation addition on top of projection onto an affine subspace, thereby unifying direction ablation and contrastive activation addition (CAA) within the same framework, and uses the mean of known samples as a reference point to set the degree of refusal expression. The authors claim ACE provides more standardized control over refusal than CAA, and still produces coherent text on Hermes Eagle RWKV v5, where direction ablation alone causes the model to output gibberish. Evaluation uses Llama 3 70B Instruct as the scoring model, with harmful and harmless prompts taken from AdvBench and Alpaca respectively, and reproduction code has been released on GitHub.

The paper proposes Affine Concept Editing (ACE), which controls the refusal behavior of large language models by directly intervening on model activations, and tests it on ten open-weight models including Llama 3 70B. The method performs an affine decomposition of activation vectors, adding activation addition on top of projection onto an affine subspace, thereby unifying direction ablation and contrastive activation addition (CAA) within the same framework, and uses the mean of known samples as a reference point to set the degree of refusal expression. The authors claim ACE provides more standardized control over refusal than CAA, and still produces coherent text on Hermes Eagle RWKV v5, where direction ablation alone causes the model to output gibberish. Evaluation uses Llama 3 70B Instruct as the scoring model, with harmful and harmless prompts taken from AdvBench and Alpaca respectively, and reproduction code has been released on GitHub.

Why it was selectedThe paper unifies direction ablation and activation addition within an affine decomposition framework and provides reproducible code, facilitating understanding of the controllability of refusal behavior.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing activation manipulation methods struggle to deterministically control model behavior across different inputs; the authors propose affine concept editing to achieve normalized refusal control.

    Existing activation manipulation techniques based on the linear representation hypothesis cannot achieve standardized control of language model behavior (such as refusal), and cause generation collapse on certain architectures.

    • Scenario and importance: In the task of steering model behavior by directly intervening in residual stream activation vectors, if the goal is full control of a specific behavior (such as model refusal), the technique needs "standardization" capability—that is, a fixed steering parameter should determine the degree of behavioral expression, independent of the input prompt itself.
    • Limitations of existing methods: Contrastive Activation Addition (CAA) cannot account for the amount of target behavior the model already exhibits in the current context, so the post-intervention behavioral degree still depends on the strength of the input prompt; Directional Ablation can erase linear information but cannot guarantee that the post-intervention vector lies in a meaningful activation space, causing generation collapse into meaningless gibberish on the recurrent neural network model Hermes Eagle RWKV v5 (Table 3).
    • Core observation and hypothesis: The linear representation hypothesis typically implies the origin (zero vector) corresponds to the behavior being "absent," but the authors note that the typical level of most behaviors in neural networks is not zero, and activation vectors are usually far from the origin; concept representations should be viewed as affine functions with a constant (bias) term, not purely linear functions.
    • Proposed method: The authors propose Affine Concept Editing (ACE), unifying directional ablation and contrastive activation addition within an affine decomposition framework, introducing the mean activation of non-refusal samples as a reference point to achieve more deterministic behavior steering.
  2. What related research exists?

    The paper reviews work on concept erasure and behavior steering, including the linear representation hypothesis, contrastive activation addition, and orthogonal-projection-based directional ablation.
    • Linear representation hypothesis:

      • Elhage et al. (2022) and Park et al. (2023)—propose and discuss the linear representation hypothesis, which holds that models represent high-level concepts as linear directions in activation space. The paper notes that previous work is ambiguous about the definition of "linear," not clearly distinguishing purely linear functions from affine functions.
    • Activation addition and behavior steering:

      • Rimsky et al. (2023)—propose Contrastive Activation Addition (CAA), which changes model behavior (including refusal) by adding a weighted mean-difference vector to model activations. The paper notes that CAA cannot account for the degree to which the model already exhibits the behavior on a given input, and is therefore non-standardized steering.
    • Direction ablation and concept erasure:

      • Arditi et al. (2024)—remove the refusal direction in the residual stream via orthogonal projection, then re-add the mean-difference vector after ablation to restore refusal. The paper notes that reproducing this method on non-Transformer architectures (such as RNNs) causes output collapse.
      • Belrose et al. (2024)—prove that orthogonal projection suffices to remove all linearly accessible information about a concept, and propose the LEACE closed-form concept erasure algorithm. The paper tests LEACE in the discussion and finds it does not improve standardization and is harmful in most cases.
      • Paulo et al. (2024) and Peng et al. (2024)—explore transferring interpretability to recurrent neural networks and propose the Hermes Eagle RWKV v5 model with matrix-valued states.
    • Baseline methods and datasets:

      • Baseline methods: Contrastive Activation Addition (CAA, Rimsky et al., 2023) and Directional Ablation (Arditi et al., 2024).
      • Evaluation datasets: harmful prompts from AdvBench (Zou et al., 2023), harmless prompts from Alpaca (Taori et al., 2023).
    • Position of this paper: The authors position ACE as a unification and generalization of CAA and corrected directional ablation, stating that within the affine framework it simultaneously addresses CAA's non-standardization and directional ablation's collapse on certain models.

  3. How does the paper address this problem?

    The authors propose Affine Concept Editing, using the mean of harmless samples as a reference point, combining affine subspace projection with activation addition to derive a standardized intervention formula.

    The authors propose Affine Concept Editing (ACE), extending the linear decomposition of residual stream activation vectors to an affine decomposition with a reference point, so that the degree of behavioral expression is directly tied to a controllable scalar parameter.

    Linear and affine decomposition framework

    Under linear decomposition, an activation vector is projected into components parallel and perpendicular to the concept direction. Viewed purely linearly, the operation assumes the origin represents the absence of the concept. The authors note that the origin is not a meaningful default, and introduce a reference point v0 (corresponding to some standardized behavioral degree), rewriting the activation vector in affine form: v′ = v − proj∥r(v) + α0 r + α′ r This formula subtracts the component parallel to r from the activation vector v, then adds the bias term α0 r determined by the reference point and the target strength term α′ r (Equation 1).

    Mathematical derivation of standardized steering

    The authors define standardization as: a fixed steering parameter fixes the degree of behavioral expression independent of the input prompt, with parameter 1 inducing the target behavior and parameter 0 inducing the null behavior (non-refusal). To this end, they set constraints: the expected activation at parameter 0 equals the mean activation of harmless samples r−, and the expected activation at parameter 1 equals the mean activation of harmful samples r+. The derivation yields the reference bias term α0 r = proj∥r(r−), and the concept vector strictly satisfies r = r+ − r−, giving the ACE formula: v′ = v − proj∥r(v) + proj∥r(r−) + α r This uses the mean projection of harmless behavior samples as the reference point and adjusts along the mean-difference direction r by parameter α (Equation 5).

    Implementation details and intervention location

    • Intervention layer selection: ACE acts uniformly on all token activations at the output of a single residual stream layer, interrupting the entire residual stream to prevent information from bypassing the intervention via skip connections. The layer is chosen by qualitative inspection at a balance point near the middle of the model; the authors report that poor layer choices lead to no effect or gibberish output.
    • Steering vector extraction: Activation vectors are extracted at the last token of example prompts (including special tokens from the conversation template, i.e., the moment the model is ready to generate the first token of the response) and averaged.
  4. What experiments did the paper conduct?

    The authors evaluated refusal control and text coherence on ten open-source models and RWKV, finding that ACE achieves more standardized effects than CAA and avoids collapse.

    Experimental setup

    • Models tested: Evaluated 10 open-source Transformer language models, including Llama 3 8B Instruct, Llama 3 70B (referred to as Llama 3 70B Instruct in the main text), Qwen 1.8B, Qwen 7B, Qwen 14B, Qwen 72B, Yi 6B, Yi 34B, Gemma 2B, Gemma 7B; and 1 recurrent neural network model, Hermes Eagle RWKV v5.
    • Datasets: harmful prompts from AdvBench, harmless prompts from Alpaca; the paper does not state the specific number of samples drawn from each dataset.
    • Baseline methods: Contrastive Activation Addition (CAA-only) and Directional Ablation.
    • Main metrics: refusal probability P(refusal), and coherence of output text.
    • Evaluation method: Llama 3 70B Instruct is used as the scoring model, given the 5-shot evaluation prompt in Appendix B to judge whether a response refuses (outputting yes or no). The paper does not report the number of repeated tests.

    Main results

    The table below summarizes refusal probabilities for CAA and ACE at specific steering parameters for some tested models at the specified intervention layer (taken from curve endpoints and coordinate grids in figures):

    Swipe horizontally to read the table

    ModelIntervention layerCAA (α=0.0) harmful promptsCAA (α=0.0) harmless promptsACE (α=1.5) harmful promptsACE (α=1.5) harmless prompts
    Llama 3 8B Instruct151.00.01.01.0
    Gemma 2B91.00.01.01.0
    Gemma 7B141.00.01.01.0
    Qwen 72B601.0not reaching 0.01.01.0
    Yi 34B381.00.01.01.0
    Qwen 1.8B12not reaching 0 or 1not reaching 0 or 11.01.0
    Llama 3 70B40not reaching 1.00.01.0not reaching 1.0

    Source: Llama 3 8B Instruct from Figure 2; other models from Appendix A. Note: Qwen 7B, Qwen 14B, and Yi 6B are omitted due to space constraints (their curve trends are similar to models in the same family); Hermes Eagle RWKV v5 is only qualitatively compared for generation coherence (Table 3), with no quantitative curves reported.

    • The authors state that ACE shows more standardized effects than CAA across models, with P(refusal) curves for harmful and harmless prompts closer together under ACE (Figure 2, Appendix A).
    • The authors state that on some models (such as Qwen 1.8B and Qwen 7B), all steering methods struggle to fully eliminate refusal, with curves showing a U-shaped rebound in the negative parameter region (Appendix A).
    • The authors state that on Llama 3 8B Instruct layer 15, ACE approaches full standardization near α = -0.5 and α = 1.5 (Section 5).

    Collapse and coherence experiments on RNN architectures

    • Evaluation content: Tested directional ablation and ACE (α = 0.0) on responses to harmful prompts on the recurrent neural network Hermes Eagle RWKV v5 (Table 3).
    • Experimental results: Directional ablation causes the model output to collapse into meaningless symbols and gibberish (6o ‘18 ’474010*60...); ACE (α = 0.0) removes refusal and outputs structurally complete, normal English responses (Table 3).
    • Authors' interpretation: The authors state that inspecting activation vectors reveals that directional ablation on Hermes Eagle RWKV v5 constitutes too strong an intervention, causing activations to leave the plausible space; ACE's constant correction term successfully resolves the output collapse on this architecture.

    Comparison experiment with advanced concept erasure methods

    • Evaluation content: In the discussion, attempted to use LEACE (Belrose et al., 2024) closed-form linear concept erasure instead of orthogonal projection.
    • Experimental results: The authors report that LEACE does not improve standardization and is actively detrimental to model generation in many cases (Section 5).
    • Authors' interpretation: The authors speculate that the derived steering vector may be flawed, or that linear ablation itself cannot fully eliminate information about the refusal concept.

    Other ablations and analyses

    • Residual stream intervention layer ablation: The authors report that choosing the layer too early or too late leads to no effect or gibberish output, with suitable layers located near the middle of the model (Section 4).
    • Parameter value analysis: On Llama 3 8B Instruct layer 15, parameters slightly below 0 and slightly above 1 are most stable (Section 5).
  5. What are some points that can be further explored?

    The authors note that ACE has limitations such as incomplete normalization and incomplete linear ablation; future work could explore nonlinear methods and extend to more behaviors.

    Limitations and future directions noted by the authors

    • Normalization is not fully perfect: The authors note that ACE's normalization effect is not yet absolutely consistent, possibly because the extracted steering vectors are not precise enough, or direction ablation does not completely erase concept information (Section 5).
    • Advanced linear erasure does not improve performance: Preliminary experiments show that using LEACE does not improve normalization and is often harmful; future work should explore whether linear techniques can completely eliminate refusal concepts, or whether nonlinear techniques are needed (Section 5).
    • Extension to nonlinear methods: The authors suggest future work should explore whether nonlinear methods can further improve ACE's normalization effect (Section 6).
    • Single behavior modification task: The authors note the need for further research to reliably extend the technique to a broader variety of behavior modification tasks beyond refusal (Section 5, Section 6).

    Experimental coverage

    • Model coverage: Evaluation covers 10 open-source Transformer models (parameter sizes from 1.8B to 72B) and 1 RNN model (Hermes Eagle RWKV v5), totaling 11 models (Section 4).
    • Benchmark coverage: Harmful prompts are taken only from AdvBench, harmless prompts only from Alpaca; the paper does not report the exact number of samples extracted (Section 4).
    • Layer coverage: Interventions are applied only to a single intermediate layer of the residual stream; multi-layer simultaneous intervention is not evaluated (Section 4).
    • Comparison method coverage: Baseline comparisons include only CAA, direction ablation, and preliminary LEACE testing; other fine-tuning or prompt-engineering alignment techniques are not covered (Section 2, Section 5).
    • Evaluation and replication: Evaluation relies entirely on Llama 3 70B Instruct 5-shot automatic judgment; the paper does not report human evaluation agreement or multi-round test variance (Section 4, Appendix B).
  6. Summarize the main content of the paper

    The paper extends concept guidance to affine space and proposes ACE to address the non-normalization and collapse issues of existing methods, achieving better results in refusal control.
    • Position and core problem: The paper addresses non-standardized control and generation collapse in activation manipulation of large language models, generalizes the linear representation hypothesis to affine space, and proposes Affine Concept Editing (ACE).
    • Core mechanism: ACE unifies contrastive activation addition and corrected directional ablation, introduces the mean of harmless samples as a reference point, and adjusts behavioral expression along the mean-difference direction via a single scalar parameter, eliminating the unreasonable assumption that the origin is the default state.
    • Main experimental findings:
      1. On 10 open-source Transformer models, ACE achieves more standardized refusal control than CAA; on Llama 3 8B Instruct layer 15, with parameter 1.5, the refusal probability reaches 1.0 for both harmful and harmless prompts (Figure 2).
      2. On the recurrent neural network Hermes Eagle RWKV v5, directional ablation causes output collapse into gibberish, while ACE (α = 0.0) successfully removes refusal and maintains coherent text (Table 3).
      3. On some smaller models (such as Qwen 1.8B), all steering methods show a U-shaped rebound at negative parameter values and fail to fully suppress refusal (Appendix A).
    • Authors' conclusion and implications: The authors believe that treating activation-space representations as affine functions provides more precise and reliable behavioral intervention, but the incompleteness of existing linear erasure suggests future work should explore nonlinear editing methods and extend the technique to more behavioral dimensions.
Read originalarxiv.org