Robust Harmful Features Under Jailbreak Attacks: Mechanistic Evidence from Attention Head Specialization in Large Language Models

10d ago · Global · primary source: export.arxiv.org

New research posted to arXiv on 26 June 2026 finds that jailbreak attacks on large language models do not erase safety features but instead selectively suppress specific components called attention heads [1][2]. The study identifies two functionally distinct types of attention heads: Adversarially Compromised Heads (ACHs) and Safety-Aligned Heads (SAHs) [1][2]. ACHs are concentrated in the model's early layers and are suppressed when a jailbreak attack is applied. SAHs reside in mid-layers and maintain robust activations even when an attack succeeds in bypassing a model's refusal to answer [1][2]. Large language models, or LLMs, are neural networks trained on vast amounts of text and are the foundational technology behind modern chatbots [3]. They are typically based on the transformer architecture and are often fine-tuned to follow instructions and behave as assistants [3]. Safety alignment is a process meant to prevent these models from generating harmful content. The researchers conducted ablation studies to test the causal role of these heads. They found that suppressing a small number of ACHs was sufficient to induce jailbreak-like behavior on inputs the model would normally refuse [1][2]. Conversely, removing SAHs substantially weakened mid-layer safety activations [1][2]. A token-level analysis provided a mechanistic explanation for the phenomenon. The suppression of ACHs is driven specifically by the tokens that make up the attack template. This allows the attack to bypass the model's refusal decision by suppressing ACHs, while internal safety signals are kept alive by the SAHs. The authors term this finding "Robust Harmful Features" [1][2]. To demonstrate the practical significance of this robustness, the paper shows that simply reading the persistent activations from SAHs—without any additional training—yields competitive detection performance for jailbreak attempts with strong adversarial robustness [1][2]. The paper was submitted to arXiv, an open-access repository for electronic preprints that is not peer-reviewed, which hosts scientific papers in fields including computer science [7].

controversysafety-researchresearch-paper

Background sources we checked (8)
  • arxiv.org ↗ Jailbreak attacks bypass LLM safety alignment, yet their mechanisms remain poorly understood. We provide evidence that attacks do not comprehensively eliminate safety features, but instead selectively suppress specific attention heads. We identify two functionally differentiated …
  • en.wikipedia.org ↗ A large language model (LLM) is a neural network trained on a vast amount of text for natural language processing tasks, especially language generation. LLMs can typically generate, summarize, translate, and analyze text in many contexts, and are a foundational technology behind …
  • info.arxiv.org ↗ arXiv Labs - arXiv info | arXiv e-print repository Skip to content # arXiv Labs Attention arXiv Users: arXiv Labs is pausing new proposals ## What are arXiv Labs? arXiv Labs are a way for the community to contribute new, useful features to arXiv. These integrations are avail…
  • info.arxiv.org ↗ arXivLabs: Showcase - arXiv info | arXiv e-print repository ... # arXivLabs: Showcase ... arXiv is surrounded by a community of researchers and developers working at the cutting edge of information science and technology. ... While the arXiv team is focused on our core mission—pr…
  • blog.arxiv.org ↗ arXivLabs: a space for community innovation – arXiv blog arXiv has launched a new, formalized framework enabling innovative collaborations with individuals and organizations. “Members of our community want to contribute tools that enhance the arXiv experience, and we val…
  • en.wikipedia.org ↗ arXiv (pronounced as "archive"—the X represents the Greek letter chi ⟨χ⟩) is an open-access repository of electronic preprints and postprints (known as e-prints) approved for posting after moderation, but not peer reviewed. It consists of scientific papers in the fields of mathem…
  • en.wikipedia.org ↗ 14 (fourteen) is the natural number following 13 and preceding 15.…
  • en.wikipedia.org ↗ LK-99 also called PCPOSOS, is a gray–black, polycrystalline compound, identified as a copper-doped lead‒oxyapatite. A team from Korea University led by Lee Sukbae (이석배) and Kim Ji-Hoon (김지훈) began studying this material as a potential superconductor in 1999, and in July 2023 publ…

Sources

Spot something wrong? Report an issue