Same Component, Different Role: Automatic Role-Aware Circuit Discovery
Yousaf Raza, Muhammad Umair Haider, Hammad Rizwan, Hassan Sajjad, A. B. Siddique
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.
Create a lesson
Related papers
G2GTS: Role-Aware Multimodal Time-Series Forecasting via Sequential Factual Grounding and Predictive Guidance
Shared title terminologycs.AIYumi Lee, Seungyeon Rhee, Gyuri Byun et al.
Counterexample-Aware Influence Routing for Budgeted LLM Reasoning
Shared title terminologycs.AIYi Zhang, Qiang Song, Cheying Li et al.
SLED-LoRA: Streaming LoRA Expert Discovery for Metadata-Free Continual Adaptation of Large Language Models
Shared title terminologycs.AIShuquan Man, Kai Tong, Xiang Tan et al.
Who's Asking? A Role-Conditioned Benchmark for Operational Reasoning in Enterprise Agents
Shared title terminologycs.AITrishala Jayesh Ahalpara, Jesica Bauer
Specification-Driven AI Integration for the Educational Component Lifecycle: Mapping Spec-Driven Development to AI-Agent Skills for Teachers
Shared title terminologycs.AIDmytro Nochevnov
MAB-Sparse: Accelerating MLLM Prefill via Modality-Aware Balanced N:M Activation Sparsity
Shared title terminologycs.AIYaoxin Yang, Peng Ye, Maosen Zhao et al.