arXiv(opens in a new tab)cs.LGAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.24065

Mechanistic Circuit Identification for Controllable Data Generation

Nakyung Lee, Sangwoo Hong, Jungwoo Lee

Abstract

While recent advances in data synthesis aim to curate high-quality datasets, most generation pipelines still rely on heuristic prompt-based control. This black-box paradigm provides limited insight into how individual samples interact with a model's underlying learning dynamics. To bridge this gap, we propose a circuit-grounded framework that connects training-dynamics-based data valuation with mechanistic interpretability (MI). Specifically, we conceptualize data quality along three complementary utility axes, learnability, challenge, and alignment. First, we uncover specialized model-internal circuits that causally govern these utility signals. Then, moving beyond heuristic prompting toward mechanistic control, we leverage these circuits as controllable interfaces, actively steering generation to produce utility-targeted data. Building on this capability, we introduce SAMS (Stage-Aware Mechanistic Scheduling), which schedules circuit-steered data according to the model's evolving optimization needs. Experiments on multiple-choice QA tasks demonstrate that our approach yields precisely controlled data with greater diversity than prompt-based baselines, consistently improving downstream performance and calibration. Ultimately, this work establishes a principled white-box paradigm for interpretable data generation, pioneering the use of MI not just as an analytical tool, but as a practical, controllable interface.

1 Introduction

Data quality is a primary determinant of language model performance, which has led to growing interest in data synthesis, synthetic data generation, and automatic data selection [22, 2, 17, 10]. However, most existing pipelines remain largely heuristic and black-box. They are typically judged by downstream gains alone, while offering limited explanation of why some training samples help learning and others do not [44, 43, 38]. In language modeling, conventional data quality indicators such as grammaticality, formatting consistency, or self-generated feedback are inherently static and surface-level [3, 16]. These heuristic proxies fail to capture the intrinsic sample attribution, how a specific data point shapes the model's parameter updates and contributes to capability formation. While recent gradient-diversity and data influence approaches attempt to address this gap [28, 15], they collapse complex sample impacts into a single scalar magnitude. This abstraction can obscure which internal mechanisms drive useful updates and lead to over-optimizing a single aspect of synthetic data, neglecting the multi-dimensional nature of data quality [19, 18, 14].

Recent work has suggested that useful training data cannot be characterized adequately by a single quality score, but should instead be analyzed through complementary notions of whether a sample is learnable, worth learning, and not yet learnt [20]. Motivated by this multi-dimensional view, we formulate data quality as a multi-axis training utility profile consisting of Learnability (learnable),

Preprint.

Figure

Figure 1: Overview of the proposed framework. We first discover and causally validate internal circuits tied to specific training-utility metrics (Section 3). We then leverage these circuits to steer the generation process, curating distinct data pools with targeted optimization profiles (Section 4). Finally, our SAMS framework dynamically schedules these utility-targeted datasets according to the model's evolving learning phases during downstream fine-tuning (Section 5).

Challenge (not yet learnt), and Alignment (worth learning). We instantiate these axes using three well-studied training-dynamics-based utility proxies, namely Area Under the Margin (AUM) [26], Error L2-Norm (EL2N) [25], and Gradient Alignment (GradAlign) [41]. AUM reflects learnability by measuring whether a sample is learned consistently with a stable margin, EL2N captures informative challenge by identifying samples that induce substantial optimization pressure, and GradAlign measures whether such pressure is aligned with the target objective. Together, these signals distinguish samples that contribute productively to learning from those that are merely hard or noisy.

While such a multi-axis profile provides a richer characterization of data quality than a single score, it remains primarily descriptive. These signals can rank or cluster samples according to their behavior, but they do not explain how such behavior is implemented inside the model. In other words, they tell us which samples appear learnable, challenging, or aligned, but not which internal computations make them so. This motivates our first research question: Q1: Are there specific internal computational circuits that govern training-utility signals such as learnability, challenge, and alignment?

We posit that if high- and low-utility samples consistently drive different learning behaviors, these differences should be reflected in distinct computational pathways within the model. Mechanistic interpretability (MI) offers a natural tool for testing this hypothesis by localizing such pathways as circuits composed of nodes and edges. In this view, training-dynamics metrics quantify how useful a sample is, while MI reveals how that utility is realized internally. If such circuits can be identified and causally validated, they may provide more than post-hoc explanations. By turning utility-associated circuits into actionable interfaces, we can move from retrospectively analyzing data quality toward actively controlling synthetic data generation. This leads to our second research question: Q2: Can these discovered circuits serve as causal, circuit-level interfaces for synthetic data generation?

