Using Mechanistic Interpretability to Craft Adversarial Attacks against Large Language Models
Not on the map. Why?
Abstract (arXiv)
Traditional white-box methods for creating adversarial perturbations against LLMs typically rely only on gradient computation from the targeted model, ignoring the internal mechanisms responsible for attack success or failure. Conversely, interpretability studies that analyze these internal mechanisms lack practical applications beyond runtime interventions. We bridge this gap by introducing a novel white-box approach that leverages mechanistic interpretability techniques to craft practical adversarial inputs. Specifically, we first identify acceptance subspaces - sets of feature vectors that do not trigger the model's refusal mechanisms - then use gradient-based optimization to reroute embeddings from refusal subspaces to acceptance subspaces, effectively achieving jailbreaks. This targeted approach significantly reduces computation cost, achieving attack success rates of 80-95% on state-of-the-art models including Gemma2, Llama3.2, and Qwen2.5 within minutes or even seconds, compared to existing techniques that often fail or require hours of computation. We believe this approach opens a new direction for both attack research and defense development. Furthermore, it showcases a practical application of mechanistic interpretability where other methods are less efficient, which highlights its utility. The code and generated datasets are available at https://github.com/Sckathach/subspace-rerouting.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 52 of its 76 references that are in the map. First posted on arXiv 8 Mar 2025.
Builds on
52 of 76 references.
References · 52
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
38 more
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
- 2022Toy Models of Superpositioncited by 928
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 412
- 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 364
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 185
- 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 179
- 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMscited by 160
- 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMscited by 158
- 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMscited by 146
- 2024LLM Defenses Are Not Robust to Multi-Turn Human Jailbreaks Yetcited by 145
- 2024Improved Techniques for Optimization-Based Jailbreaking on Large Language Modelscited by 98
- 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden Statescited by 92
- 2024Steering Language Model Refusal with Sparse Autoencoderscited by 89
- 2024On the Role of Attention Heads in Large Language Model Safetycited by 70
- 2023Ignore This Title and HackAPrompt: Exposing Systemic Vulnerabilities of LLMs through a Global Scale Prompt Hacking Competitioncited by 65
- 2024Query-Based Adversarial Prompt Generationcited by 55
- 2024Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neuronscited by 47
- 2024Understanding Jailbreak Success: A Study of Latent Space Dynamics in Large Language Modelscited by 34
- 2024Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Samplingcited by 33
- 2024AttnGCG: Enhancing Jailbreaking Attacks on LLMs with Attention Manipulationcited by 31
- 2023Trojan Activation Attack: Red-Teaming Large Language Models using Activation Steering for Safety-Alignmentcited by 27
- 2024JailbreakLens: Interpreting Jailbreak Mechanism in the Lens of Representation and Circuitcited by 21
- 2024Beyond Interpretability: The Gains of Feature Monosemanticity on Model Robustnesscited by 13
- 2025xJailbreak: Representation Space Guided Reinforcement Learning for Interpretable LLM Jailbreakingcited by 10
- 2023Causality Analysis for Evaluating the Security of Large Language Modelscited by 9
- 2024AmpleGCG-Plus: A Strong Generative Model of Adversarial Suffixes to Jailbreak LLMs with Higher Success Rates in Fewer Attemptscited by 9
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2025: 3; 2026: 6.
9 papers.
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2026Subspace-Aware Sparse Autoencoders for Effective Mechanistic Interpretabilitycited by 3
- 2025Activation-Guided Local Editing for Jailbreaking Attackscited by 1
- 2026Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMscited by 1
- 2026Estimating Rare Events in Language Models with Proper Evaluationcited by 1
- 2025Super Suffixes: Bypassing Text Generation Alignment and Guard Models Simultaneouslycited by 0
- 2026Epistemic Observability in Language Modelscited by 0
- 2026Why Do Large Language Models Generate Harmful Content?cited by 0
- 2026Refusal Before Decoding: Detecting and Exploiting Refusal Signals in Intermediate LLM Activationscited by 0
- 2026Estimating Rare Events in Language Models with Proper Evaluation20 Jul 2026
- 2026Subspace-Aware Sparse Autoencoders for Effective Mechanistic Interpretability4 Jun 2026
- 2026Refusal Before Decoding: Detecting and Exploiting Refusal Signals in Intermediate LLM Activations27 May 2026
- 2026Why Do Large Language Models Generate Harmful Content?13 Apr 2026
- 2026Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMs24 Mar 2026
- 2026Epistemic Observability in Language Models20 Mar 2026
- 2025Super Suffixes: Bypassing Text Generation Alignment and Guard Models Simultaneously12 Dec 2025
- 2025Activation-Guided Local Editing for Jailbreaking Attacks1 Aug 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025