The Paradox of the Compositionality of Natural Language: A Neural Machine Translation Case Study

Verna Dankers, Elia Bruni, Dieuwke Hupkes


Abstract
Obtaining human-like performance in NLP is often argued to require compositional generalisation. Whether neural networks exhibit this ability is usually studied by training models on highly compositional synthetic data. However, compositionality in natural language is much more complex than the rigid, arithmetic-like version such data adheres to, and artificial compositionality tests thus do not allow us to determine how neural models deal with more realistic forms of compositionality. In this work, we re-instantiate three compositionality tests from the literature and reformulate them for neural machine translation (NMT).Our results highlight that: i) unfavourably, models trained on more data are more compositional; ii) models are sometimes less compositional than expected, but sometimes more, exemplifying that different levels of compositionality are required, and models are not always able to modulate between them correctly; iii) some of the non-compositional behaviours are mistakes, whereas others reflect the natural variation in data. Apart from an empirical study, our work is a call to action: we should rethink the evaluation of compositionality in neural networks and develop benchmarks using real data to evaluate compositionality on natural language, where composing meaning is not as straightforward as doing the math.
Anthology ID:
2022.acl-long.286
Volume:
Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Month:
May
Year:
2022
Address:
Dublin, Ireland
Editors:
Smaranda Muresan, Preslav Nakov, Aline Villavicencio
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
4154–4175
Language:
URL:
https://aclanthology.org/2022.acl-long.286
DOI:
10.18653/v1/2022.acl-long.286
Bibkey:
Cite (ACL):
Verna Dankers, Elia Bruni, and Dieuwke Hupkes. 2022. The Paradox of the Compositionality of Natural Language: A Neural Machine Translation Case Study. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4154–4175, Dublin, Ireland. Association for Computational Linguistics.
Cite (Informal):
The Paradox of the Compositionality of Natural Language: A Neural Machine Translation Case Study (Dankers et al., ACL 2022)
Copy Citation:
PDF:
https://aclanthology.org/2022.acl-long.286.pdf
Software:
 2022.acl-long.286.software.zip
Video:
 https://aclanthology.org/2022.acl-long.286.mp4
Code
 i-machine-think/compositionality_paradox_mt