Based on this motivation, we propose a circuit-grounded framework for utility-driven synthetic data generation. We first discover model-internal circuits associated with established metrics (AUM, EL2N, and GradAlign) on the MCQA task. We then show that these circuits exhibit distinct mechanistic roles aligned with their corresponding utility axes. Building on these findings, we steer the discovered circuits to generate targeted training samples with controllable utility profiles. Finally, to maximize the efficacy of the generated data, we introduce a stage-aware scheduling strategy that modulates their mixture over training time to better match stage-specific learning needs.

Our core contributions are summarized as follows:

• Mechanistic Evidence: We identify distinct circuits associated with AUM, EL2N, and GradAlign, and provide structural evidence that these training-utility signals are functionally differentiated within the model.

• Causal Controllability: We demonstrate that the identified utility circuits can be directly steered to generate training samples with desired training-utility profiles, moving beyond superficial prompt-based control. This highlights the potential of MI as causal control handles, not just descriptive artifacts.

• SAMS Framework: We introduce SAMS (Stage-Aware Mechanistic Scheduling), a novel framework that integrates circuit-steered generation with stage-aware scheduling and consistently improves downstream performance over prompt-based baselines.

References (44)

  • Curriculum learning
  • Data diversity matters for robust instruction tuning
  • On the diversity of synthetic data and its impact on training large language models, 2024
  • Mechanistic data attribution: Tracing the training origins of interpretable llm units, 2026
  • Think you have solved question answering? try arc, the ai2 reasoning challenge, 2018
  • Enhancing chat language models by scaling high-quality instructional conversations, 2023
  • A primer on the inner workings of transformer-based language models, 2024
  • Weight-sparse transformers have interpretable circuits, 2025
  • Scaling synthetic data creation with 1,000,000,000 personas, 2025
  • Data selection via optimal control for language models, 2025
  • Eap-ig: Edge attribution patching with integrated gradients
  • Have faith in faithfulness: Going beyond circuit overlap when finding model mechanisms, 2024
  • Surveying the effects of quality, diversity, and complexity in synthetic data from large language models, 2024
  • propella-1: Multi-property document annotation for llm data curation at scale, 2026
  • Prismatic synthesis: Gradient-based data diversification boosts generalization in llm reasoning, 2025
  • Learning from synthetic data improves multi-hop reasoning, 2026
  • Li, R. Raghavendra, R. Jia, and C.-J
  • What makes good data for alignment? a comprehensive study of automatic data selection in instruction tuning, 2024
  • D2 pruning: Message passing for balancing diversity and difficulty in data pruning, 2023
  • Prioritized training on points that are learnable, worth learning, and not yet learnt, 2022
  • Mib: A mechanistic interpretability benchmark, 2025
  • Synthetic data generation using large language models: Advances in text and code
  • In-context learning and induction heads, 2022
  • Training language models to follow instructions with human feedback, 2022
  • Deep learning on a data diet: Finding important examples early in training, 2023
  • Identifying mislabeled data using the area under the margin ranking, 2020
  • Estimating expected calibration errors, 2021
  • Estimating training data influence by tracing gradient descent, 2020
  • Qwen2.5 technical report, 2025
  • A practical review of mechanistic interpretability for transformer-based language models, 2025
  • Empowering cross-lingual abilities of instruction-tuned large language models by translation-following demonstrations
  • Circuit stability
  • Attribution patching outperforms automated circuit discovery
  • Interpretability in the wild: a circuit for indirect object identification in gpt-2 small, 2022
  • Towards understanding fine-tuning mechanisms of llms via circuit analysis, 2025
  • Crowdsourcing multiple choice science questions, 2017
  • Self-evolved diverse data sampling for efficient instruction tuning, 2023
  • Less: Selecting influential data for targeted instruction tuning, 2024
  • Wizardlm: Empowering large pre-trained language models to follow complex instructions, 2025
  • Magpie: Alignment data synthesis from scratch by prompting aligned llms with nothing, 2024
  • Gradalign: Gradient-aligned data selection for llm reinforcement learning, 2026
  • Knowledge circuits in pretrained transformers, 2025
  • Large language model as attributed training data generator: A tale of diversity and bias, 2023
  • Mates: Model-aware data selection for efficient pretraining with data influence models, 2024