Introduction
In natural language, words follow a Zipfian distribution where a small number of terms appear frequently, while the vast majority occur only a handful of times. Humans possess a remarkable capacity for "few-shot learning," enabling them to grasp a new word's grammatical properties after just one or two exposures. Crucially, humans also exhibit syntactic invariance: once we learn a word's syntactic features (e.g., that a verb is intransitive), we can automatically apply that knowledge across diverse grammatical structures, such as moving from an active sentence to a passive one.
This paper investigates whether modern neural language models (LMs) share these human-like abilities. Specifically, the researchers explore how many exposures are required for a model to induce syntactic features, whether this knowledge transfers to novel sentence structures, and if explicit structural supervision—providing the model with information about hierarchical sentence structure—improves these outcomes.
Experimental Methodology
The study compares four distinct model architectures:
- n-Gram Baseline: A statistical model predicting words based on a local four-word window.
- LSTM: A standard sequential neural network.
- RNNG (Recurrent Neural Network Grammar): A model that jointly predicts sentences and their hierarchical parse trees.
- ActionLSTM: A variant of the RNNG that predicts parsing actions but lacks a hierarchical composition function.
Models were trained on the Penn Treebank (~1 million tokens) and evaluated using the Psycholinguistic Assessment Paradigm. This method tests a model's internal grammar by comparing the probability it assigns to grammatical versus ungrammatical continuations (e.g., The client is vs. The client are). The evaluation focused on two key areas: Nominal Number (singular/plural agreement) and Verbal Argument Structure (transitivity).
Key Insights: Rapid Induction and the Singular Bias
The researchers found that neural models are surprisingly efficient, often inducing correct syntactic generalizations after only two or three exposures in the training data. However, when evidence is extremely sparse, models exhibit a "singular bias," defaulting to the assumption that a new noun is singular and a new verb is transitive. Accuracy for plural nouns and intransitive verbs only stabilizes as the frequency of exposure increases.
Results: The Challenge of Syntactic Invariance
While most models could learn a word's properties in simple "base" contexts, transferring that knowledge to "transformed" contexts (such as polar questions or passive voice) proved significantly more difficult. This ability to maintain syntactic expectations across structural transformations is the hallmark of robust linguistic competence.
As shown in the experimental results for argument structure, structurally supervised models (RNNG and ActionLSTM) consistently outperformed the standard sequential LSTM. For example, in complex sentences involving relative clauses, the RNNG and ActionLSTM generalized accurately across nearly all frequency buckets, whereas the LSTM struggled. The RNNG demonstrated the most robust syntactic invariance, successfully leveraging information learned in active-voice contexts to drive correct expectations in passive-voice contexts for words it had never encountered in the passive voice during training.
Conclusion and Future Directions
The findings suggest that the advantage of models like the RNNG lies not just in having access to syntactic data, but in using that data to structure the model's internal computations non-sequentially. While neural LMs are capable of rapid few-shot induction, explicit structural supervision is a key ingredient for achieving human-like syntactic invariance.
Future research is needed to determine if these findings scale to the massive datasets used by state-of-the-art models like GPT-4 and to investigate whether similar patterns hold in morphologically rich languages beyond English. Additionally, the impact of sub-word tokenization on the learning of rare words remains an important area for further study.
Summary updated