TRANSMISSION // 2612.03340v1
How AI Circuit Discovery Assigns Roles to Tokens
Source published
ARACD learns token groups and role-specific pruning masks together, allowing researchers to map where a task-specific circuit retains model components—without treating that pattern as proof of what each token causally needs.

Standard circuit-pruning methods use the same component mask at every prompt position. ARACD instead learns token groups and separate masks for each group. In tests on two language models and three template-based tasks, it pruned more token–component pairs than the shared-mask approach. Those mask patterns describe retained structure; they do not establish which components are causally necessary for individual tokens.
The question: should every token get the same circuit mask?
A language model produces an answer through many interacting parts. Circuit discovery aims to find a sparse subset of those parts that preserves the model’s behavior on a chosen task. Researchers can then examine that reduced network as a possible account of how the model handles the task.
Many pruning methods learn one keep-or-remove mask for each component and apply it at every token position. If a component is retained because it matters somewhere in a prompt, this shared mask keeps it everywhere. That can limit how sparse the resulting circuit is and makes it harder to see how the selected structure varies across positions.
Some methods account for token positions or roles, such as subject and verb, but require those categories to be defined before circuit discovery. In Same Component, Different Role: Automatic Role-Aware Circuit Discovery, Yousaf Raza and colleagues ask whether the token groups and the pruning masks can instead be learned together, without role labels supplied for training.
A router and role-specific masks
Their method, automated role-aware circuit discovery (ARACD), trains a router to assign each token to one of a set of roles, alongside separate pruning masks for those roles. Tokens assigned to the same role share a mask, so a component may be retained under one role’s mask and pruned under another’s.
The language model remains frozen. Training adjusts the router and masks to balance three goals: keep the pruned model’s output distribution close to the full model’s, preserve performance on the task, and remove components. The router uses an early-layer hidden representation for each token and its normalized position in the prompt. It does not receive human role labels, but the number of available roles is chosen in advance.
The researchers tested ARACD on GPT-2 small and Llama-3.2-1B. They evaluated node pruning, which removes model units, and edge pruning, which removes connections. The tasks were two versions of indirect object identification—selecting a name in a prompt—and gender-pronoun prediction. The prompts came from templates and were paired with corrupted versions that changed task-relevant information. Test examples were limited to cases the full model answered correctly.
What the comparisons found
Across 12 combinations of model, pruning type and task, ARACD pruned a larger share of token–component pairs for nodes, or token–edge pairs for connections, than standard pruning with one shared mask. Averaged across the tested model–task combinations, the increase was 9.6 percentage points for nodes and 2.8 points for edges. ARACD had lower KL divergence from the full model’s output distribution in 10 of the 12 settings. It also pruned more than a baseline that divides prompts into equally spaced position bins in 11 of 12 settings.
For indirect object identification, ARACD’s pruning rates were close to those of a comparison using human-defined roles, despite not using those labels to train its router. The learned groups did not simply copy the human categories: the analysis found examples of human-defined spans being split across roles and of tokens from separate human categories being grouped together.
The authors also counted where role-specific masks retained components. In four node-pruning circuits for indirect object identification, name tokens and the final prompt token made up about a quarter of non-padding tokens but accounted for 76–86% of retained component–token pairs. This measures how retained structure is distributed across token positions. It does not show that those tokens individually cause the answer or that the retained components are necessary at each position.
Limits and uncertainty
These results suggest that learned token groups can make pruning masks more position-sensitive on the tested tasks. But pruning percentages are counts of retained or removed model components and connections across token positions—not measurements of faster inference, lower memory use or reduced computing cost. The method adds masks and a routing step, and the study did not benchmark those practical costs.
The evidence is also limited to two models and template-generated tasks with aligned clean and corrupted prompts. The authors have not tested free-form text or multi-token generation in this study. Edge-pruning comparisons begin from a circuit first selected by standard node pruning, so those comparisons cannot recover components already discarded in that step. Some role assignments changed after name substitutions in particular edge-pruning settings, and KL divergence varied across random-seed runs in some cases.
The role count is prescribed rather than learned. More broadly, a sparse mask that preserves a task’s output is not by itself a complete explanation of the model’s computation. The paper presents ARACD as a method for learning role-specific masks and measuring retained structure, not as proof of the causal role of each token or component. This article is based on an arXiv preprint; the source does not establish peer-reviewed validation.
- mechanistic interpretability
- language models
- circuit discovery
- AI pruning
- transformers
- ARACD
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A spectral route to finding AI circuits
Source published
Shared keywords: circuit discovery, language models, mechanistic interpretability
Why removing AI layers can help on shifted data
Source published
Shared keywords: ai pruning
Mapping the hidden networks between AI attention heads
Source published
Shared keywords: language models
A bid to make AI circuits more stable has a proof gap
Source published
Shared keywords: circuit discovery, mechanistic interpretability
A tiny transformer’s algorithm, drawn in two dimensions
Source published
Shared keywords: mechanistic interpretability