Compliments to the Complementizer: Indirect Routing of Syntactic Structure in a Transformer Language Model

Lasse van den Berg, Robert FrankCOLM 2026

TL;DR

Researchers have discovered that Transformer models don't just route syntactic information directly from a source to a destination; instead, they take a "detour" through the complementizer head (the functional center of a clause). By using causal interventions and neurosymbolic TPDN reconstructions, the authors show that this internal information flow remarkably mirrors classical linguistic theories of how human language is structured.

What Problem Does This Paper Address?

While we know Transformers are highly capable of handling complex syntax, the "how" remains a black box. Unlike Recurrent Neural Networks (RNNs), which process information in a linear, step-by-step fashion, Transformers use attention mechanisms that allow for highly flexible routing.

The authors investigate whether this routing is just a distributed statistical mess or if it follows structured principles. They focus on German "verb-second" (V2) structures, where a constituent (like an object) is moved to the front of the sentence. To predict the correct verb at the end of the sentence, the model must "remember" the grammatical case of that fronted element. Linguistic theory suggests the complementizer (the position occupied by the finite verb in these German sentences) acts as a central hub for this information. This paper tests if LLMs actually use that hub.

Methods

The study employs three main techniques to "peek under the hood":

  1. Activation Patching: The researchers take two nearly identical sentences (minimal pairs) that differ only in one syntactic feature (e.g., Accusative vs. Dative case). They then swap internal activations between the two runs to see which specific tokens and layers are responsible for changing the model's final prediction.
  2. Causal Masking (Ablations): They created two specific "bottlenecks":
  3. $C^0$-bottleneck: Forcing all information from the start of the sentence to pass through the complementizer to reach the end.
  4. $C^0$-circumvention: Blocking the model from looking at the complementizer, forcing it to look at the fronted element directly.
  5. Tensor Product Decomposition Networks (TPDNs): This is a neurosymbolic approach. They trained a separate network to see if the LLM's activations could be decomposed into "roles" (e.g., "fronted element") and "fillers" (e.g., "accusative noun phrase"). If they can reconstruct the LLM's behavior using these symbolic pieces, it suggests the model is using a compositional representational format.

Datasets

The authors generated a custom corpus of German minimal pairs. These are synthetically generated to ensure that the only difference between two sentences is a single syntactic contrast, such as:

  • Case: Accusative vs. Dative fronted objects.
  • Force: Interrogative (question) vs. Demonstrative (statement).
  • Mood: Indicative vs. Subjunctive.

They also included semantic controls, such as gender agreement in pronouns, where linguistic theory does not predict routing through a complementizer. This allowed them to distinguish between general information flow and specifically syntactic routing.

Key Insights and Ideas

  • The Syntactic Detour: For syntactic tasks, information travels from the fronted element to the complementizer in the middle layers, and only then moves to the final token. This "detour" is non-trivial because a direct path would be computationally simpler.
  • Linguistic Alignment: The fact that LLMs use the complementizer as a relay station suggests they have internalized a structural hierarchy similar to the one proposed by generative linguists (e.g., Rizzi’s "Left Periphery").
  • Syntactic vs. Semantic Routing: The model uses different "highways" for different tasks. While syntactic features (case, mood) rely on the complementizer hub, semantic features (like gender) often use more direct attention paths.
Figure 1: Patching results for Qwen3-4B averaged over 100 randomly sampled sentences for different phenomena. X-axis shows activation recovery scores of the last token in a grammatically significant constituent of the sentence. ‘Particle’ refers to optional filler words that in practice encourage the model to surface POSs matching the diagnostic continuations. Boxes with a black frame indicate the maximum recovery score at that layer.

Key Results

  • Patching Success: In models like Qwen3-4B, patching the complementizer position in middle layers recovered a significant portion of the model's behavior, confirming its role as a causal relay.
  • Ablation Contrast: As seen in Figure 2 (below), blocking the complementizer ($C^0$-circumvention) severely degraded accuracy for syntactic tasks (Case, Illocutionary Force) but actually improved or had little effect on semantic tasks (Gender).
  • TPDN Reconstructions: The authors were able to reconstruct activations at the complementizer position using TPDNs. Patching these "synthetic" activations into the model produced behavioral changes nearly identical to patching real activations, providing strong evidence that the model represents syntax using a compositional, TPR-like format.
Figure 2: Effects of both ablation types on model accuracy per task.

Limitations and Future Work

  • Model Scale: The study was limited to models under 10 billion parameters (Qwen3-4B and Llama-3 series). It remains to be seen if massive models (100B+) use the same discrete routing or more distributed strategies.
  • Scope of Constructions: The work focused on a specific set of German V2 constructions. Expanding this to more diverse languages and complex recursive structures is a necessary next step.
  • Mechanistic Detail: While the paper identifies where the information goes, it doesn't yet fully explain how the attention heads perform the "unbinding" operation to extract specific features like case from a complex representation. Future work could aim for a full circuit-level analysis of these attention heads.

Summary updated

BibTeX
@inproceedings{berg2026compliments,
  author = {Lasse van den Berg and Robert Frank},
  title = {{Compliments to the Complementizer: Indirect Routing of Syntactic Structure in a Transformer Language Model}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=VOdOaSAi47},
}
Figure