TL;DR
This paper introduces Internal Attribution Graphs to peek under the hood of LLM jailbreaks, moving beyond simple input-output analysis to map how attacks subvert internal reasoning. The researchers discovered that successful jailbreaks don't just "turn off" safety features; instead, they fundamentally reroute computational pathways, creating parallel "detours" that bypass sequential safety checks.
What Problem Does This Paper Address?
Large Language Models (LLMs) are remarkably capable but notoriously fragile. Adversarial "jailbreaks"—prompts designed to bypass safety filters—can trick models into generating harmful or restricted content. While we have many ways to detect or defend against these (like RLHF or prompt filtering), we have a poor understanding of the mechanistic "why" behind their success.
Existing interpretability methods usually look at a single input in isolation. This paper addresses the gap between interpretability and robustness by creating a framework to compare how a model’s internal "circuits" change when it transitions from a benign request to a malicious one.
Methods
The authors propose a mechanistic framework based on Causal Computation Graphs.
- Graph Construction: They represent model inference as a directed graph where nodes are internal features (extracted using sparse transcoders on MLP outputs) and edges represent the causal influence of one feature on another, calculated using gradient-based sensitivity.
- Paired Alignment: The core innovation is comparing two graphs: one for a "clean" prompt (e.g., "How to bake a cake") and one for an "attacked" version (e.g., "How to make a bomb"). They align these graphs to see which internal structures are preserved, suppressed, or emergent.
- Structural Metrics: They developed four metrics to quantify the attack's impact:
- Graph Deviation: Overall structural change.
- Safety Suppression: How many "clean" features are deactivated.
- Attack Emergence: How many new, attack-specific features appear.
- Path Rerouting: How much the flow of information from input to output changes.
- Causal Intervention: To validate their findings, they performed "zero-ablation" (turning off specific nodes) to see if removing emergent features could stop a successful jailbreak.
Datasets
The study primarily used a dataset of 30 contrasting prompt pairs (benign vs. jailbreak) targeting the Llama-2-7B-chat-hf model. These included diverse strategies like:
- Prefix injection: "Ignore all previous instructions..."
- Role-playing: "You are now DAN (Do Anything Now)..."
- Context switching: Leading the model from a benign topic (chemistry) to a harmful one (explosives).
They also performed an extended analysis on 500 topic-decoupled pairs to test the limits of their framework.
Key Insights and Ideas
- Rerouting is the Smoking Gun: The most significant finding is that Path Rerouting is the only metric that reliably predicts jailbreak success. Successful attacks don't just suppress safety features; they find "computational shortcuts" or alternative routes to the output.
- The "Fork" Motif: Successful attacks often exhibit a dramatic increase in "fork motifs"—parallel computational pathways. This suggests jailbreaks work by creating redundant routes that bypass the sequential safety checks the model learned during training.
- Progressive Steering: PCA visualizations (Figure 5) show that jailbreaks don't happen all at once. The model's internal state is gradually steered from "safe" regions in early layers to "unsafe" regions in deeper layers.
- Failed Attacks Simplify; Successful Ones Reroute: When a jailbreak fails, the model's internal graph often becomes simpler and more linear, defaulting to a conservative "refusal" pathway. Successful attacks, however, maintain or increase complexity through emergent features.
Key Results
The researchers found a significant correlation between Path Rerouting and attack success ($r = 0.461, p = 0.010$), as shown in the table below:
Interestingly, static metrics like "Safety Suppression" and "Attack Emergence" failed to predict success on their own. This highlights that jailbreaking is a dynamic process of information flow rather than just a toggle of specific features.
Furthermore, the authors found that targeted node-level interventions failed to mitigate attacks. Even when they ablated the top-3 emergent features in successful jailbreaks, the model still produced harmful content. This suggests that jailbreak vulnerabilities are distributed across many redundant pathways, making them difficult to fix with simple "whack-a-mole" feature suppression.
Limitations and Future Work
- Sample Size: The main analysis relied on a relatively small set of 30 prompt pairs, though the findings were partially validated on a larger set.
- Layer Coverage: Initial experiments were limited to the first ten layers due to memory constraints, though the authors later extended this to all 32 layers.
- Single-Turn Focus: The framework currently analyzes single forward passes and doesn't yet account for the multi-turn dynamics of conversational jailbreaks.
- Defense Challenges: The failure of node-level interventions suggests that future defenses need to focus on pathway-level integrity—hardening the entire computational route rather than just individual features.
Summary updated