Generating Natural Language Proofs with Verifier-Guided Search

Kaiyu Yang, Jia Deng, Danqi Chen

Introduction

Modern large language models (LLMs) are increasingly capable of answering complex questions, but providing a transparent, step-by-step logical justification—a natural language proof—remains a significant challenge. This task, known as proof generation, requires a model to not only reach the correct conclusion but also to identify the precise chain of reasoning from a set of provided facts.

Comparison of single-shot and stepwise generation for natural language proofs.

Existing approaches typically follow one of two strategies:

  1. Single-shot generation: The model attempts to produce the entire proof tree in one go. While efficient for simple tasks, this method often fails to scale to complex, multi-step reasoning.
  2. Stepwise generation: The model generates one reasoning step at a time. This is more flexible but prone to "hallucinations." If the model is aware of the goal (the hypothesis), it may invent invalid logical leaps to reach it. Conversely, if it is blind to the goal, it may generate valid but irrelevant steps.

The NLProofS Framework

To address these issues, the authors propose NLProofS (Natural Language Proof Search). This framework treats proof generation as a search problem rather than a simple sequence generation task. It decouples the generation of potential reasoning steps from their validation.

Comparison of NLProofS with existing proof generation methods across several key dimensions.

NLProofS consists of three integrated components:

  • The Stepwise Prover: A T5-based model that suggests candidate next steps. It is "goal-oriented," meaning it considers the hypothesis to ensure the suggested steps are relevant.
  • The Verifier: A RoBERTa-based model that acts as an independent logical judge. It evaluates individual reasoning steps (Premises $\rightarrow$ Conclusion) and assigns a validity score. It is trained on "pseudo-negatives"—corrupted proof steps—to distinguish sound logic from hallucinations.
  • Verifier-Guided Search: Instead of relying on greedy decoding, NLProofS explores a proof graph. It uses the verifier's scores to navigate through multiple potential paths, ultimately selecting the proof tree that maximizes overall logical validity.

Experimental Setup

The framework was evaluated on two key benchmarks:

  • EntailmentBank: A dataset of human-authored proofs. The evaluation focused on "distractor" tasks (Task 2 and Task 3), where the model must filter out irrelevant facts from sets of 25 to 12,000 sentences.
  • RuleTaker: A synthetic dataset used to assess the model's logical consistency in simpler, template-based scenarios.

Key Results and Insights

NLProofS established a new state-of-the-art on EntailmentBank, particularly in high-distractor environments.

  • Improved Accuracy: On Task 2 (25 distractors), proof accuracy increased from 27.7% to 33.3%.
  • Better Fact Retrieval: Leaf-node accuracy, which measures the ability to identify correct supporting facts, rose from 46.1% to 58.8%.
  • Human-Verified Logic: In human evaluations, the percentage of valid steps jumped from 43% (previous best) to 77%.
  • Efficiency: A T5-Large version of NLProofS (770M parameters) outperformed the much larger T5-11B model, demonstrating that guided search is more effective than raw scaling for logical tasks.

The research highlights that the primary bottleneck in current systems is the "prover's" ability to generate a diverse set of candidate steps. While the verifier is highly effective at filtering bad logic, the search can only succeed if the prover suggests the necessary "missing links" in the reasoning chain.

Conclusion and Future Work

NLProofS demonstrates that combining goal-oriented generation with independent verification and global search significantly improves the reliability of natural language proofs. Future work will focus on making the prover less sensitive to the order of facts and improving the diversity of generated candidates to handle even more complex reasoning tasks.

Summary updated

BibTeX
@inproceedings{yang2022generating,
  author = {Kaiyu Yang and Jia Deng and Danqi Chen},
  title = {{Generating Natural Language Proofs with Verifier-Guided Search}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.7},
}
Figure