ADAG: Automatically Describing Attribution Graphs

Aryaman Arora, Zhengxuan Wu, Jacob Steinhardt, Sarah Schwettmann

TL;DR

ADAG (Automatically Describing Attribution Graphs) is an end-to-end pipeline that automates the most tedious part of AI interpretability: figuring out what specific internal components of a Large Language Model (LLM) actually do. By combining gradient-based "attribution profiles" with a novel clustering algorithm and LLM-based explainers, ADAG transforms opaque computation graphs into legible, natural-language descriptions of the model's internal logic.

What Problem Does This Paper Address?

In the field of mechanistic interpretability, researchers use "circuit tracing" to identify the sub-graph of a model responsible for a specific behavior (like answering a math problem or recalling a fact). However, once you have the graph, you’re left with a "legibility gap." You might know that Neuron #4096 is important, but you don't know why.

Traditionally, humans have to manually inspect "max-activating exemplars"—the dataset examples where a neuron fires most strongly—to guess its function. This process is slow, subjective, and prone to "locality bias," where researchers ignore how a neuron might be influenced by tokens far in the past or how it affects tokens far in the future. ADAG aims to replace this manual labor with a fully automated, scalable pipeline.

Methods

The ADAG pipeline consists of four main stages, as illustrated in the overview figure:

Figure 1: An overview of ADAG, our end-to-end circuit interpretation pipeline.
  1. Circuit Tracing: The system identifies important features and their interactions using gradient-based attribution (specifically a technique called RelP).
  2. Attribution Profiles: This is a core innovation. Instead of just looking at activations, ADAG creates "profiles" for each feature. These consist of input attribution (which previous tokens caused this feature to fire?) and output contribution (which future logits does this feature promote or suppress?).
  3. Multi-view Spectral Clustering: Features are grouped into "supernodes." The authors use a novel similarity metric—the harmonic mean of attribution and contribution similarities—to ensure that neurons in a cluster play the same functional role and don't have opposing effects on the output.
  4. Automated Description: ADAG uses an "explainer-simulator" setup. An LLM (the explainer) looks at the cluster's profile and generates a natural-language label. Another LLM (the simulator) then tries to predict the cluster's behavior based only on that label. The label with the highest correlation between simulated and real behavior is chosen.

Datasets

The authors evaluated ADAG on several tasks using Llama 3.1 8B Instruct and Qwen3 32B:

  • Capitals: A multi-hop reasoning task (e.g., "What is the capital of the state containing Dallas?").
  • Pills: A dataset of "jailbreak" prompts designed to trick LLMs into giving harmful medical advice.
  • Math: A dataset of two-digit addition problems to identify "bags-of-heuristics" used by the model.
  • FineWeb: Used for large-scale analysis of neuron "non-locality."

Key Insights and Ideas

  • The Fallacy of Locality: The authors show that MLP neurons are highly "non-local." In later layers, neurons often attribute their firing to the "Beginning of String" (BOS) token—a phenomenon linked to "attention sinks." This proves that looking only at the current token is insufficient for understanding a neuron's role.
  • Supernodes are More Effective: Steering (ablating or boosting) an entire cluster of neurons discovered by ADAG is significantly more impactful than steering individual neurons. This suggests that LLMs distribute functional logic across groups of features.
  • LLMs as Better Interpreters: In head-to-head tests, LLM-generated descriptions were as good as human-written ones for input attribution and significantly better at describing a feature's output contributions.

Key Results

ADAG successfully recovered known human-analyzed circuits and discovered new ones:

  • Automated Discovery: In the "Capitals" task, ADAG automatically identified clusters for "state name bias," "capital city initiation," and specific geographic regions without any human guidance.
  • Jailbreak Analysis: On the "Pills" dataset, ADAG found a specific cluster (C3: "pills safety redirect") that acts as a refusal mechanism. By negatively steering this cluster, the authors increased the jailbreak attack success rate (ASR) from 5.5% to 88%. Conversely, they found a cluster (C9) that, when boosted, increased the ASR to 90%.
Figure 4: Final circuit graph for texas example in the capitals dataset from Llama 3.1 8B Instruct. We show input attribution, output contribution, and neuron descriptions for C44 ‘Dallas Texas’ to the left. Red indicates negative attribution score, and blue the opposite.

Limitations and Future Work

  • Scope of Features: The current study focuses primarily on MLP neurons. The authors acknowledge that extending ADAG to attention head circuits (QK circuits) is a necessary next step.
  • Profile Diversity: While input and output gradients are powerful, the authors suggest that adding more "views" to the clustering—such as raw activations or weight-based features—could further improve the granularity of the descriptions.
  • Computational Cost: While more efficient than manual analysis, the pipeline still requires significant gradient computations and LLM API calls, which may be a bottleneck for extremely large models.

Summary updated

BibTeX
@inproceedings{arora2026adag,
  author = {Aryaman Arora and Zhengxuan Wu and Jacob Steinhardt and Sarah Schwettmann},
  title = {{ADAG: Automatically Describing Attribution Graphs}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=uR5vKYFklE},
}
Figure