Generating Natural Language Proofs with Verifier-Guided Search

Kaiyu Yang, Jia Deng, Danqi Chen
5/25/2022
cs.CLcs.LGcs.LO

Official code: princeton-nlp/NLProofS (87 stars, Python, MIT, last commit 2024-09-15).

Abstract

Reasoning over natural language is a challenging problem in NLP. In this work, we focus on proof generation: Given a hypothesis and a set of supporting facts, the model generates a proof tree indicating how to derive the hypothesis from supporting facts.

Show full abstract

Compared to generating the entire proof in one shot, stepwise generation can better exploit the compositionality and generalize to longer proofs but has achieved limited success on real-world data. Existing stepwise methods struggle to generate proof steps that are both logically valid and relevant to the hypothesis. Instead, they tend to hallucinate invalid steps given the hypothesis. In this paper, we present a novel stepwise method, NLProofS (Natural Language Proof Search), which learns to generate relevant steps conditioning on the hypothesis. At the core of our approach, we train an independent verifier to check the validity of the proof steps to prevent hallucination. Instead of generating steps greedily, we search for proofs maximizing a global proof score judged by the verifier. NLProofS achieves state-of-the-art performance on EntailmentBank and RuleTaker. Specifically, it improves the correctness of predicted proofs from 27.7% to 33.3% in the distractor setting of EntailmentBank, demonstrating the effectiveness of NLProofS in generating challenging human-authored proofs.

View on arXivView PDF

Code Implementations(1)

MIT

EMNLP 2022: Generating Natural Language Proofs with Verifier-Guided Search https://arxiv.org/abs/2205.12443

8715PythonMay 23, 20222 years agoMIT
machine-learningnlpreasoning

Similar Papers

Cite this paper

@article{yang2022generating,
  title  = {Generating Natural Language Proofs with Verifier-Guided Search},
  author = {Kaiyu Yang and Jia Deng and Danqi Chen},
  year   = {2022},
  eprint = {2205.12443},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.12443}
}

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

Discussion