PRover: Proof Generation for Interpretable Reasoning over Rules

Swarnadeep Saha, Sayan Ghosh, Shashank Srivastava, Mohit Bansal
10/6/2020
85 citations
cs.CLcs.AIcs.LG
transformer-attention

Official code: swarnaHub/PRover (20 stars, Python, MIT, last commit 2023-07-06).

Abstract

Recent work by Clark et al. (2020) shows that transformers can act as 'soft theorem provers' by answering questions over explicitly provided knowledge in natural language. In our work, we take a step closer to emulating formal theorem provers, by proposing PROVER, an interpretable transformer-based model that jointly answers binary questions over rule-bases and generates the corresponding proofs.

Show full abstract

Our model learns to predict nodes and edges corresponding to proof graphs in an efficient constrained training paradigm. During inference, a valid proof, satisfying a set of global constraints is generated. We conduct experiments on synthetic, hand-authored, and human-paraphrased rule-bases to show promising results for QA and proof generation, with strong generalization performance. First, PROVER generates proofs with an accuracy of 87%, while retaining or improving performance on the QA task, compared to RuleTakers (up to 6% improvement on zero-shot evaluation). Second, when trained on questions requiring lower depths of reasoning, it generalizes significantly better to higher depths (up to 15% improvement). Third, PROVER obtains near perfect QA accuracy of 98% using only 40% of the training data. However, generating proofs for questions requiring higher depths of reasoning becomes challenging, and the accuracy drops to 65% for 'depth 5', indicating significant scope for future work. Our code and models are publicly available at https://github.com/swarnaHub/PRover

View on arXivView PDF

Code Implementations(1)

swarnaHub/PRoverOfficial100%
MIT

[EMNLP 2020] PyTorch code of PRover: Proof Generation for Interpretable Reasoning over Rules

203Python, ShellFeb 24, 20203 years agoMIT

Similar Papers

Cite this paper

@article{saha2020prover,
  title  = {PRover: Proof Generation for Interpretable Reasoning over Rules},
  author = {Swarnadeep Saha and Sayan Ghosh and Shashank Srivastava and Mohit Bansal},
  year   = {2020},
  eprint = {2010.02830},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.02830}
}

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

Discussion