Abstract
Standard neural sequence-to-sequence models, such as Transformers and LSTMs, often fail to generalize compositionally, struggling to interpret novel combinations of known components. This paper introduces two model-agnostic techniques to address this: Mutual Exclusivity Training (MET) and prim2primX augmentation. MET leverages a psychological prior to prevent models from incorrectly mapping novel inputs to familiar outputs, while prim2primX encourages structural learning by diversifying primitive arguments in training data. Evaluated on the SCAN and COGS benchmarks, these methods significantly improve systematic generalization without requiring specialized architectures.
Introduction
While modern seq2seq models excel at pattern matching, they frequently lack systematic compositionality—the algebraic ability to understand novel combinations of known components. For instance, a model that understands "jump" and "run twice" should ideally understand "jump twice" without further training. In practice, models often fail these tests due to two primary issues:
- Memorization: Treating complex phrases as monolithic units rather than applying abstract rules.
- Lack of Mutual Exclusivity (ME) Bias: Defaulting to familiar outputs when encountering novel commands, a behavior contrary to how human children learn language.
Methodology
Mutual Exclusivity Training (MET)
Inspired by developmental psychology, the ME bias suggests that if a learner knows a label for one object, they are unlikely to map a new label to that same object. The authors implement this using an unlikelihood loss. During training, an input $x$ is perturbed to create $\tilde{x}$. The model is then penalized if it attempts to map the perturbed input $\tilde{x}$ to the original output $y$.
An advanced variant, MET-Meta, utilizes the Model-Agnostic Meta-Learning (MAML) framework. This approach regularizes gradient updates to ensure the model internalizes a generalizable behavior of mutual exclusivity rather than just fitting the training distribution.
prim2primX Augmentation
To prevent models from memorizing specific word-action pairs, the authors introduce prim2primX. This technique identifies "primitives" (e.g., the verb run) and replaces them with synthetic versions (e.g., run0, run1) during training. By diversifying the arguments of syntactic functions, the model is forced to learn the underlying structure of commands (like the "around" function) rather than specific vocabulary. This method avoids data leakage as the synthetic primitives are entirely absent from the test set.
Experimental Results
The proposed methods were evaluated on two rigorous compositionality benchmarks: SCAN (navigation commands) and COGS (semantic parsing).
Performance on SCAN
On the challenging "Jump" split of SCAN—where the command "jump" is only seen in isolation during training—standard Transformers typically achieve near-zero accuracy (~3.49%). As shown in the results below, the combination of prim2primX and MET-Meta dramatically improves performance.
Key findings include:
- SCAN Jump: A Transformer with
prim2primXreached 63.65% accuracy, which further increased to 73.94% when combined withMET-Meta. - Generalization to "Dax": In tests involving a completely novel word ("dax"), the
prim2primX + METapproach achieved 75.8% accuracy, significantly outperforming previous state-of-the-art augmentation methods like GECA.
Performance on COGS
The Transformer baseline on COGS (76.1%) was boosted to 81.1% using the combined approach. Analysis revealed that while these methods effectively eliminate "primitive errors" (misidentifying verbs), "structural errors" (incorrect sequence length or nesting) remain a significant hurdle.
Discussion and Conclusion
A critical insight from this work is the synergy between deductive priors and inductive data. MET (the deductive prior) is most effective when the model has already reached a functional baseline, often necessitating prim2primX (the inductive data) to provide sufficient structural grounding.
While these techniques solve lexical generalization, structural generalization—generalizing to deeper recursion or novel structural patterns—remains an open challenge. Future research may focus on inducing more robust, human-like biases that generalize across entirely unseen structural distributions.
Summary updated