Skip to content

Robust harmful features under jailbreak attacks: mechanistic evidence of functional differentiation in large language model attention headsRobust Harmful Features Under Jailbreak Attacks: Mechanistic Evidence from Attention Head Specialization in Large Language Models

arXiv· arXiv:2606.28153· ICML 2026· Yanchen Yin, Dongqi Han, Linghui Li·Indexed by this site · 2026-10-12· Originally publishedSelected AlignmentSelectedAttention39

Quick read

Interpretability

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

The authors separate early heads suppressed under jailbreak from mid-layer heads that remain activated; ablating 8 ACH on Llama-3-8B gives an ASR of 95.0%.

Questions
Jailbreaks can bypass aligned refusal. The authors believe existing analyses do not clarify whether, when an attack succeeds, safety representations are completely removed or only partially suppressed.
Methods
Project the mid-layer refusal direction back to each attention head via the OV circuit, compare activation distributions for benign, harmful, and attack inputs, separate suppressed ACH and SAH that remain strongly activated under attack, then test with ablation and training-free activation readout.
Experiments and results
On Llama-3-8B, ablating 8 ACH yields an ASR of 95.0%; with all ACH intervened, Table 1 shows 99.5±0.3; random heads give 4.0±3.7. Llama-2-7B at k=8 is 81.6%. Llama-3-8B detection W.Avg. is 0.888.
Limitations and future work
The authors point out that the analysis does not cover MLP, the refusal direction is only a first-order generalization, the main mechanistic experiments use 7–8B strongly aligned models, the successful attack pairing criteria limit sample size, and detection requires white-box activations. Experiments extend to the aforementioned 7–8B, supplementary 70B, and 10 detection sets across 7 models.
Experimental setupLlama-3-8B-Instruct、Llama-2-7B-Chat et al. · Alpaca、harmful-behavior datasets (Zou et al., 2023; Mazeika et al., 2024; Huang et al., 2023; Chao et al., 2024a) et al. · ASR、Macro-F1 et al.
Evaluated models
Llama-3-8B-InstructLlama-2-7B-ChatLlama-3-70BGemma-2BGemma-9BGemma-27BQwen-7BQwen-14B
Benchmarks
Alpacaharmful-behavior datasets (Zou et al., 2023; Mazeika et al., 2024; Huang et al., 2023; Chao et al., 2024a)GCGAutoDANmany-shot jailbreakingPAIRWildGuardTestToxicChatOpenAI ModerationAEGISAEGIS-v2SimpleSafetyTestsHarmBench-VanillaWildJailbreakSALAD-BenchHarmBench-AdversarialOR-Bench-Hard-1K
Metrics
ASRMacro-F1W.Avg.Mean |Act|OVLF1hard specificity
AI summaryand selection rationaleThrough mechanistic interpretability analysis, the researchers found that jailbreak attacks do not comprehensively eliminate the model's safety representations, but rather selectively suppress specific attention heads in early layers. The paper calls the suppressed early-layer attention heads under attack Adversarially Compromised Heads (ACHs), and the continuously activated mid-layer ones Safety-Aligned Heads (SAHs), naming the persistent representations maintained by the latter as robust harmful features. Ablation experiments show that intervening on only 8 ACHs can raise the attack success rate on Llama-3-8B-Instruct from 0% to 95.0%, reaching 99.5% at saturation, and 83.7% on Llama-2-7B-Chat; random attention head intervention yields only 4.0% and 10.2%. Token-level attribution shows that ACH suppression is driven by attack template tokens, while SAHs respond positively to attack templates. The paper was accepted as an oral at ICML 2026.

Through mechanistic interpretability analysis, the researchers found that jailbreak attacks do not comprehensively eliminate the model's safety representations, but rather selectively suppress specific attention heads in early layers. The paper calls the suppressed early-layer attention heads under attack Adversarially Compromised Heads (ACHs), and the continuously activated mid-layer ones Safety-Aligned Heads (SAHs), naming the persistent representations maintained by the latter as robust harmful features. Ablation experiments show that intervening on only 8 ACHs can raise the attack success rate on Llama-3-8B-Instruct from 0% to 95.0%, reaching 99.5% at saturation, and 83.7% on Llama-2-7B-Chat; random attention head intervention yields only 4.0% and 10.2%. Token-level attribution shows that ACH suppression is driven by attack template tokens, while SAHs respond positively to attack templates. The paper was accepted as an oral at ICML 2026.

