Improving Compositional Generalization with Latent Structure and Data Augmentation

Linlu Qiu, Peter Shaw, Panupong Pasupat, Paweł Krzysztof Nowak, Tal Linzen +2 more
12/14/2021
70 citations
cs.CL

Official code: google-research/language (1,828 stars, Python, Apache-2.0, last commit 2026-04-21).

Abstract

Generic unstructured neural networks have been shown to struggle on out-of-distribution compositional generalization. Compositional data augmentation via example recombination has transferred some prior knowledge about compositionality to such black-box neural models for several semantic parsing tasks, but this often required task-specific engineering or provided limited gains.

Show full abstract

We present a more powerful data recombination method using a model called Compositional Structure Learner (CSL). CSL is a generative model with a quasi-synchronous context-free grammar backbone, which we induce from the training data. We sample recombined examples from CSL and add them to the fine-tuning data of a pre-trained sequence-to-sequence model (T5). This procedure effectively transfers most of CSL's compositional bias to T5 for diagnostic tasks, and results in a model even stronger than a T5-CSL ensemble on two real world compositional generalization tasks. This results in new state-of-the-art performance for these challenging semantic parsing tasks requiring generalization to both natural language variation and novel compositions of elements.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Shared repository for open-sourced projects from the Google AI Language team.

1,828363Python, Jupyter NotebookOct 16, 20187 months agoApache-2.0
machine-learningnatural-language-processingresearch

Similar Papers

Cite this paper

@article{qiu2021improving,
  title  = {Improving Compositional Generalization with Latent Structure and Data Augmentation},
  author = {Linlu Qiu and Peter Shaw and Panupong Pasupat and Paweł Krzysztof Nowak and Tal Linzen and Fei Sha and Kristina Toutanova},
  year   = {2021},
  eprint = {2112.07610},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.07610}
}

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

Discussion