Compositional Generalization for Primitive Substitutions

Yuanpeng Li, Liang Zhao, Jianyu Wang, Joel Hestness
10/7/2019
cs.CLcs.LG

Official code: yli1/CGPS (6 stars, Shell, Apache-2.0, last commit 2020-03-18).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

yli1/CGPSOfficial100%
Apache-2.0
63Shell, PythonAug 14, 20196 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2019compositional,
  title  = {Compositional Generalization for Primitive Substitutions},
  author = {Yuanpeng Li and Liang Zhao and Jianyu Wang and Joel Hestness},
  year   = {2019},
  eprint = {1910.02612},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.02612}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1910.02612.svg)](https://codeofpaper.com/paper/1910.02612)

Discussion