Skip to content

Extending Difference-in-Means Activation Steering with Reference Points and Covariance StructureExtending Difference-in-Means Activation Steering with Reference Points and Covariance Structure

Keiji Inoue, Chansu Han, Yoshinari Takeishi, Takeshi Takahashi, Jun'ichi Takeuchi
Graduate School of Information Science and Electrical Engineering, Kyushu University; Cybersecurity Research Institute, National Institute of Information and Communications Technology (NICT); Faculty of Information Science and Electrical Engineering, Kyushu University
arXiv: Jailbreaks, Prompt Injection, Poisoning & DefensesarXiv:2612.00787Originally published Indexed by this site · 17 hr agoAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose RDA, which changes the projection reference point of Directional Ablation to the mean of safety prompts; with local intervention on Llama-2-7B-Chat and JailbreakBench, the Non-Refusal rate is 0.98.

Threat modelStudies activation-based jailbreak attacks: modifying the model's internal activations at inference time to suppress the language model's refusal behavior. The method uses activations from harmful and harmless prompts to estimate the DIM direction and covariance structure, and applies intervention at transformer layers and token positions; the paper does not specifically formalize attacker knowledge or access.

Questions
Directional Ablation suppresses refusal by removing the activation component along the DIM direction, but the traditional projection uses the origin as reference and uses only the mean-difference direction. The authors examine whether the mean of safety prompts can serve as a more suitable reference point and whether covariance principal directions can supplement the intervention.
Methods
RDA instead removes the projection of activations onto the DIM direction relative to the mean of safety prompts; it further performs PCA on the covariance of activation differences, jointly removes the DIM and principal directions after Gram–Schmidt orthogonalization, and measures relative variance with ρK.
Experiments and results
On Llama-2-7B-Chat, JailbreakBench, RDA outperforms DA under both intervention scopes; in the six-dataset experiments, the gains at K=1 vary by dataset, StrongREJECT at K=10 is lower than at K=1, and RepE and others also show degradation.
Limitations and future work
The authors note that the experiments cover only two 7B models, and that the finite-sample stability, semantic interpretation, and selection criterion for K of the principal directions remain unclear. Results are a single run with a fixed random seed, and the paper does not report generation sampling parameters or the specific evaluation model for StrongREJECT.
Experimental setupLlama-2-7B-Chat、Vicuna-v1.5-7B · JailbreakBench、AdvBench et al. · Non-Refusal rate、StrongREJECT score et al.
AI summaryRDA extends Directional Ablation, an activation steering method that suppresses LLM refusal, by changing the projection reference point from the origin to the mean activation of safety prompts, and its jailbreak performance consistently exceeds the original method. It also uses PCA to extract principal directions from the covariance structure of the difference between harmful and safety prompt activations, as intervention directions beyond DIM. The covariance structure differs markedly across harmful datasets, and for those with larger variation relative to the DIM direction, removing the dominant principal direction often improves jailbreak effectiveness.

