arXiv:2610.33299cs.CLOct 2026

Manuscript Offprint

arXiv:2610.33299

The Emergence and Sparsification of a Syntactic Circuit

Qing Yao, Sasha Boguraev, Tiago Pimentel, Kyle Mahowald

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

To understand the emergence of grammatical behavior in language models, we track circuits for subject–verb number agreement in pythia-1b and in ten seeds of pythia-410m across training. We find that subject–verb agreement is learned early, and is initially handled by a diffuse collection of neurons. However, after agreement behavior has stabilized, the circuit responsible for it continues to reorganize. The attention heads which mediate agreement often shift during training: in the case of pythia-1b, behavior is controlled by two heads early in training but by a third (different) head later. Furthermore, the circuit shrinks over training, with pythia-1b's final circuit being strikingly sparse. We take these results to be informative about how linguistic knowledge emerges and is represented in language models.

sparsification-of-sva-circuits

1 Introduction

Our goal is to tell the story, in as much detail as possible, of how subject–verb number agreement emerges across training in language models (LMs). Number agreement has long served as a probe for syntactic competence in language models (Linzen et al., 2016; Gulordava et al., 2018; Marvin and Linzen, 2018; Futrell et al., 2019; Mueller et al., 2020; Warstadt et al., 2020; Wei et al., 2021). It has also been used to probe how these models encode grammatical information internally (Finlayson et al., 2021; Lasri et al., 2022; Arora et al., 2024). Notably, this task’s historical interest results from its symbolic specification, which, despite being simple, resists classic statistical methods. 1^{1} A minimal circuit for handling it has to (1) recognize and store the grammatical number of the subject,

Step 2k · 99.0% accuracy

Step 143k · 94.8% accuracy

Figure

The {keys}1\{keys\}_{1} to the {cabinet}4\{cabinet\}_{4}

The {keys}1\{keys\}_{1} to the {cabinet}4\{cabinet\}_{4}

Figure 1: The subject–verb agreement circuit for pythia-1b at step 2k (left) and step 143k (right). While agreement is acquired early (within 2% of training) and the model remains proficient thereafter, the underlying circuit continues to reorganize and sparsify. Circles represent the smallest subset of top-ranked neurons whose sufficiency and necessity exceed 50% (see Section 4.2).

(2) transport this information to the prediction position, and (3) license the corresponding output form.

In this work, we first (Experiment 1) trace the emergence of such a circuit over the course of language model training, studying ten seeds of pythia-410m and one seed of pythia-1b. We find that agreement is learned quickly and is initially controlled by a diffuse circuit. Over the course of training, however, we find that while the model's performance remains mostly unchanged, the underlying circuit gradually evolves: it both sparsifies (concentrating in a smaller set of neurons) and is rerouted within the model (being implemented by different attention heads). By the end of training, a surprisingly sparse circuit captures most of the agreement signal in pythia-1b (Figure 1).

Such a gradual transition is consistent with recent reports of emergent syntactic behavior (Chen et al., 2024), and with work in developmental LM interpretability more broadly (Wang et al., 2025; Chang et al., 2024; Fehlauer et al., 2025; Kangaslahti et al., 2026), including recent work track-

1^{1}E.g., it requires tracking structural information — grammatical subjecthood — over potentially unbounded distances, and can thus not be solved by simple Markov models.

ing the emergence of circuits longitudinally in open-checkpoint models (Tigges et al., 2024; Ou et al., 2025; Hakimi et al., 2025; Aljaafari et al., 2026). This circuit’s trajectory also parallels accounts of grokking (Power et al., 2022; Nanda et al., 2023; Varma et al., 2023; Merrill et al., 2023), where a task is first learned by memorization, but that solution is replaced by a sparser and more general circuit after training accuracy has saturated.

Later in our paper (Experiment 2), we zoom in on pythia-1b. We first track how the circuit evolves in this model, tracing how a subset of neurons remains relevant for agreement throughout training, but changes “allegiance” at some point, shifting the attention head they write to. Second, we further sparsify this model’s final circuit while preserving its performance. We find that just 18 neurons and a single attention head can capture the primary channel for agreement in this model. We show this sparse circuit generalizes across different forms of subject–verb number agreement and to in-the-wild examples from WikiText (Merity et al., 2017). Finally, we demonstrate that this circuit’s information flows through a one-dimensional channel of the relevant transfer head. Overall, we show that mechanistic reorganization and sparsification continue beneath a stable agreement behavior. In the case of pythia-1b, this culminates in a sparse and generalizable circuit for number agreement. 2^{2}