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

Authors

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

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.

Resources

Ray graphicRay graphicRay graphicRay graphic

Stay in the loop

Every AI paper that matters, free in your inbox daily.

Details

  • takara.ai
  • Custom AI and machine learning from the Frontier Research Team.
  • © 2026 takara.ai Ltd
  • Content is sourced from third-party publications.
Ray graphicRay graphicRay graphic