arXiv:2610.19231cs.CLOct 2026

Manuscript Offprint

arXiv:2610.19231

Do Syntax Heads Influence Model Behavior?

William Timkey, Tal Linzen

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

Abstract

Transformer language models develop attention heads that specialize in syntactic relations, for example, attending from verbs to their subjects. Do these heads play a causal role in the model's syntactic predictions? Evidence for such a role is mixed to negative: even when we force these heads to attend to a distractor noun other than the subject, the model's syntactic predictions are still more consistent with the subject than with the distractor. Interventions on specialized syntax heads had a significantly stronger effect on syntactic predictions than interventions on random heads, but only in one of the two measures we propose.

1 Introduction

Language models acquire sensitivity to syntactic structure despite being trained only to predict the next word. This sensitivity is reflected not only in their behavior, such as sensitivity to subject-verb agreement (Linzen et al., 2016; Gulordava et al., 2018; Goldberg, 2019; Hu et al., 2020), but also in their internal representations (Hao and Linzen, 2023; Finlayson et al., 2021). In particular, Transformer language models (Vaswani et al., 2017) have been shown to contain attention heads whose attention patterns closely track syntactic dependencies (Clark et al., 2019; Voita et al., 2019). In an analysis of the GPT-2 model (Radford et al., 2019), for example, Ryu and Lewis (2021) identified four attention heads that consistently attend from verbs to their syntactic subjects.

Are these syntactic attention heads actually the mechanism underlying the syntactic sensitivity observed in model behavior? Observing that a model component represents a linguistic property does not establish that the component causally produces behavior associated with that property (Ravfogel et al., 2021; Ravichander et al., 2021; Gekhman et al., 2025). A syntactically specialized attention

Base Model

Subject-verb head attends more to the subject than a distractor at the verb

Figure

Next-word predictions after verb are consistent with the subject, not distractor

The causal subject-verb head hypothesis

The woman by the window is ...

If we force head to attend only to distractor

Predictions should become more consistent with distractor than subject

The woman by the window is ...

Figure 1: Conceptual prediction for the causal influence of subject-verb attention heads on next-word predictions.

head might, for example, provide redundant information that is also available elsewhere in the network, or its attention pattern might be a consequence rather than the cause of the model’s underlying syntactic processing mechanisms.

Here we employ causal intervention techniques (Vig et al., 2020; Mehrabi et al., 2022; Lasri et al., 2022) to understand how subject-verb attention heads (henceforth SV heads) affect the model's next-word predictions. If LMs use SV heads to generate syntactically-conditioned next-word predictions (what we refer to as the Causal SV Head Hypothesis), then forcing these heads to attend only to a noun other than the subject (a distractor) should cause the model to interpret that distractor as the subject, and consequently, the model should prefer continuations that describe the distractor (Figure 1). We measure this in two ways: through pairs of diagnostic continuations, and by measuring the change in the entire next-word probability distribution against a ground-truth baseline. We then compare the strength of the intervention on

Figure

Figure 2: Top: 100k simulations estimating the relative probability, σ\sigma, assigned to the subject-consistent conditionation in the original model (right), and SV heads are forced to attend to only the distractor, σ(x;mdHsv)\sigma(x; m_d^{H^{sv}}) (left). A value greater than 0.5 (red) indicates a preference for the true subject, and a value less than 0.5 (blue) indicates a preference for the distractor-as-subject interpretation. Bottom: 100k simulations estimating the effect of SV heads on next-word prediction preference, relative to the baseline, measured over diagnostic pairs (left) and the full next-word distribution (right). Within each plot, positive values (blue) correspond to simulations where the intervention on the four SV heads had a larger effect on next word predictions than the same intervention on 4 random non-SV heads, while negative values (red) indicate the opposite.

SV heads to a baseline where the same intervention is performed on non-SV heads.

We find that redirecting the SV heads to the distractor does increase the probability of continuations consistent with the distractor, but the size of this increase is small: continuations consistent with the subject are still assigned higher probabilities than those consistent with the distractor on average. Moreover, the size of the increase is only marginally larger when intervening on SV heads compared to the same intervention in randomly-selected heads, though our measure based on the entire next-word distribution does suggest that SV heads have a significantly larger effect on model behavior than a random baseline. Nevertheless, these findings suggest that the syntactic specialization of an attention head should not be equated directly with a specialized syntactic computation: syntactic information is available through other computational pathways even when the heads most strongly associated with that dependency are disrupted.