Can Transformers Reason in Fragments of Natural Language?

Viktor Schlegel, Kamen V. Pavlov, Ian Pratt-Hartmann
11/10/2022
cs.CLcs.AI
transformer-attention

Official code: schlevik/nlr (2 stars, Python, last commit 2022-11-11).

Abstract

State-of-the-art deep-learning-based approaches to Natural Language Processing (NLP) are credited with various capabilities that involve reasoning with natural language texts. In this paper we carry out a large-scale empirical study investigating the detection of formally valid inferences in controlled fragments of natural language for which the satisfiability problem becomes increasingly complex.

Show full abstract

We find that, while transformer-based language models perform surprisingly well in these scenarios, a deeper analysis re-veals that they appear to overfit to superficial patterns in the data rather than acquiring the logical principles governing the reasoning in these fragments.

View on arXivView PDF

Code Implementations(1)

schlevik/nlrOfficial100%

Can Transformers Reason in Fragments of Natural Language?

20Python, JsonnetNov 10, 20224 years ago

Similar Papers

Cite this paper

@article{schlegel2022transformers,
  title  = {Can Transformers Reason in Fragments of Natural Language?},
  author = {Viktor Schlegel and Kamen V. Pavlov and Ian Pratt-Hartmann},
  year   = {2022},
  eprint = {2211.05417},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.05417}
}

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

Discussion