Minimal, Local, Causal Explanations of Jailbreak Success in Large Language Models

Shubham Kumar, Narendra AhujaCOLM 2026

TL;DR

LOCA (Local, CAusal explanations) is a new method that explains why specific jailbreak attacks succeed by identifying the minimal, interpretable changes in a model's internal representations needed to flip it back to a "refusal" state. By iteratively patching just a handful of internal "concepts"—on average only six—LOCA reveals the specific mechanistic pathways exploited by different attacks across various LLMs.

What Problem Does This Paper Address?

Safety-trained Large Language Models (LLMs) are designed to refuse harmful requests, yet they remain vulnerable to "jailbreaks"—cleverly crafted prompts that bypass these safeguards. While researchers have identified "global" directions in model representations that correspond to concepts like harmfulness or refusal, these global explanations often fail to capture the nuance of individual attacks.

A role-play attack might bypass safety filters through a completely different internal mechanism than a base64-encoded attack. The authors argue that to truly understand and defend against these vulnerabilities, we need local explanations (why this specific jailbreak worked), causal evidence (intervening on the model to prove the explanation), and minimal descriptions (finding the most important levers rather than changing everything).

Methods

The authors introduce LOCA, which combines several sophisticated techniques from the field of mechanistic interpretability:

  1. Sparse Autoencoders (SAEs): These are used to decompose the model's complex, high-dimensional activations into thousands of interpretable "features" or concepts (e.g., a feature that activates for "illegal acts" or "code generation").
  2. Token Matching: Because jailbreak prompts and original harmful prompts differ in length and structure, LOCA uses a resampling scheme to align the "instruction" tokens between the two, allowing for precise activation patching.
  3. Iterative Activation Patching: Instead of changing the whole representation at once, LOCA surgically replaces specific concept activations in the jailbreak prompt with those from the original (refused) prompt.
  4. First-Order Optimization: To find the most impactful changes, LOCA uses a gradient-based approximation to estimate which concept at which token position will most increase the probability of refusal (measured via KL divergence). Crucially, this is done iteratively, re-calculating the best next patch after each step to account for complex feature interactions.
Figure 2: LOCA algorithm: LOCA computes the first output token probabilities po and pj of the refused original xo and successful jailbreak xj prompt. Then, it selects a jailbreak embedding hj,i∗to activation patch along direction v∗to minimize the KL divergence of the two distributions. The minimization is done over a first-order approximation (Eq. 3), and v is selected from a SAE decoder Wd. This procedure is applied iteratively to induce refusal.

Datasets

The study evaluates LOCA using:

  • WhatFeatures: A dataset containing 10,800 jailbreak attacks generated from 35 different methods.
  • HarmBench: A standardized evaluation framework used to automatically grade whether a model's response is a successful jailbreak.
  • Models: The method was tested across several state-of-the-art chat models, including Llama-3.1-8B, Gemma-2-2B, Gemma-3-27B, and Qwen-3-8B.
  • SAEs: The researchers utilized open-source SAEs like GemmaScope and those provided by Arditi & Chen.

Key Insights and Ideas

  • Jailbreaks are not a monolith: The study confirms that different jailbreak strategies exploit different internal mechanisms. A "global" refusal direction is often insufficient to explain specific successes.
  • The "Where" and "What" of Refusal:
    • In early layers, the model's decision to refuse is driven primarily by the content of the user's instruction tokens.
  • In middle and later layers, the model relies heavily on structural cues, such as punctuation and chat template tokens (like the "assistant" header), to anchor its refusal behavior.
  • Token Specificity is King: Prior methods often averaged gradients across all tokens. LOCA proves that being token-specific—identifying exactly which word or punctuation mark is carrying the "safety bypass" signal—is far more effective.
  • Interaction Matters: By using an iterative approach rather than a "one-shot" selection of features, LOCA accounts for how internal concepts interact, leading to much more parsimonious explanations.

Key Results

LOCA significantly outperforms existing baselines in its ability to "fix" a jailbroken model with minimal intervention:

  • Efficiency: On Llama-3.1, LOCA induces refusal with an average of only 6 to 8 patches. In contrast, prior methods often failed to induce refusal even after 20 patches.
  • Success Rate: LOCA achieved a 100% refusal rate on Llama at layer 7 and on Gemma-3 at layer 38, demonstrating that the causal levers for safety are highly concentrated.
  • Ablation Validation: Experiments showed that both the token-specific nature and the iterative algorithm are essential for LOCA's superior performance compared to "Base-LOCA" variants.
Comparison of LOCA against baselines across different layers, showing LOCA requires fewer patches (MP) and achieves higher refusal rates (RR).

Limitations and Future Work

  • First-Token Proxy: LOCA currently optimizes based on the model's first output token (e.g., "I" for "I cannot help" vs. "Sure" for a jailbreak). While efficient, this can be misled by "prefix injection" attacks where the model starts with a refusal token but then pivots to harmful content.
  • SAE Interpretability: The explanations are limited by the quality of the underlying SAEs. Some features remain difficult for humans to interpret accurately.
  • Beyond Linearity: The authors suggest that future work should explore non-linear manifolds for representing concepts, as the "linear representation hypothesis" may not capture the full complexity of jailbreak mechanisms.
  • Defense Potential: The authors envision using these local, token-specific insights to build more robust, real-time steering-based defenses against jailbreaks.

Summary updated

BibTeX
@inproceedings{kumar2026minimal,
  author = {Shubham Kumar and Narendra Ahuja},
  title = {{Minimal, Local, Causal Explanations of Jailbreak Success in Large Language Models}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=p0IYuS0Gff},
}
Figure