TL;DR
This paper demonstrates that training neural language models with explicit "negative examples"—grammatically incorrect versions of sentences—significantly boosts their ability to handle complex syntax like long-distance subject-verb agreement. While this supervision leads to near-perfect performance on many tasks, the authors identify a persistent "architectural bottleneck" in sequential RNNs: they struggle with object-relative clauses regardless of how much data or direct signal they receive.
What Problem Does This Paper Address?
Standard neural language models (LMs) are trained on "positive" data—massive corpora of correct sentences. While they become remarkably fluent, they often fail at "stress tests" involving long-distance dependencies. For instance, in the sentence "The author that the guards like laughs," an LSTM might incorrectly prefer the plural verb "laugh" because it was recently exposed to the plural noun "guards".
Researchers have debated whether this failure is due to a lack of data, a weak learning signal from raw text, or fundamental architectural flaws in sequential models like LSTMs. This paper uses explicit negative examples (e.g., pairing the correct sentence with its incorrect counterpart "The author that the guards like *laugh") to push LSTMs to their limit and see what they can—and cannot—learn.
Methods
The authors introduce and compare several ways to incorporate negative examples into training:
- Binary Classification Loss: A multi-task approach where the model predicts if the next verb should be singular or plural.
- Unlikelihood Loss: Explicitly penalizing the probability of incorrect tokens.
- Sentence-level Margin Loss: Ensuring the log-likelihood of a correct sentence is higher than an incorrect one by at least a margin $\delta$.
- Token-level Margin Loss (The Winner): The authors' preferred method, which enforces a margin between the log-probabilities of the correct and incorrect word at a specific position.
The key innovation is the Token-level Margin Loss. Unlike standard cross-entropy, which only cares about maximizing the correct word's probability, this loss directly forces the model to distinguish between a correct form (e.g., laughs) and its specific grammatical distractor (e.g., laugh).
Datasets
- Training: An 80-million-token English Wikipedia corpus (Gulordava et al., 2018).
- Evaluation: The Marvin and Linzen (2018) benchmark, which consists of synthetic sentence pairs designed to test specific syntactic phenomena like subject-verb agreement, reflexive anaphora, and Negative Polarity Items (NPIs).
- Augmentation: To test the limits of the architecture, the authors created a version of the Wikipedia corpus augmented with 680,000 additional sentences containing rare Object Relative Clauses (ORCs).
Key Insights and Ideas
- Direct Supervision Works: Providing explicit negative signals allows LSTMs to reach near 100% accuracy on most agreement tasks without significantly hurting their overall language modeling ability (perplexity).
- The ORC Bottleneck: Even with direct supervision and an 8x increase in relevant training data, LSTMs still struggle with agreement across Object Relative Clauses (e.g., "The authors that the chef likes laugh"). This suggests that the difficulty is architectural, not just a matter of frequency. LSTMs seem to have a "memory limitation" similar to humans when processing center-embedded structures.
- Generalization vs. Memorization: The models don't just memorize specific word pairs. An ablation study (Figure 3) showed that training on negative examples for some verbs improves performance on others, and training on one type of construction (like prepositional phrases) helps the model handle others (like subject relative clauses).
- Polysemy Matters: Transfer of knowledge fails for highly polysemous words. For example, the word "like" is often a preposition in Wikipedia; models struggle to learn its behavior as a verb unless they receive explicit negative examples for it.
Key Results
The token-level margin loss achieved state-of-the-art results on the Marvin and Linzen benchmark, outperforming previous methods like knowledge distillation from syntactic models.
As shown in Figure 1, increasing the margin $\delta$ consistently improves syntactic accuracy, though a very high margin eventually begins to degrade performance on reflexive anaphora and perplexity.
The limits of the architecture are best seen in Figure 2, where even massive data augmentation for Object Relative Clauses (ORCs) fails to bring performance up to the level of simpler Subject Relative Clauses (SRCs).
Limitations and Future Work
- Manual Scope: The current method requires pre-defining which constructions to generate negative examples for (e.g., present-tense verbs). The authors suggest future work could involve models that "self-induce" their own negative examples during training.
- Cognitive Plausibility: Humans generally don't receive this much explicit negative evidence when learning a language. While useful for engineering and analysis, this isn't a model of human language acquisition.
- NPI Handling: The token-level loss struggles with Negative Polarity Items (NPIs) because the "correctness" of the word (e.g., "ever") depends on context that follows it, rather than just what precedes it. The sentence-level loss can handle this but at a higher cost to perplexity.
Summary updated