Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?

Peter Shaw, Ming-Wei Chang, Panupong Pasupat, Kristina Toutanova
10/24/2020
cs.CL

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

Abstract

Sequence-to-sequence models excel at handling natural language variation, but have been shown to struggle with out-of-distribution compositional generalization. This has motivated new specialized architectures with stronger compositional biases, but most of these approaches have only been evaluated on synthetically-generated datasets, which are not representative of natural language variation.

Show full abstract

In this work we ask: can we develop a semantic parsing approach that handles both natural language variation and compositional generalization? To better assess this capability, we propose new train and test splits of non-synthetic datasets. We demonstrate that strong existing approaches do not perform well across a broad set of evaluations. We also propose NQG-T5, a hybrid model that combines a high-precision grammar-based approach with a pre-trained sequence-to-sequence model. It outperforms existing approaches across several compositional generalization challenges on non-synthetic data, while also being competitive with the state-of-the-art on standard evaluations. While still far from solving this problem, our study highlights the importance of diverse evaluations and the open challenge of handling both compositional generalization and natural language variation in semantic parsing.

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{shaw2020compositional,
  title  = {Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?},
  author = {Peter Shaw and Ming-Wei Chang and Panupong Pasupat and Kristina Toutanova},
  year   = {2020},
  eprint = {2010.12725},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.12725}
}

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

Discussion