Meta-Learning to Compositionally Generalize

Henry Conklin, Bailin Wang, Kenny Smith, Ivan Titov
6/8/2021
cs.CL

Official code: berlino/tensor2struct-public (92 stars, Python, MIT, last commit 2023-03-08).

Abstract

Natural language is compositional; the meaning of a sentence is a function of the meaning of its parts. This property allows humans to create and interpret novel sentences, generalizing robustly outside their prior experience.

Show full abstract

Neural networks have been shown to struggle with this kind of generalization, in particular performing poorly on tasks designed to assess compositional generalization (i.e. where training and testing distributions differ in ways that would be trivial for a compositional strategy to resolve). Their poor performance on these tasks may in part be due to the nature of supervised learning which assumes training and testing data to be drawn from the same distribution. We implement a meta-learning augmented version of supervised learning whose objective directly optimizes for out-of-distribution generalization. We construct pairs of tasks for meta-learning by sub-sampling existing training data. Each pair of tasks is constructed to contain relevant examples, as determined by a similarity metric, in an effort to inhibit models from memorizing their input. Experimental results on the COGS and SCAN datasets show that our similarity-driven meta-learning can improve generalization performance.

View on arXivView PDF

Code Implementations(1)

MIT

Semantic parsers based on encoder-decoder framework

9222Python, JsonnetMar 18, 20213 years agoMIT

Similar Papers

Cite this paper

@article{conklin2021metalearning,
  title  = {Meta-Learning to Compositionally Generalize},
  author = {Henry Conklin and Bailin Wang and Kenny Smith and Ivan Titov},
  year   = {2021},
  eprint = {2106.04252},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.04252}
}

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

Discussion