# Same Component, Different Role: Automatic Role-Aware Circuit Discovery

DevFeed: [Same Component, Different Role: Automatic Role-Aware Circuit Discovery](<https://devfeed.tech/articles/same-component-different-role-automatic-role-aware-circuit-discovery-168242.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2612.03340>)

Author: Yousaf Raza, Muhammad Umair Haider, Hammad Rizwan, Hassan Sajjad, A. B. Siddique

Published: 2026-12-03T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [automated](<https://devfeed.tech/tags/automated.md>), [baseline](<https://devfeed.tech/tags/baseline.md>), [circuit](<https://devfeed.tech/tags/circuit.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [identification](<https://devfeed.tech/tags/identification.md>), [kl-divergence](<https://devfeed.tech/tags/kl-divergence.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [localization](<https://devfeed.tech/tags/localization.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [pruning](<https://devfeed.tech/tags/pruning.md>), [roles](<https://devfeed.tech/tags/roles.md>), [router](<https://devfeed.tech/tags/router.md>), [sparsity](<https://devfeed.tech/tags/sparsity.md>)

## AI overview

Automated role-aware circuit discovery (ARACD) jointly learns latent token roles and role-specific pruning masks, using a router trained only on the circuit-discovery objective and requiring no role annotations or predefined schema. This addresses uniform pruning, which retains components across all token positions even when needed at only a few. Across two language models and three tasks, ARACD improves token-weighted pruning over standard pruning by an average of 9.6 percentage points for nodes and 2.8 points for edges, with lower KL divergence in 10 of 12 settings. It exceeds a fixed equal-spacing baseline in 11 of 12 settings; on indirect object identification, its pruning rates approach those achieved with human-defined roles. These findings are reported in the abstract.

## Source excerpt

arXiv:2612.03340v1 Announce Type: new Abstract: Circuit discovery seeks sparse subcircuits that preserve a language model's behavior on a target task. Standard node and edge pruning learn one mask per component and apply it uniformly across token positions. As a result, components needed at only a few positions must be retained throughout the prompt, limiting sparsity. Existing position/role-aware methods instead rely on predefined token roles that must be specified before circuit discovery. We introduce automated role-aware circuit discovery (ARACD), a circuit discovery method that jointly learns token roles and role-specific masks in a single optimization. A learned router assigns tokens to latent roles using only the circuit discovery objective, without role annotations or a predefined schema. Across two language models and three tasks, ARACD increases the token-weighted pruning rate over standard pruning by 9.6 percentage points for nodes and 2.8 points for edges on average, with lower KL divergence in 10 of 12 settings. It prunes more than a fixed equal-spacing baseline in 11 of 12 settings. On indirect object identification, ARACD achieves pruning rates close to those of human-defined roles without role supervision. Our results show that learned roles concentrate circuit computation at a small set of task-relevant positions and improve localization without predefined roles.