Unobserved Local Structures Make Compositional Generalization Hard

Ben Bogin, Shivanshu Gupta, Jonathan Berant
1/15/2022
cs.CL

Official code: benbogin/unobserved-local-structures (7 stars, Python, last commit 2022-10-22).

Abstract

While recent work has convincingly showed that sequence-to-sequence models struggle to generalize to new compositions (termed compositional generalization), little is known on what makes compositional generalization hard on a particular test instance. In this work, we investigate what are the factors that make generalization to certain test instances challenging.

Show full abstract

We first substantiate that indeed some examples are more difficult than others by showing that different models consistently fail or succeed on the same test instances. Then, we propose a criterion for the difficulty of an example: a test instance is hard if it contains a local structure that was not observed at training time. We formulate a simple decision rule based on this criterion and empirically show it predicts instance-level generalization well across 5 different semantic parsing datasets, substantially better than alternative decision rules. Last, we show local structures can be leveraged for creating difficult adversarial compositional splits and also to improve compositional generalization under limited training budgets by strategically selecting examples for the training set.

View on arXivView PDF

Code Implementations(1)

70Python, JsonnetJan 13, 20224 years ago

Similar Papers

Cite this paper

@article{bogin2022unobserved,
  title  = {Unobserved Local Structures Make Compositional Generalization Hard},
  author = {Ben Bogin and Shivanshu Gupta and Jonathan Berant},
  year   = {2022},
  eprint = {2201.05899},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.05899}
}

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

Discussion