Compositionality decomposed: how do neural networks generalise?

Dieuwke Hupkes, Verna Dankers, Mathijs Mul, Elia Bruni
8/22/2019
cs.CLcs.AIcs.LG

Official code: i-machine-think/am-i-compositional (61 stars, Python, MIT, last commit 2023-07-04).

Abstract

Despite a multitude of empirical studies, little consensus exists on whether neural networks are able to generalise compositionally, a controversy that, in part, stems from a lack of agreement about what it means for a neural model to be compositional. As a response to this controversy, we present a set of tests that provide a bridge between, on the one hand, the vast amount of linguistic and philosophical theory about compositionality of language and, on the other, the successful neural models of language.

Show full abstract

We collect different interpretations of compositionality and translate them into five theoretically grounded tests for models that are formulated on a task-independent level. In particular, we provide tests to investigate (i) if models systematically recombine known parts and rules (ii) if models can extend their predictions beyond the length they have seen in the training data (iii) if models' composition operations are local or global (iv) if models' predictions are robust to synonym substitutions and (v) if models favour rules or exceptions during training. To demonstrate the usefulness of this evaluation paradigm, we instantiate these five tests on a highly compositional data set which we dub PCFG SET and apply the resulting tests to three popular sequence-to-sequence models: a recurrent, a convolution-based and a transformer model. We provide an in-depth analysis of the results, which uncover the strengths and weaknesses of these three architectures and point to potential areas of improvement.

View on arXivView PDF

Code Implementations(1)

MIT
618Python, ShellAug 10, 20193 years agoMIT

Similar Papers

Cite this paper

@article{hupkes2019compositionality,
  title  = {Compositionality decomposed: how do neural networks generalise?},
  author = {Dieuwke Hupkes and Verna Dankers and Mathijs Mul and Elia Bruni},
  year   = {2019},
  eprint = {1908.08351},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.08351}
}

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

Discussion