Fall 2026 mentee applications are open! Apply to research projects by August 18. Apply now

All Fall 2026 projects

Mechanistic interpretability of jailbreak attacks

Mechanistic interpretability AI security

Modern aligned language models refuse harmful requests, yet simple jailbreak prompts often restore unsafe behavior. This project investigates whether jailbreaks operate by manipulating the internal representations responsible for refusal. We will identify refusal-related directions or sparse features using representation analysis across multiple aligned models, compare how diverse jailbreak families alter these representations, and perform causal interventions through activation steering to test whether restoring refusal representations can prevent successful jailbreaks. The project aims to determine whether jailbreaks exploit a shared geometric mechanism or multiple distinct internal circuits, providing mechanistic insights into the robustness and limitations of current alignment methods.

About the project

Modern language models are typically aligned through supervised fine-tuning (SFT), reinforcement learning from human feedback (RLHF), or related techniques to refuse harmful or policy-violating requests. Despite these safeguards, carefully crafted jailbreak prompts can often elicit unsafe responses. While considerable work has focused on developing jailbreak attacks and measuring their success rates, much less is understood about why they work from a mechanistic perspective.

Recent work in mechanistic interpretability suggests that many high-level behaviors are represented by approximately linear directions, low-dimensional subspaces, or sparse features within model activations. Similar methods have recently been used to identify representations associated with refusal behavior in aligned models. This motivates the central hypothesis of this project: successful jailbreaks manipulate the internal representations responsible for refusal, causing models to transition from refusing to complying with harmful requests.

Understanding whether this hypothesis holds would provide a mechanistic explanation of one of the most important failure modes of aligned language models and could help inform more robust alignment methods.

We aim to investigate the internal mechanisms underlying jailbreak attacks by addressing the following questions:

  • Do successful jailbreaks consistently alter representations associated with refusal?
  • Is there a shared refusal direction or low-dimensional subspace across different jailbreak families?
  • Do different jailbreak techniques exploit similar internal mechanisms, or do they bypass alignment in distinct ways?
  • Can causal manipulation of refusal representations prevent successful jailbreak attacks?

We will first identify internal representations associated with refusal behavior in aligned language models such as Gemma, Llama, or Qwen. Using paired prompts that differ only in whether the model refuses or complies, we will analyze hidden activations across layers using techniques such as linear probes, mean-difference vectors, principal component analysis, and, where appropriate, sparse autoencoder features.

Next, we will evaluate a diverse set of jailbreak techniques, including role-playing prompts, translation-based attacks, adversarial suffixes, and automated jailbreak methods. Rather than focusing solely on behavioral success, we will compare how each attack modifies internal representations relative to standard refusal and compliant responses.

To move beyond correlation, we will perform causal interventions using activation steering. By restoring identified refusal representations during successful jailbreaks, we will test whether these interventions recover refusal behavior. Conversely, suppressing these representations during ordinary prompts will help determine whether they are causally responsible for aligned behavior.

Finally, we will compare these mechanisms across multiple models and alignment methods to investigate whether refusal representations are shared or model-specific.

This project aims to explain how jailbreak attacks succeed rather than simply whether they succeed. We expect to provide mechanistic insights into the internal computations underlying refusal and compliance, and to characterize whether diverse jailbreak techniques converge on common representation-level mechanisms.

Potential outcomes include identifying shared refusal representations manipulated by jailbreaks, demonstrating their causal role through activation steering or low-rank fine tuning, or showing that jailbreaks rely on more distributed computations than current representation engineering approaches assume. The outcomes of this project may also help understand how to improve existing activation steering methods, and will more generally contribute to a deeper understanding of alignment representations and their vulnerabilities, bridging mechanistic interpretability and AI security.

Theory of change

The project will contribute to a better understanding of alignment representations and their vulnerabilities, to help bridge mechanistic interpretability and AI security.

Your role

High level of autonomy, and would prefer mentees open to discuss and who propose ideas that would improve this initial research idea.

Prerequisites

Knowledge of LLMs/transformers, safety alignment, low-rank fine tuning, jailbreaks and adversarial attacks. Fluent in python and pytorch.

Application question(s)

Please provide a critique of the following paper: https://arxiv.org/abs/2310.04451

About the mentor

Battista Biggio

Battista Biggio

University of Cagliari, Italy

View profile

Battista Biggio (MSc 2006, PhD 2010) is a Professor of Computer Engineering at the University of Cagliari, Italy, and research co-director of AI Security at the sAIfer lab (www.saiferlab.ai). He has been attacking machine-learning (ML) models well before adversarial examples were discovered, in the context of cybersecurity applications such as spam filtering, malware detection, web security, and biometric recognition (PRJ 2018). His team was the first to formalize attacks on ML models as optimization problems and to demonstrate gradient-based evasion (ECML-PKDD 2013) and poisoning (ICML 2012) attacks on ML algorithms, playing a leading role in the establishment and advancement of this research field. His seminal paper on "Poisoning Attacks against Support Vector Machines" won the 2022 ICML Test of Time Award. His work on "Wild Patterns" won the 2021 Best Paper Award and Pattern Recognition Medal from Elsevier Pattern Recognition. Prof. Biggio has managed several industrial, national, and EU-funded projects, and regularly serves as Area Chair for top-tier conferences in machine learning and computer security, such as NeurIPS and the IEEE Symposium on Security and Privacy. He is an Associate Editor-in-Chief of Pattern Recognition and chaired IAPR TC1 (2016-2020). He is a Fellow of IEEE, IAPR, and AAIS, a Senior Member of ACM, and a member of IAPR and ELLIS.

Similar projects