Flexible Generation of Natural Language Deductions

Kaj Bostrom, Xinyu Zhao, Swarat Chaudhuri, Greg Durrett
4/18/2021
cs.CLcs.AI

Official code: alephic/ParaPattern (11 stars, Python, last commit 2022-03-08).

Abstract

An interpretable system for open-domain reasoning needs to express its reasoning process in a transparent form. Natural language is an attractive representation for this purpose -- it is both highly expressive and easy for humans to understand.

Show full abstract

However, manipulating natural language statements in logically consistent ways is hard: models must cope with variation in how meaning is expressed while remaining precise. In this paper, we describe ParaPattern, a method for building models to generate deductive inferences from diverse natural language inputs without direct human supervision. We train BART-based models (Lewis et al., 2020) to generate the result of applying a particular logical operation to one or more premise statements. Crucially, we develop a largely automated pipeline for constructing suitable training examples from Wikipedia. We evaluate our models using out-of-domain sentence compositions from the QASC (Khot et al., 2020) and EntailmentBank (Dalvi et al., 2021) datasets as well as targeted perturbation sets. Our results show that our models are substantially more accurate and flexible than baseline systems. ParaPattern achieves 85% validity on examples of the 'substitution' operation from EntailmentBank without the use of any in-domain training data, matching the performance of a model fine-tuned for EntailmentBank. The full source code for our method is publicly available.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Flexible Generation of Natural Language Deductions"

110Python, ShellApr 18, 20214 years ago

Similar Papers

Cite this paper

@article{bostrom2021flexible,
  title  = {Flexible Generation of Natural Language Deductions},
  author = {Kaj Bostrom and Xinyu Zhao and Swarat Chaudhuri and Greg Durrett},
  year   = {2021},
  eprint = {2104.08825},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.08825}
}

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

Discussion