COGS: A Compositional Generalization Challenge Based on Semantic Interpretation

Najoung Kim, Tal Linzen
10/12/2020
cs.CL

Official code: najoungkim/COGS (64 stars, Python, MIT, last commit 2022-09-13).

Abstract

Natural language is characterized by compositionality: the meaning of a complex expression is constructed from the meanings of its constituent parts. To facilitate the evaluation of the compositional abilities of language processing architectures, we introduce COGS, a semantic parsing dataset based on a fragment of English.

Show full abstract

The evaluation portion of COGS contains multiple systematic gaps that can only be addressed by compositional generalization; these include new combinations of familiar syntactic structures, or new combinations of familiar words and familiar structures. In experiments with Transformers and LSTMs, we found that in-distribution accuracy on the COGS test set was near-perfect (96--99%), but generalization accuracy was substantially lower (16--35%) and showed high sensitivity to random seed ($\pm$6--8%). These findings indicate that contemporary standard NLP models are limited in their compositional generalization capacity, and position COGS as a good way to measure progress.

View on arXivView PDF

Code Implementations(1)

najoungkim/COGSOfficial100%
MIT
6410Python, ShellOct 12, 20204 years agoMIT

Similar Papers

Cite this paper

@article{kim2020cogs,
  title  = {COGS: A Compositional Generalization Challenge Based on Semantic Interpretation},
  author = {Najoung Kim and Tal Linzen},
  year   = {2020},
  eprint = {2010.05465},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.05465}
}

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

Discussion