TL;DR
ADAG (Automatically Describing Attribution Graphs) is a fully automated, end-to-end pipeline designed to interpret the internal circuits of language models. By replacing manual, ad-hoc human inspection with gradient-based "attribution profiles," multi-view clustering, and an automated LLM explainer-simulator loop, ADAG can automatically group internal features and describe their functional roles in natural language.
What Problem Does This Paper Address?
In mechanistic interpretability, circuit tracing is used to isolate the specific subgraphs (circuits) within a language model's massive neural network that are causally responsible for a given behavior. While finding these circuits has become easier, interpreting them remains a massive bottleneck.
Currently, researchers rely on manual, ad-hoc inspection—looking at text snippets that make a neuron fire or analyzing its direct impact on the next token. This approach is unscalable and suffers from locality bias: it assumes a neuron's function is entirely captured by the immediate token it activates on, ignoring how it depends on long-range past context or how it shapes tokens far into the future. ADAG aims to completely automate this process while eliminating locality bias.
Methods
The ADAG pipeline operates in four automated steps:
- Circuit Tracing: It extracts an attribution graph from the model using gradient-based attribution (specifically layerwise relevance propagation via RelP) to identify important features and their interaction weights.
- Attribution Profiles: To capture non-local behavior, ADAG constructs a dual-vector profile for each feature: input attribution (the proportion of activation driven by each preceding token) and output contribution (the proportion of influence the feature has on future output logits).
- Multi-View Spectral Clustering: Features are automatically grouped into cohesive "supernodes" using a novel spectral clustering algorithm. It computes the harmonic mean of the input and output similarities, ensuring that features with opposing output effects are not lumped together.
- Natural Language Descriptions: ADAG extends an explainer-simulator framework. An explainer LLM generates candidate natural-language descriptions for each cluster. A simulator LLM then scores these candidates by trying to predict the cluster's actual behavior based solely on the description. Finally, a summarizer condenses the highest-scoring descriptions into a concise label.
Datasets
The authors evaluated ADAG using Llama 3.1 8B Instruct and Qwen3 32B across several tasks:
- capitals: A multi-hop reasoning dataset consisting of queries like "What is the capital of the state containing Dallas?".
- pills: A dataset of 150 prompt variants performing a sensitivity analysis on a harmful medical advice jailbreak.
- FineWeb: A large-scale web dataset used to analyze baseline neuron non-locality.
- math: A two-digit addition dataset used for supplementary validation.
Key Insights and Ideas
- MLP Neurons are Highly Non-Local: Except for the very first three layers of an LLM, internal MLP neurons depend heavily on long-range context and influence outputs multiple tokens ahead. This confirms that traditional, localized inspection methods are fundamentally insufficient for true circuit interpretation.
- LLMs Outperform Humans at Output Analysis: While human experts are adept at identifying what triggers a neuron (input attribution), automated LLM explainers are significantly better at precisely characterizing a neuron's downstream causal effects on output logits (output contribution).
- Unsupervised Jailbreak Discovery: ADAG can automatically surface the precise internal mechanisms that drive safety vulnerabilities (like jailbreaks) without requiring any prior human labeling or manual intervention.
Key Results
- Automated Circuit Replication: On the
capitalstask, ADAG successfully replicated human-discovered multi-hop circuitry entirely automatically, neatly separating excitatory and inhibitory neuron groups. - High-Fidelity Explanations: When describing gold-standard supernodes, the LLM explainer achieved a mean simulation correlation score ($r$) of 0.774 for input attribution and 0.812 for output contribution (compared to human expert scores of 0.779 and 0.648, respectively).
- Causal Jailbreak Steering: On the
pillsdataset, ADAG automatically identified a "pills safety redirect" cluster (C3). Turning off this cluster (0× multiplier) caused the jailbreak Attack Success Rate (ASR) to skyrocket from 28% to 88%. Conversely, amplifying a "ridiculous-to-introductory" cluster (C9) boosted the ASR to 90%, proving that ADAG finds highly steerable, causally significant features.
Limitations and Future Work
- Limited Views: The current implementation only evaluates two profile types (input attribution and output contribution). The authors note that adding more views, such as attention (QK) circuit attributions or raw activations, is a promising next step.
- Manual Hyperparameters: The number of clusters ($k$) must still be manually specified by the researcher.
- LLM Dependency: The quality of the final circuit descriptions remains fundamentally bounded by the capabilities of the explainer and simulator LLMs used in the loop.
Summary updated