paper-with-me

Papers

Using Mechanistic Interpretability to Craft Adversarial Attacks against Large Language Models

2025-03-08 · Thomas Winninger, Boussad ADDAD, Katarzyna Kapusta

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.

📄 PDF Abstract BibTeX arXiv:2503.06269

Code (1)

sckathach/subspace-rerouting 공식 구현 jax

Similar Papers 제목 키워드 기반

Targeted Adversarial Attacks on Deep Reinforcement Learning Policies via Model Checking

2022-12-10 · Dennis Gross, Thiago D. Simao, Nils Jansen, Guillermo A. Perez

Deep Reinforcement Learning (RL) agents are susceptible to adversarial noise in their observations that can mislead their policies and decrease their performance. However, an adversary may be interested not only in decre…

Deep Reinforcement Learningreinforcement-learningReinforcement Learning (RL)

Adversarial Attacks against Neural Networks in Audio Domain: Exploiting Principal Components

2020-07-14 · Ken Alparslan, Yigit Alparslan, Matthew Burlick

Adversarial attacks are inputs that are similar to original inputs but altered on purpose. Speech-to-text neural networks that are widely used today are prone to misclassify adversarial attacks. In this study, first, we …

ClassificationGeneral ClassificationSpeech-to-Text

Defending against Machine Learning based Inference Attacks via Adversarial Examples: Opportunities and Challenges

2019-09-17 · Jinyuan Jia, Neil Zhenqiang Gong

As machine learning (ML) becomes more and more powerful and easily accessible, attackers increasingly leverage ML to perform automated large-scale inference attacks in various domains. In such an ML-equipped inference at…

BIG-bench Machine LearningInference Attack

Improving Adversarial Robustness to Sensitivity and Invariance Attacks with Deep Metric Learning

2022-11-04 · Anaelia Ovalle, Evan Czyzycki, Cho-Jui Hsieh

Intentionally crafted adversarial samples have effectively exploited weaknesses in deep neural networks. A standard method in adversarial robustness assumes a framework to defend against samples crafted by minimally pert…

Adversarial RobustnessMetric LearningSensitivity

Explain2Attack: Text Adversarial Attacks via Cross-Domain Interpretability

2020-10-14 · Mahmoud Hossam, Trung Le, He Zhao, Dinh Phung

Training robust deep learning models for down-stream tasks is a critical challenge. Research has shown that down-stream models can be easily fooled with adversarial inputs that look like the training data, but slightly p…

Adversarial Attacktext-classificationText Classification