RDA extends Directional Ablation, an activation steering method that suppresses LLM refusal, by changing the projection reference point from the origin to the mean activation of safety prompts, and its jailbreak performance consistently exceeds the original method. It also uses PCA to extract principal directions from the covariance structure of the difference between harmful and safety prompt activations, as intervention directions beyond DIM. The covariance structure differs markedly across harmful datasets, and for those with larger variation relative to the DIM direction, removing the dominant principal direction often improves jailbreak effectiveness.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study the projection reference point and single-direction limitation of Directional Ablation, and propose RDA and covariance principal-direction intervention.

    The core question is: Directional Ablation projects relative to the origin and removes only a single DIM direction; the authors examine whether these two designs limit refusal suppression and jailbreak effectiveness.

    • Research setting: Activation steering modifies LLM internal activations at inference time; Directional Ablation of Arditi et al. (2024) removes the component along the direction of the mean difference between harmful and harmless prompt activations to suppress refusal.
    • Shortcomings of the existing design: The authors point out that the traditional formula computes the projection relative to the origin, while the DIM direction itself is defined by the difference between the harmful and harmless activation means; moreover, the mean difference describes only first-order statistics and does not exploit the covariance change of activation differences around the mean.
    • Core observation and hypothesis: The authors expect that using the safety prompt mean μsafe as the reference point will cause activations close to the safety mean to receive weaker intervention, while activations close to the harmful mean move along the DIM direction toward the safety mean; the principal directions of the covariance may provide intervention directions beyond DIM.
    • Proposed method: The paper proposes Reference-based Directional Ablation (RDA), and uses PCA to extract the principal directions of the activation-difference covariance, which after orthogonalization are jointly removed with the DIM direction; it additionally defines ρK to measure the relative variance of the top K principal directions.
    • Threat model:
      • Goal: Suppress language model refusal through activation-based jailbreak attacks, so that harmful prompts receive non-refusal responses that are more specific and comply with the request.
      • Capability and control input: Intervene on internal activations at inference time; estimate the means, DIM and covariance using a training split of harmful and harmless prompts, then apply intervention to the generation of test prompts.
      • Victim systems: The experimental subjects are Llama-2-7B-Chat and Vicuna-v1.5-7B; the comparative experiment additionally evaluates the former on JailbreakBench.
      • Knowledge and permissions: The paper does not explicitly define attacker knowledge using terms such as white-box or black-box, nor does it formalize the deployment permissions required to obtain internal activations.
  2. What related research exists?

    Related work is divided into DIM activation steering, multi-direction refusal intervention, and defenses; this paper changes both the reference point and introduces covariance directions.

    DIM activation steering and intervention location

    • Belrose (2023) and Arditi et al. (2024): DIM constructs a direction from the difference in mean activations of two sets of contrastive prompts; Arditi et al. apply it to harmful and harmless prompts, propose Directional Ablation, and remove the refusal-direction component at all transformer layers and at input and output token positions.
    • Cao, Yang, and Zhao (2025): Studies the intervention layers for safety-related activation steering; the paper relays their finding that intermediate layers play a key role in distinguishing harmful from harmless inputs and in safety intervention; this paper accordingly sets local intervention on intermediate layers only and output tokens.

    Changing how the DIM is extracted and selected

    • Wang et al. (2025): Computes the DIM on over-refusal prompts and safety prompts to obtain an over-refusal direction, using single-direction intervention.
    • Abdullaev et al. (2026): Partitions activation distributions into clusters, computes a DIM for each cluster, obtains multiple directions, and selects a direction based on the input.

    Jointly removing multiple refusal-related directions

    • Wollschläger et al. (2025): Extracts multiple complementary directions capturing different aspects of refusal via gradient optimization and ablates them jointly; the paper states that such multi-direction methods can improve jailbreak performance relative to a single DIM direction.
    • Piras et al. (2026): Extracts multiple directions close to the traditional DIM using a self-organizing map (SOM) and then removes them jointly; Table 1 summarizes its direction extraction as SOM neurons minus the harmless centroid.

    Baselines, benchmarks, and potential defenses

    • Direct baseline and data: The main comparison is original Directional Ablation (DA) versus RDA using only the DIM; the DA comparison follows the Arditi et al. (2024) setting, using Llama-2-7B-Chat and JailbreakBench. The remaining experiments use six harmful prompt datasets and fixed TruthfulQA harmless prompts.
    • Yu et al. (2025): Trains models to resist attacks that ablate the traditional DIM refusal direction; the authors list it as a possible defense in the ethics and mitigation section and do not evaluate it in this paper's experiments.

    The authors position this paper as PCA-based RDA in Table 1: unlike methods that only change the DIM source or input selection, it extracts principal directions from the covariance of activation differences and ablates them jointly with the DIM; compared with existing multi-direction methods, it also uniformly uses the mean of safety prompts as the projection reference point.

  3. How does the paper address this problem?

    RDA redefines the projection reference point using the mean safety activation, then orthogonalizes the covariance PCA principal directions and jointly removes them with the DIM.

    The overall idea is to change Directional Ablation into Reference-based Directional Ablation (RDA), then extend it to multi-direction intervention using the principal directions of the activation-difference covariance. The mean difference and the covariance provide the first-order direction and the second-order variation directions, respectively.

    Activation statistics and the DIM direction

    • For each layer l, take the activation of the last input token; both models have 32 layers and hidden dimension d=4096. The harmful and harmless datasets are denoted Dharm and Dsafe, respectively.
    • DIM is defined as r(l)=μharm(l)−μsafe(l), i.e., the difference between the harmful and harmless activation means; after normalization, the traditional refusal direction r̂ is obtained.
    • Each harmful dataset is randomly split into training and test sets at 4:1; the training set estimates the means and covariance and derives the directions, and the test set is used only for evaluating responses after intervention.

    RDA: changing the projection reference point

    • Traditional DA removes the projection of x onto r̂ relative to the origin; RDA instead uses x(l)← x(l)−((x(l)−μsafe(l))·r̂(l))r̂(l), i.e., it removes only the component of the activation relative to the safety mean.
    • The authors state that when the activation is close to μsafe, the projection term is smaller and the intervention is weaker; when it is close to μharm, RDA moves it along the DIM direction toward the safety prompt mean, so the intervention magnitude varies with the activation's relative position.
    • For direct comparison, the all-layer setting only replaces DA's projection formula with RDA; the local setting restricts intervention to the middle layers and output tokens.

    Covariance analysis and variability metric

    • The activation-difference random variable is defined as an independently drawn harmful activation minus a harmless activation, whose expectation equals DIM; under the independence assumption, its covariance is the sum of the harmful and harmless activation covariances.
    • Eigendecompose this covariance matrix and take the principal directions in descending order of eigenvalue. The numerator of ρK is the sum of the top K eigenvalues, and the denominator is the squared norm of the DIM vector, used to represent the relative variance of the principal directions.
    • The authors analyze the covariance of six datasets at layer l=14; this layer is also used in subsequent intervention experiments.

    Multi-direction RDA and experimental configuration

    • DIM and the PCA principal directions are generally not orthogonal; the authors use Gram–Schmidt to construct an orthonormal basis, avoiding redundant intervention from removing directions one by one directly; all projections are still computed relative to μsafe.
    • Compare K=0 (DIM only), K=1 (plus the top eigen-direction) and K=10 (plus the top ten principal directions); additionally, for Llama2-7B-Chat, sweep K from 0 to 10.
    • The authors report that on six datasets and two models, the top 10 principal components explain about 50% of the total variance, and about 100 components explain about 80%; however, K=100 often produces unintelligible outputs, so subsequent experiments use at most K=10.
    • The harmless data are fixed as 817 prompts from TruthfulQA; Aegis takes harmful instructions from the test split of the Aegis AI Content Safety Dataset 2.0, and RepE takes harmful instructions from the harmful/harmless instruction dataset.
  4. What experiments did the paper conduct?

    RDA outperforms DA under both settings on JailbreakBench; the benefit of the covariance principal directions varies by dataset, and K=10 usually degrades.

    Experimental Setup

    • Models tested: Llama-2-7B-Chat and Vicuna-v1.5-7B, both with 32 layers and d=4096; abbreviated as Llama2 and Vicuna-v1.5 in Tables 3 and 5.
    • DA comparison baseline: Following Arditi et al. (2024), 100 JailbreakBench prompts are used on Llama-2-7B-Chat; DA and RDA are compared, changing only the projection formula and the intervention scope.
    • Harmful datasets: AdvBench 520, Aegis 585, Do-Not-Answer 939, RepE 512, HarmBench 400, ForbiddenQuestions 390 prompts; all randomly split into training and test at 4:1.
    • Harmless data and metrics: A fixed set of 817 TruthfulQA prompts is used. Non-Refusal rate is the proportion of responses that do not contain predefined refusal strings; StrongREJECT is scored 0–1, considering both whether the model refuses and whether the answer is persuasive and specific.
    • Intervention scope: The full setting is layers 0–31, input plus output tokens; the local setting is layers 10–19, output tokens only. Multi-direction experiments use the local setting and estimate covariance metrics at layer 14.
    • Repetition and evaluation details: All results are a single run with a fixed random seed; the paper does not report generation sampling parameters, the specific evaluation model for StrongREJECT, or human agreement.

    Main Results

    Table 3: 100 JailbreakBench prompts, target model Llama-2-7B-Chat.

    Swipe horizontally to read the table

    MethodLayersTokensNon-Refusal rateStrongREJECT
    DAAll (0–31)Input + Output0.950.748
    RDAAll (0–31)Input + Output0.970.823
    DAIntermediate (10–19)Output only0.310.268
    RDAIntermediate (10–19)Output only0.980.728
    • Authors' interpretation: RDA outperforms DA in both settings; DA's jailbreak performance drops when changed to local intervention, while RDA still maintains a high Non-Refusal rate.
    • Conditional difference: RDA's StrongREJECT under the local setting is lower than under its all-layer setting, so this cannot be generalized to all metrics improving with localization.
    • Subsequent choice: Based on Table 3, the authors adopt the local intervention setting in the remaining experiments.

    Covariance Differences and Principal-Direction Intervention

    • Variability metric: Table 4 reports at layer 14 that for Llama2, ρ1 ranges from 0.049 on AdvBench to 0.463 on ForbiddenQuestions; for Vicuna-v1.5, from 0.174 on AdvBench to 1.116 on Do-Not-Answer. The authors therefore consider that the change in covariance relative to the DIM varies by dataset.
    • Positive cases for K=1: In Table 5, for Llama2, HarmBench, StrongREJECT goes from 0.148 at K=0 to 0.446 at K=1, and Non-Refusal rate from 0.456 to 0.886; for ForbiddenQuestions, StrongREJECT goes from 0.385 to 0.428.
    • Counterexamples and mixed trends: For Llama2, RepE at K=1, Non-Refusal rate drops from 0.864 to 0.612 and StrongREJECT from 0.565 to 0.282; for Vicuna-v1.5, AdvBench, although Non-Refusal rate rises from 0.596 to 0.702, StrongREJECT drops from 0.141 to 0.087.
    • Authors' conditional conclusion: Datasets with larger variability metrics more often benefit at K=1, while those with smaller variability metrics usually show no improvement; in Table 5, StrongREJECT for K=10 is lower than the respective K=1 on both models across six datasets.

    K Sweep and Score Distribution

    • Per-direction sweep: Figure 1 sweeps K=0–10 for Llama2-7B-Chat; the authors state that AdvBench has no K>0 exceeding K=0, and Aegis and ForbiddenQuestions achieve their respective highest scores at K=7 and K=3. The converted text does not retain the values at each point, so curve heights are not supplemented.
    • Fewer low-score responses: In Figure 2, for Llama2 from K=0 to K=1, the proportion in the StrongREJECT 0.0–0.1 range drops from 57.0% to 17.7% on HarmBench and from 34.6% to 21.8% on ForbiddenQuestions.
    • Failure case: In the same figure, the proportion in this range for RepE rises from 16.5% to 49.5%, consistent with its mean score decrease; the authors state that other datasets show no consistent improvement, and the function and semantics of each principal direction remain unclear.

    Other Ablations and Analyses

    • Separation of Non-Refusal and quality: For Llama2, Do-Not-Answer from K=0 to K=10, Non-Refusal rate rises from 0.898 to 0.936 while StrongREJECT drops from 0.513 to 0.313 (Table 5).
    • Number of principal components: The first 10 principal components explain about 50% of the variance, and about 100 explain about 80%; K=100 often produces unintelligible outputs (Section 4.3).
    • Authors' explanation: Removing more principal directions can suppress explicit refusal wording but does not necessarily produce responses that are sufficiently specific and conform to the harmful request; the paper does not further verify the semantics of each principal direction.
  5. What are some points that can be further explored?

    The authors list four limitations: model scale, stability and semantics of principal directions, and choice of K; the experimental evidence comes from a single run of two 7B models.

    Limitations noted by the authors and future directions

    • Model coverage: The experiments involve only two 7B-parameter models; the authors believe the generality of the conclusions needs to be evaluated on larger models and different model families (Section 5.1).
    • Estimation stability: The principal directions are estimated from limited training samples, and their reliability remains unclear; the authors propose that their stability across different training samples needs to be analyzed (Section 5.1).
    • Semantic interpretation: What information the covariance principal directions encode and how they relate to refusal behavior remains unclear; the authors list understanding their semantics as a direction for future analysis (Section 5.1).
    • Choice of number of directions: The paper does not give a criterion for choosing an appropriate K; the effective number varies with dataset and model, and a systematic selection method remains to be explored (Section 5.1).
    • Follow-up mechanism research: The conclusion states that they will continue to explore how covariance structure can be incorporated into RDA, including the reliability of the principal directions and the choice of their number, and will study the factors behind covariance differences (Section 6).

    Scope of experimental coverage

    • Models and tasks: The tested models are Llama-2-7B-Chat and Vicuna-v1.5-7B, two in total; the direct DA comparison is reported only on Llama-2-7B-Chat and 100 JailbreakBench prompts (Table 3).
    • Data and splits: The multi-direction experiments cover six harmful datasets, with sizes shown in Table 2; each dataset is split at 4:1, and the harmless side is fixed as 817 prompts from TruthfulQA.
    • Intervention scope: Two scopes were compared: all layers plus input and output tokens, and layers 10–19 plus output tokens; the multi-direction experiments use the latter, and the covariance metric is taken at layer 14.
    • Runs and judging: Results are a single run with a fixed random seed; Non-Refusal uses predefined refusal strings, and the paper does not report the number of repetitions, generation sampling parameters, or the specific judge model for StrongREJECT.
    • Defense discussion: Section 5.2 discusses adversarial training of refusal features from Yu et al. (2025) as a possible mitigation; the experimental tables in this paper do not report evaluation of this defense or adaptive attacks.
  6. Summarize the main content of the paper

    RDA improves the reference point and maintains jailbreak performance under local intervention; covariance directions have dataset-dependent gains and also clear counterexamples.

    This is a paper on activation steering jailbreak methods, studying how modifying internal activations can suppress LLM refusal and analyzing the projection reference point of traditional Directional Ablation and the single-DIM direction design.

    • Method points: RDA changes the projection reference point from the origin to the mean activation of safety prompts; it further performs PCA on the covariance of harmful-minus-harmless activation differences, jointly removes the DIM and principal directions after Gram–Schmidt orthogonalization, and denotes relative variance by ρK.
    • Direct comparison: On Llama-2-7B-Chat with 100 JailbreakBench prompts, RDA with all-layer intervention achieves a Non-Refusal rate of 0.97 and StrongREJECT of 0.823, while DA achieves 0.95 and 0.748 respectively (Table 3).
    • Local intervention: When intervening only on layers 10–19 and output tokens, RDA achieves a Non-Refusal rate of 0.98 and StrongREJECT of 0.728; DA achieves 0.31 and 0.268 respectively (Table 3).
    • Gains from principal directions: On Llama2, HarmBench, StrongREJECT is 0.446 for K=1 and 0.148 for K=0; however, on Llama2, RepE the two are 0.282 and 0.565, indicating the gains are not consistent across datasets (Table 5).
    • More directions are not necessarily better: In Table 5, StrongREJECT for K=10 is lower than for K=1 on both models across six datasets; Figure 2 also shows that for RepE the proportion of responses scoring 0.0–0.1 rises from 16.5% at K=0 to 49.5% at K=1.

    The authors consider the results to support the importance of the reference point in Directional Ablation and suggest that covariance structure can provide intervention information beyond the DIM; they also emphasize that the stability, semantics, and choice of number of principal directions remain to be studied, and that the conclusions are currently based on a single run of two 7B models.

Research lineage

2 foundations · 0 follow-ups in library
Explore in knowledge graph →
This paper
Extending Difference-in-Means Activation Steering with Reference Points and Covariance Structure
2026-12-01
Follow-up work

No later in-library follow-ups recorded yet.

Hover or focus a connected paper to inspect the citation context.

Related papers

Show 3 more papers
Read originalarxiv.org