Compositionality as Lexical Symmetry

Ekin Akyürek, Jacob Andreas
1/30/2022
cs.CLcs.CVcs.LG

Official code: ekinakyurek/lexsym (9 stars, Python, MIT, last commit 2022-05-23).

Abstract

In tasks like semantic parsing, instruction following, and question answering, standard deep networks fail to generalize compositionally from small datasets. Many existing approaches overcome this limitation with model architectures that enforce a compositional process of sentence interpretation.

Show full abstract

In this paper, we present a domain-general and model-agnostic formulation of compositionality as a constraint on symmetries of data distributions rather than models. Informally, we prove that whenever a task can be solved by a compositional model, there is a corresponding data augmentation scheme -- a procedure for transforming examples into other well formed examples -- that imparts compositional inductive bias on any model trained to solve the same task. We describe a procedure called LEXSYM that discovers these transformations automatically, then applies them to training data for ordinary neural sequence models. Unlike existing compositional data augmentation procedures, LEXSYM can be deployed agnostically across text, structured data, and even images. It matches or surpasses state-of-the-art, task-specific models on COGS semantic parsing, SCAN and ALCHEMY instruction following, and CLEVR-COGENT visual question answering datasets.

View on arXivView PDF

Code Implementations(1)

ekinakyurek/lexsymOfficial100%
MIT

Compositionality as Lexical Symmetry

91Python, ShellJan 30, 20224 years agoMIT

Similar Papers

Cite this paper

@article{akyrek2022compositionality,
  title  = {Compositionality as Lexical Symmetry},
  author = {Ekin Akyürek and Jacob Andreas},
  year   = {2022},
  eprint = {2201.12926},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12926}
}

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

Discussion