Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionality

Yichen Jiang, Xiang Zhou, Mohit Bansal
11/28/2022
cs.CLcs.AIcs.LG

Official code: owenzx/met-primaug (2 stars, Python, last commit 2022-11-29).

Abstract

Recent datasets expose the lack of the systematic generalization ability in standard sequence-to-sequence models. In this work, we analyze this behavior of seq2seq models and identify two contributing factors: a lack of mutual exclusivity bias (i.e., a source sequence already mapped to a target sequence is less likely to be mapped to other target sequences), and the tendency to memorize whole examples rather than separating structures from contents.

Show full abstract

We propose two techniques to address these two issues respectively: Mutual Exclusivity Training that prevents the model from producing seen generations when facing novel, unseen examples via an unlikelihood-based loss; and prim2primX data augmentation that automatically diversifies the arguments of every syntactic function to prevent memorizing and provide a compositional inductive bias without exposing test-set data. Combining these two techniques, we show substantial empirical improvements using standard sequence-to-sequence models (LSTMs and Transformers) on two widely-used compositionality datasets: SCAN and COGS. Finally, we provide analysis characterizing the improvements as well as the remaining challenges, and provide detailed ablations of our method. Our code is available at https://github.com/owenzx/met-primaug

View on arXivView PDF

Code Implementations(1)

owenzx/met-primaugOfficial100%
20Python, ShellOct 19, 20224 years ago

Similar Papers

Cite this paper

@article{jiang2022mutual,
  title  = {Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionality},
  author = {Yichen Jiang and Xiang Zhou and Mohit Bansal},
  year   = {2022},
  eprint = {2211.15578},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.15578}
}

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/2211.15578.svg)](https://codeofpaper.com/paper/2211.15578)

Discussion