Introduction
Modern Natural Language Processing (NLP) is largely divided between two architectural paradigms: causal models, which process text strictly from left to right, and bidirectional models, which analyze entire sequences simultaneously. While causal models (like GPT-4) are well-suited for real-time generation, they often struggle with "garden path" sentences—linguistic structures where an initial interpretation is invalidated by later information. Conversely, bidirectional models (like BERT) are typically evaluated on complete sentences, obscuring how they might handle incremental ambiguity.
This paper investigates the intersection of these paradigms through Restart-Incrementality (RI). In an RI setup, a bidirectional model re-processes the entire available prefix every time a new word is added. This approach allows researchers to observe how a model "changes its mind" as context evolves, providing a window into the internal dynamics of linguistic revision.
The Problem: Navigating Linguistic Traps
Linguistic "traps," or local ambiguities, are a hallmark of human language. Consider the sentence: "The horse raced past the barn fell." A reader initially interprets "raced" as the main verb, only to realize upon reaching "fell" that "raced" was part of a reduced relative clause.
Causal models are inherently limited in these scenarios; once a token's representation is computed, it remains fixed. Bidirectional models, when used traditionally, bypass the problem by seeing the whole sentence at once. By applying RI to bidirectional models, the authors test whether these architectures can mimic the human ability to revise internal states when faced with disambiguating evidence.
Methodology: Peeking Inside the Glass Box
To analyze how models navigate these ambiguities, the authors propose a framework for monitoring internal state dynamics during the RI process:
- Triangular Structures: The model's processing is visualized as a 3D prism. The axes represent input tokens, the temporal step (the current length of the prefix), and the feature dimensions (embeddings or attention weights).
- State Dynamics Metrics: Two primary metrics quantify the "revision" process:
- Cosine Distance: Measures the shift in a word's vector representation as new context is introduced.
- Jensen-Shannon Divergence (JSD): Measures changes in the probability distributions of predicted labels or attention arcs.
- Comparative Baselines: The study compares model reactions to ambiguous "stimulus" sentences against unambiguous "baseline" versions.
Experimental Design
The study focuses on three classic English ambiguities:
- NP/S (Noun Phrase/Sentential Complement): e.g., "The professor noticed (that) the grant..."
- MVRR (Main Verb/Reduced Relative): e.g., "The dancer assigned (who was assigned) the ballet..."
- NNC (Noun-Noun Compounds): e.g., "This is the public service..."
The researchers evaluated BERT and RoBERTa using specialized dependency parsers (Biaffine and DiaParsers) to track how syntactic interpretations shifted during the RI process.
Key Insights
The Reality of the AI "Garden Path"
The study confirms that bidirectional models under the RI paradigm do indeed "fall" for garden path sentences. Initially, their internal states align with the incorrect interpretation. It is only when the disambiguating token arrives that the model undergoes a significant internal shift to "correct" its understanding.
The Engine of Revision
A critical finding is that the most substantial updates to internal representations occur in the middle-to-upper layers of the Transformer. While lower layers maintain relatively static syntactic information, the middle layers act as the "engine of revision," managing the transition between competing semantic roles as new evidence emerges.
Rigidity of Causal Architectures
In contrast to RI-bidirectional models, causal models like GPT-2 exhibit almost zero revision in their final layers. Their initial interpretation is essentially permanent. This rigidity suggests a fundamental disadvantage for causal models in tasks requiring complex linguistic recovery, as they lack the mechanism to retroactively adjust their "first impressions."
Predicting Edits via Internal Shifts
The researchers found a high correlation between internal divergence (JSD) and actual changes in output labels. For Noun-Noun Compounds, the Matthews Correlation Coefficient (MCC) between internal distribution shifts and output edits reached 0.99. This implies that monitoring internal state volatility can serve as a reliable predictor for when a model is about to revise its output.
Results and Recovery
In NP/S and MVRR tasks, the "distance" between the ambiguous stimulus and the clear baseline spiked during the ambiguous segment but dropped significantly once the disambiguating token was processed. This demonstrates that the models successfully "recovered" their understanding. For instance, in the final layer of BERT, the mean cosine distance for a word's representation shifted by 0.41 upon encountering a disambiguating noun—markedly higher than the 0.34 shift observed in non-ambiguous text.
Limitations and Future Outlook
Despite the insights gained, Restart-Incrementality faces several challenges:
- Computational Complexity: RI requires $O(n^2)$ complexity, as the model must re-process the entire prefix at every step.
- Prefix Instability: Since models like BERT are trained on complete sentences, feeding them short prefixes may lead to "out-of-distribution" instability or hallucinations.
- Scope: The study focused on short-range ambiguities (3-4 tokens). Future research is needed to determine if these models can recover from longer-distance garden paths.
The authors suggest that these findings could lead to the development of "uncertainty controllers." By monitoring internal state variations, a system could decide to delay output until the model reaches a state of stability, thereby reducing "flicker" and improving reliability in real-time applications like simultaneous translation.
Summary updated