Why it was selectedThe paper uses ablation experiments to attribute jailbreak success to the suppression of a few attention heads in early layers, and shows that a training-free detector can read residual safety signals.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors state that jailbreaks do not necessarily erase the refusal direction: early-layer heads are suppressed, while mid-layer heads remain active.

    When jailbreaks bypass refusal, are safety-related representations completely eliminated or only locally suppressed?

    • Scenario: The authors believe jailbreaks bypass safety alignment and induce the model to generate harmful content. Multi-layer defenses, as well as internal probes such as refusal directions, safety layers, and safety neurons, have made progress, but what happens inside the model when an attack succeeds remains unclear.
    • Existing gap: The authors believe previous analyses tend to focus on "suppressing safety representations." Their observation is that successful attacks need not completely remove safety-related representations; they may only suppress specific components, leaving other robust activations intact.
    • Core observation: In Figure 1, when an attack has bypassed refusal, mid-layer refusal direction activations remain; the authors state these layers align with the safety-related layers identified by Li et al. (2025). From this, they ask: what makes the attack succeed, and what maintains these robust activations.
    • This paper proposes: Using distribution overlap to distinguish early-layer ACH (Adversarially Compromised Heads) that are suppressed under attack, and mid-layer SAH (Safety-Aligned Heads) that remain active under attack, and referring to the internal harmful semantic representations not eliminated by the attack as Robust Harmful Features. Then, a training-free readout of internal activations is used for harmful input detection as a practical validation.
    • Analysis setup: The target is aligned LLMs. Inputs are divided into benign instructions, harmful instructions that the model successfully refuses, and attack variants that succeed in jailbreaking; the latter two are paired one-to-one. Mechanistic interventions rewrite the output of attention heads at the end-of-instruction position; the detector requires white-box internal activations, uses only a single forward pass, and does not involve gradients or parameter intervention. The paper does not describe this setup as black-box or no-box.
  2. What related research exists?

    The authors divide prior work into safety interpretability under normal refusal, and jailbreak defenses that are more black-box or use shallow signals.

    Interpretability of Safety Mechanisms

    • Circuits: ACDC by Conmy et al. (2023) uses activation patching for iterative pruning, retaining subgraphs relevant to specific behaviors; Marks et al. (2025) use sparse autoencoders to replace original neurons with interpretable feature nodes to discover causal graphs with clearer semantics.
    • Representations and components: Arditi et al. (2024) extract a single refusal direction using difference-in-means; removing this direction eliminates refusal; Wollschläger et al. (2025) extend it to a refusal cone. Zhao et al. (2025b) locate safety neurons comprising less than 1% of parameters; Li et al. (2025) locate safety layers; Zhou et al. (2025) (Sahara) attribute safety-critical heads via OV circuit back-projection; Zhou et al. (2024) use probing classifiers to trace how alignment turns early ethical concepts into cross-layer refusal. For a review, see Bereska & Gavves (2024).
    • Head specialization: Olsson et al. (2022) discuss induction behavior, McDougall et al. (2023) discuss copying suppression, and Conmy et al. (2023) use causal tracing to find behavior-related circuits. The paper states that these works show individual heads can implement specialized functions; this paper instead, under adversarial safety failure, distinguishes heads suppressed by attack from heads that remain robust after successful attack.

    The authors explicitly state that the above studies examine safety mechanisms under normal conditions where the model successfully refuses harmful requests.

    Jailbreak Attacks and Defenses

    • Attack paradigms: Optimization attacks (Zou et al., 2023), black-box attacks (Chao et al., 2024b), context-based attacks (Anil et al., 2024). This paper constructs attack sets using GCG, AutoDAN, many-shot jailbreaking, and PAIR.
    • Detection and training-free defenses: Alon & Kamfonas (2024) use high perplexity of adversarial suffixes for detection; LlamaGuard (Inan et al., 2023) and WildGuard (Han et al., 2024) train safety classifiers. GradientCuff (Hu et al., 2024) detects jailbreaks based on the refusal loss landscape; CAST (Lee et al., 2024) uses conditional activation steering to decide when to apply refusal.
    • Perturbation and representation intervention: SmoothLLM (Robey et al., 2024) applies random perturbations to inputs and aggregates multiple outputs. Circuit Breakers (Zou et al., 2024) learn to direct harmful activations toward the refusal direction; SafeDecoding (Xu et al., 2024) adds safety constraints during decoding. The authors state that these methods often treat the model as a black box or rely only on shallow signals.

    Baselines and Benchmarks

    • Baseline methods: VANILLA, i.e., the model's own refusal behavior; dedicated safety models LlamaGuard3/4, Qwen3Guard, WildGuard. The appendix also compares with training-free methods GradientCuff and CAST.
    • Benchmarks: For mechanistic analysis, the benign set comes from Alpaca, the harmful set from multiple harmful behavior datasets, and the attack set is generated by the aforementioned jailbreak methods. Detection uses 10 datasets from safety-eval (Han et al., 2024; Jiang et al., 2024), and the appendix additionally uses OR-Bench-Hard-1K.

    The authors position this paper in this line: when attacks have already bypassed refusal, distinguish which type of head is a sufficient pathway for attack success, which type provides robust features, and use the persistent activations for detection to test the practical value of the mechanistic findings.

  3. How does the paper address this problem?

    Back-project the mid-layer refusal direction to attention heads, then use distribution overlap to classify into ACH and SAH.

    The overall approach is a distribution-overlap-based classification framework for attention heads: the mid-layer refusal direction is back-projected through the OV circuit to each attention head, and then, based on the activation distributions of three input types (benign, harmful, attack), heads are divided into ACH (suppressed under attack) and SAH (activation enhanced under attack). Detection is a subsequent training-free readout, with details mainly in Appendix D.

    Refusal Direction and Backward Tracing

    • The refusal direction follows the difference-in-means method of Arditi et al. (2024): on a simple harmful instruction set and a simple benign instruction set, take the mean activation difference at the end-of-instruction (EOI) position, select the optimal layer L* on a validation set, and normalize. For Llama-3, L* is layer 12; for Llama-2, layer 14. The authors state that this direction typically appears stably in mid-layers and rarely in early layers, and treat it as a first-order characterization; the refusal cone can be incorporated into this framework by applying the same back-projection to multiple basis directions. The paper does not report the size of this validation set.
    • Each attention head is divided into QK circuit and OV circuit. The authors ignore LayerNorm and write the head update as a linear weighting of source position values. Because OV is a linear map, the inner product in the output direction can be written as the inner product of the input with the direction after applying the transposed matrix.
    • Algorithm 1 proceeds layer by layer downward from L*: for each head, compute r_v = (W_O)^T r, then propagate through (W_V)^T to the input space, and sum the contributions of each head to obtain the refusal direction for the previous layer. The authors state that this quantifies each head's potential contribution to the mid-layer refusal signal. Appendix B explains that focusing on attention heads is a scope choice: information routing is done by heads, and the linear structure facilitates precise attribution; the nonlinearity of MLPs makes similar attribution more difficult.

    Three Activation Types and Two-Stage Classification

    • For each head, outputs are collected at EOI, and the activation score is defined as s(l,h)(x)=⟨ oEOI(l,h)(x), rv(l,h)⟩. The three data types are: Dbenign from Alpaca; Dharmful where the model successfully refuses; Dattack where the jailbreak succeeds. The latter two are paired one-to-one, keeping only samples where the original request was refused and the attack version succeeded.
    • Distributions are estimated using kernel density estimation with the default Scott bandwidth. Separability of two input types is measured by the overlap coefficient OVL=∫ min(p1(x),p2(x)) dx; the lower the overlap, the stronger the discriminative power, according to the authors.
    • The first stage retains heads with OVL(harmful, benign) below τ_harmful. In the second stage, among these heads: those with OVL(harmful, attack) above τ_attack are called Harmful-Salient Heads, meaning the distribution remains stable under attack; those below this threshold are further compared using a z-score normalized by the relative benign mean and standard deviation. z_attack < z_harmful 为 ACH(攻击下被压制);z_attack > z_harmful indicates SAH. The methods section defines SAH as activation enhanced under attack; the abstract states that SAH maintains robust activation after successful attack. Both models use τ_harmful = τ_attack = 0.5. The authors' explanation for 0.5 is: overlap below 0.5 means the two distributions share less than half of their probability mass.

    Causal Intervention and Token Attribution

    • ACH: On harmful inputs that would originally be refused, inject a negative feature at EOI by subtracting α times r_v from the head output, with α = 0.8, gradually increasing the number of heads and measuring ASR. The control is random heads, 10 seeds, reporting 95% confidence intervals. The authors state that smaller α yields negligible effects, while larger α makes generation unstable.
    • SAH: Apply the same suppression on attack inputs and examine mid-layer activations. For Llama-2, layers 14–25; for Llama-3, layers 12–25; intensity is measured by the mean absolute activation of mid-layer heads, Mean |Act|.
    • Token attribution uses the additivity of attention weights summing to 1, decomposing EOI activations into individual input tokens, then separating into the original harmful request contribution C_H and the attack template contribution C_J.

    Training-Free Detection

    • The detector is not limited to ACH or SAH. It selects observation positions where the overlap between harmful and benign activations is below a threshold, and uses the mean of the top-m largest standardized scores as the detection score; if it exceeds a decision threshold, the input is classified as harmful. The appendix fixes the overlap threshold at 0.3; the decision threshold is selected on a validation set to maximize F1. The number of candidate components, m*, and thresholds for each model are given in Table A5. The paper does not specify the composition of this validation set.
    • It requires white-box internal activations, but only a single forward pass, with no gradients and no model intervention. The authors state that the ACH/SAH distinction is used to explain why a usable harmful-versus-benign signal remains under attack.
  4. What experiments did the paper conduct?

    The ASR for Llama-3-8B ablation of 8 ACH heads is 95.0%; its detection W.Avg. is 0.888.

    Experimental setup

    • Mechanistic models: Llama-3-8B-Instruct, Llama-2-7B-Chat. Appendix E adds Llama-3-70B-Instruct. Detection in Table 2 also reports Gemma-2B, Gemma-9B, Gemma-27B, Qwen-7B, Qwen-14B; Appendix Table A5 writes these as Gemma-2-2B, Gemma-2-9B, Gemma-2-27B.
    • Mechanistic data: Dbenign is from Alpaca. Dharmful comes from Zou et al. (2023), Mazeika et al. (2024), Huang et al. (2023), Chao et al. (2024a). Dattack is generated by GCG, AutoDAN, many-shot jailbreaking, and PAIR. Only pairs where the original request was refused and the attack succeeded are kept. Out of approximately 10,000 attack samples, Llama-2 retains 378 pairs, Llama-3-8B retains 176 pairs; the text states a pass rate of about 2–3%, while Appendix Table A8 states about 3.8% and about 1.8%. 70B has 40 pairs (<0.5%). The paper does not give the number of Dbenign or unfiltered harmful sets.
    • Metrics and repetitions: Ablation uses ASR. For 7–8B, mean and 95% confidence interval over 10 runs; random head controls use 10 seeds. The paper does not specify which model or rule determines ASR. Detection uses Macro-F1 per dataset and sample-size-weighted W.Avg. Mid-layer strength uses Mean |Act|, classification uses OVL.
    • Detection data and baselines: 10 datasets from safety-eval, with the text stating harmful:benign = 1:1. Table A4 lists sample sizes, e.g., WildGuardTest 1725, ToxicChat 5083, OpenAI Moderation 1,680, AEGIS 1,199, AEGIS-v2 1,928, SimpleSafetyTests 100+100, HarmBench-Vanilla 159+159, WildJailbreak 2,210, SALAD-Bench 5000+5000, HarmBench-Adversarial 569+569. The paper does not explain how 1725 aligns with 1:1. Baselines are VANILLA, plus LlamaGuard3/4, Qwen3Guard, WildGuard.
    • Fixed parameters: τ_harmful = τ_attack = 0.5, KDE uses Scott's rule, intervention α = 0.8. Refusal direction layers are Llama-3 layer 12, Llama-2 layer 14, 70B layer 26. Classification only analyzes up to that layer, not full model depth: Llama-3 layers 0–12 totaling 416 heads, Llama-2 layers 0–14 totaling 480 heads.

    Main results

    The main result is whether ACH ablation raises ASR on originally refused harmful inputs.

    Swipe horizontally to read the table

    ModelACH Final ASR (%)Random heads Final ASR (%)k=8 ASR
    Llama-3-8B-Instruct99.5 ± 0.34.0 ± 3.7 (21 heads)95.0%
    Llama-2-7B-Chat83.7 ± 1.110.2 ± 11.6 (20 heads)81.6%

    Final ASR per Table 1 (10 runs, 95% CI); k=8 per Figure 5. Without intervention, the text states baseline ASR ≈ 0%. 70B is not in this table. The abstract states ASR goes from 0% to over 95%, saturating at 99.5%; this corresponds to Llama-3-8B's figures/tables, not covering Llama-2-7B's 81.6% at k=8.

    • The authors state the curve is S-shaped, suppressing ACH is sufficient to reproduce jailbreak-like behavior, and random heads are not; they also state they do not believe real attacks use only this pathway, and this result is consistent with the token evidence in Section 4.4.
    • The authors state the high variance of random heads reflects instability of non-specific intervention. The intervention touches only 8–21 of hundreds of heads.
    • The authors state that qualitative generations after ACH intervention remain coherent and on-topic, see Appendix C; and that this shows less unstable generation than random head intervention. Full capability benchmark scores are not reported in this paper.

    Head classification, SAH ablation, and token attribution

    • Classification: Under fixed thresholds, Llama-3 yields harmful-salient 80, ACH 21, SAH 17 out of 416 heads; Llama-2 yields 43, 20, 19 out of 480 heads (Figure 4). In the legend, white is weak discriminative, blue is harmful-salient, red is ACH (Attack Neg), yellow is SAH (Attack Pos). The authors state ACH concentrates in layers 0–3, exceeding 60%, and SAH mainly in layers 5–12. Figure 3 caption writes red as positive, blue as negative; the authors state attack inputs show polarization, e.g., Llama-3 layers 5–7 strongly positive, Llama-2 layers 0–2 strongly negative, rather than simply neutralizing harmful activations. The authors believe this inter-layer differentiation may extend beyond the current model family, but broader validation is still needed.
    • SAH ablation: The text states Llama-2's Mean |Act| drops from 0.222 to 0.181, which the authors call an 18% decrease; Llama-3 from 0.0062 to 0.0053, called a 14% decrease. Harmful originals are 0.397 and 0.0086, respectively. Figure 6 caption labels Llama-3 as 0.009, 0.006, 0.005, corresponding to the same order of magnitude as the finer numbers in the text. The authors state the previously clear red/blue contrast nearly disappears after ablation, and call SAH an important source of Robust Harmful Features; they also leave open whether other components also maintain harmful semantic representations.
    • Token attribution: Figure 7 splits contributions into harmful tokens, template tokens, and total, with legend red as ACH, yellow as SAH, blue as harmful-salient. The authors state that on original harmful tokens, the medians of both head types are within ±0.15; on template tokens, ACH median is about -1.5 and SAH about +1.5, separated by more than three standard deviations. The authors believe attack templates selectively suppress ACH rather than erasing harmful semantics; SAH responds positively to templates, thus maintaining internal safety signals.

    Training-free detection

    Table 2's W.Avg. is the sample-size-weighted mean of Macro-F1 across 10 datasets.

    ModelVANILLAOurs
    Gemma-2B0.4700.853
    Gemma-9B0.5140.816
    Gemma-27B0.5190.798
    Llama-2-7B0.6640.752
    Llama-3-8B0.7970.888
    Qwen-7B0.5060.860
    Qwen-14B0.4700.847
    • The authors state Ours is higher than VANILLA in aggregate, and cite relative improvements of 81.5% and 70.0% for Gemma-2B and Qwen-7B. Out-of-table dedicated models' W.Avg. are LlamaGuard3 0.599, LlamaGuard4 0.666, Qwen3Guard 0.877, WildGuard 0.880. The authors state Llama-3-8B's W.Avg. is higher than all four, while citing Llama-2-7B's aggregate as lower than them.
    • Adversarial set numbers highlighted by the authors: on SALAD-Bench, Gemma-2B goes from 0.270 to 0.976, and they state it is higher than WildGuard's 0.970; on WildJailbreak, Qwen-7B goes from 0.483 to 0.907. The authors write that VANILLA has F1 < 0.5 on these datasets; in Table 2, Llama-3-8B's VANILLA is 0.887 on SALAD-Bench and 0.888 on WildJailbreak, which does not fit this general statement.
    • Not every cell is higher for Ours: Llama-2-7B on HarmBench-Adversarial has VANILLA 0.832, Ours 0.797, and on WildJailbreak 0.885 vs 0.880. Gemma-27B on ToxicChat has Ours at 0.437. The authors also write detection accuracy ranges from 0.85–0.98; this range does not cover all cells in Table 2.

    70B supplementary analysis

    • From the same attack pool of about 10,000, Llama-3-70B-Instruct retains 40 pairs (<0.5%). L* = 26, layers 0–26, 64 heads per layer, totaling 1,728 heads. Table A9: harmful-salient 200 (11.6%), ACH 62 (3.6%), SAH 83 (4.8%); ACH in layers 0–6, SAH in layers 8–20. Figure A5's textual description is similar to 8B: benign is more uniform, under attack early layers have negative activations, mid-layers still have positive activations. The authors treat this as preliminary, qualitative consistency, and state sample size limits statistical power.
    • ACH ablation n = 50: baseline ASR ∼6.0%, k = 20 ∼76.0%, k = 40 ∼97.0%, k = 62 ∼98.0% (Table A10). Table A11 writes that at k = 8, 70B is about 7%, while 8B is 95.0%; the number of heads needed to reach about 95% is 8 for 8B and about 40 for 70B. The authors state the qualitative conclusion remains that ACH ablation is sufficient to induce attack success, but more heads are needed.
    • SAH ablation looks at layers 26–40, n = 40: Mean |Act| goes from 0.0040 to 0.0034, called a 15% decrease; harmful original is 0.0045 (Figure A10). In token attribution, the authors state that on template tokens, ACH median is about -4 and SAH about +2, separated by more than six standard deviations (Figure A8).

    Other ablations and analyses

    • Threshold τ from 0.1 to 0.9, shared across two stages: at τ = 0.5, Llama-3 has 21 ACH and 17 SAH, Llama-2 has 20 and 19; the authors state the main conclusion holds for τ ∈ [0.4, 0.6] (Table A1). At τ = 0.4, Llama-3 has only 7 ACH and 8 SAH; at τ = 0.6, 45 and 51.
    • Bandwidth scaling α ∈ [0.2, 2.0]: for α ∈ [0.8, 1.2], Jaccard relative to Scott baseline is at least 0.800; full scan Spearman ≥ 0.928 for Llama-3, ≥ 0.979 for Llama-2 (Table A3).
    • Training-free comparison on Qwen-7B W.Avg.: Ours 0.856, GradientCuff 0.741, CAST 0.611 (Table A6). This differs from Table 2's Qwen-7B Ours of 0.860, which the paper does not explain.
    • OR-Bench-Hard-1K, Llama-3-8B: Ours F1 is 0.606, hard specificity 0.418; VANILLA is 0.571 / 0.329, GradientCuff 0.510 / 0.053, CAST 0.453 / 0.290 (Table A7).
    • Detection hyperparameters: appendix fixes overlap threshold at 0.3. In Table A5, Llama-3-8B has candidate components 1055, m* = 875, τ* = 1.262; Gemma-2-27B has m* = 38, τ* = 4.992. Appendix D.6 does token attribution on a role-play sample, writing detection score Z = 3.07∼5.36, higher than each model's threshold τ = 0.68∼1.80; the specific wording of that sample is not reproduced.
  5. What are some points that can be further explored?

    The authors note that MLP is not covered, the refusal direction is only a first-order approximation, and detection requires white-box activations.

    Limitations and Future Directions Noted by the Authors

    • Component scope: The analysis focuses on attention mechanisms and does not cover MLP layers (Section 6). Appendix B describes the lack of explicit modeling of MLP and LayerNorm as a limitation of the research scope, and states that head interventions only demonstrate the sufficiency of attention heads, not exclusivity.
    • Refusal geometry: Uses a single refusal direction as a first-order approximation, rather than the full refusal subspace (Section 6).
    • Models and paired samples: The main mechanistic experiments use 7–8B strongly aligned models; the authors refer to cross-family detection and preliminary 70B analysis as evidence of generalization. Constructing the data requires that the original request is refused and the attack succeeds; the authors state this strict criterion limits sample size, and successful attacks are rarer on the more strongly aligned Llama-3 (Section 6). Appendix E states that the 70B classification has only 40 pairs and the ablation uses 50 samples, leading to higher variance in statistical estimates, and describes the results as preliminary evidence rather than definitive conclusions.
    • Deployment conditions: The detector requires internal activations, so direct deployment is limited to white-box or open-weight settings (Section 6).
    • Future directions: Weaker alignment and larger models, richer refusal subspace analysis, diverse attack paradigms, and tracing information flow between ACH and SAH (Section 6). Appendix E also mentions developing attacks that can bypass 70B at a higher rate, or adopting experimental designs that do not rely on successful attack samples.

    Experimental Coverage

    • The main mechanistic experiments use Llama-3-8B-Instruct and Llama-2-7B-Chat; Appendix E adds Llama-3-70B-Instruct, with the refusal direction taken from layer 26 and classification covering layers 0–26.
    • Attack samples are composed of GCG, AutoDAN, many-shot jailbreaking, and PAIR; after filtering, Llama-2 has 378 pairs, Llama-3-8B has 176 pairs, and 70B has 40 pairs.
    • The ACH ablation for 7–8B models runs 10 times and reports 95% confidence intervals, with a random-head control; the 70B ablation uses a fixed set of 50 harmful requests. The SAH ablation reports mid-layer Mean |Act|, with 70B using layers 26–40 and n = 40.
    • Detection reports Macro-F1 for Gemma-2B, Gemma-9B, Gemma-27B, Llama-2-7B, Llama-3-8B, Qwen-7B, and Qwen-14B on 10 safety-eval datasets. The appendix compares GradientCuff and CAST on Qwen-7B and reports OR-Bench-Hard-1K on Llama-3-8B.
    • The paper does not report the evaluation model or decision rule for ASR, nor standard capability benchmark scores under head-level interventions; Section 4.3 states this evaluation is left for future work. The paper does not report the composition of the validation set used to select detection thresholds.
  6. Summarize the main content of the paper

    The authors state that jailbreaks bypass refusal by suppressing ACH, while SAH still leaves harmful features that can be read out without training.

    This work examines whether attention heads show functional differentiation after a jailbreak has already bypassed refusal, and uses the remaining internal activations for training-free detection.

    • Problem: A successful attack does not mean safety representations are entirely erased. The authors aim to separate two types of heads: those suppressed by the attack, thus forming a sufficient pathway for bypassing refusal, and those that still maintain harmful semantic activations after the attack.
    • Approach: Take the refusal direction at layer 12 of Llama-3 and layer 14 of Llama-2, and back-project it to earlier heads via the OV circuit. First, filter heads with discriminative power based on harmful-vs-benign overlap, then separate ACH and SAH based on harmful-vs-attack overlap and the rise/fall of normalized activations. Causal testing injects negative features at EOI with coefficient α = 0.8. The detector additionally aggregates a set of components separable between harmful and benign, not limited to these two head types, with a single forward pass and no training.
    • Ablation: Llama-3-8B-Instruct at k = 8 has an ASR of 95.0%; with all ACH intervened, Table 1 shows 99.5 ± 0.3; random 21 heads give 4.0 ± 3.7. Llama-2-7B-Chat at k = 8 is 81.6%, saturating at 83.7 ± 1.1, with random 20 heads at 10.2 ± 11.6 (Figure 5, Table 1). Without intervention, the text states a baseline of approximately 0%.
    • Robust activations and detection: After SAH ablation, mid-layer Mean |Act| drops from 0.222 to 0.181 for Llama-2, and from 0.0062 to 0.0053 for Llama-3. The authors argue that template tokens suppress ACH while SAH remains positive for templates, so internal harmful features persist. In Table 2, Llama-3-8B's W.Avg. is 0.888, Gemma-2B on SALAD-Bench is 0.976; Llama-2-7B on HarmBench-Adversarial has Ours at 0.797, lower than VANILLA's 0.832.
    • Authors' conclusion: The authors believe jailbreaks can bypass refusal by selectively suppressing a small number of key components rather than completely erasing safety representations; SAH is an important source of Robust Harmful Features. They claim that training-free readout of these features is comparable in aggregate scores to dedicated safety models in white-box settings, but deployment depends on access to internal activations. Qualitative patterns are similar on 70B, but raising ASR to about 95% requires approximately 40 heads rather than 8.
Read originalICML 2026