arXiv · 1910.02612
Compositional Generalization for Primitive Substitutions
Abstract
Compositional generalization is a basic mechanism in human language learning, but current neural networks lack such ability. In this paper, we conduct fundamental research for encoding compositionality in neural networks. Conventional methods use a single representation for the input sentence, making it hard to apply prior knowledge of compositionality. In contrast, our approach leverages such knowledge with two representations, one generating attention maps, and the other mapping attended input words to output symbols. We reduce the entropy in each representation to improve generalization. Our experiments demonstrate significant improvements over the conventional methods in five NLP tasks including instruction learning and machine translation. In the SCAN domain, it boosts accuracies from 14.0% to 98.8% in Jump task, and from 92.0% to 99.7% in TurnLeft task. It also beats human performance on a few-shot learning task. We hope the proposed approach can help ease future research towards human-level compositional language learning.
Explore related subjects
Keep this discovery
Yuanpeng Li, Liang Zhao, Jianyu Wang, Joel Hestness. 2019-10-07. Compositional Generalization for Primitive Substitutions. https://arxiv.org/abs/1910.02612
Cite the original work for its findings. Save a collection to share your selection of sources.