Compositional generalization in a deep seq2seq model by separating syntax and semantics
Jake Russin, Jason Jo, Randall C. O'Reilly, Yoshua Bengio
TL;DR
The paper tackles the challenge of compositional generalization in neural NLP by introducing Syntactic Attention, a two-stream architecture that separates syntax (sequential, alignment-focused processing) from semantics (word-level mappings) and combines them via attention. Grounded in neuroscience-inspired intuition about distinct language systems, the model achieves substantial improvements on the SCAN add-jump task without extra supervision, turning o.o.d. generalization into two i.i.d. problems. The results include strong performance gains over prior models, detailed analyses of variability, and supplementary experiments showing robustness to semantic parametrization and conditions under which the approach succeeds or falters. Overall, the work highlights the potential gains from incorporating cognitive principles into neural architectures to enhance systematic generalization in language tasks.
Abstract
Standard methods in deep learning for natural language processing fail to capture the compositional structure of human language that allows for systematic generalization outside of the training distribution. However, human learners readily generalize in this way, e.g. by applying known grammatical rules to novel words. Inspired by work in neuroscience suggesting separate brain systems for syntactic and semantic processing, we implement a modification to standard approaches in neural machine translation, imposing an analogous separation. The novel model, which we call Syntactic Attention, substantially outperforms standard methods in deep learning on the SCAN dataset, a compositional generalization task, without any hand-engineered features or additional supervision. Our work suggests that separating syntactic from semantic learning may be a useful heuristic for capturing compositional structure.
