Generating Natural Language Proofs with Verifier-Guided Search

Kaiyu Yang, Jia Deng, Danqi Chen

TL;DR

NLProofS (Natural Language Proof Search) is a novel stepwise proof generation method that uses an independent verifier to guide a global search for valid natural language proofs. By conditioning step generation on the hypothesis and using a verifier to filter out logical leaps, it achieves state-of-the-art performance on complex, human-authored reasoning tasks while drastically reducing hallucination.

What Problem Does This Paper Address?

Reasoning in free-form natural language is a major milestone for AI. Unlike formal logic, natural language doesn't require labor-intensive formalization, but its inherent ambiguity makes automated reasoning incredibly difficult.

When models are tasked with generating a "proof tree"—a structured sequence of steps leading from known facts to a hypothesis—they typically choose one of two strategies:

  1. Single-shot generation: Generating the entire proof tree at once, which struggles to scale to long or complex proofs.
  2. Stepwise generation: Generating the proof step-by-step.

While stepwise generation is inherently more modular and scalable, existing methods suffer from a frustrating trade-off. If the model is allowed to see the hypothesis, it tends to hallucinate invalid logical leaps just to arrive at the desired conclusion. If the hypothesis is hidden to prevent this, the model wanders aimlessly, generating valid but completely irrelevant steps.

This paper introduces a way to break this deadlock, specifically targeting realistic, human-authored proofs where the search space is vast.

Figure 1: Top: In proof generation, given a hypothesis and multiple supporting facts (potentially with redundant facts), the model generates a proof tree, including both the tree structure and the intermediate conclusions (int1 and int2). A common approach encodes the input/output as text sequences and generates the proof in a single-shot (Middle) or generates the proof step by step (Bottom, showing only one of the three steps) using text-to-text models.

Methods

The authors introduce NLProofS, which balances relevance and logical validity using three core components:

  • Stepwise Prover: A fine-tuned T5-large model that generates candidate proof steps. Crucially, it conditions its generation on both the available facts and the target hypothesis, ensuring the steps remain relevant.
  • Independent Verifier: A RoBERTa-large model trained to judge whether a single reasoning step (premises $\rightarrow$ conclusion) is logically sound. To train it without manual negative annotations, the authors automatically generated "pseudo-negative" examples by perturbing valid steps (e.g., removing premises or swapping in distractors).
  • Verifier-Guided Search: Instead of greedily picking the best next step, NLProofS conducts a global search over a proof graph. It samples partial proofs, uses the prover to generate multiple candidate steps, scores them by averaging the prover's likelihood and the verifier's validity score, and updates the graph. It repeats this until no higher-scoring paths to the hypothesis can be found.
Figure 2: An iteration in the proof search. Nodes for proof step (S) are omitted for simplicity of illustration. (1) Sample a partial proof (red) from the proof graph. (2) Use the stepwise prover to generate potential steps (blue, only showing one but generating multiple) and score them using the verifier. (3) Execute the steps to update the graph.

This architecture sets it apart from prior stepwise reasoners, which typically lack non-local search capabilities or independent verifiers.

Comparison of NLProofS with existing methods

Datasets

The method was evaluated on two distinct benchmarks:

  • EntailmentBank: A challenging dataset containing human-authored proofs. It features unconstrained natural language, fuzziness, and distractors. The authors focused heavily on Task 2 (where the model must find the proof amidst 25 distractor sentences) and Task 3 (searching a full 12k-sentence corpus).
  • RuleTaker: A synthetic dataset consisting of simple English sentences generated from strict templates, used to demonstrate the broad applicability of the method.

Key Insights and Ideas

  • Verification Beats Blindness: Banning the model from seeing the hypothesis is the wrong way to stop hallucination. It is far better to let the model see the goal, but police its steps using an independent verifier.
  • Global Search Prevents Local Dead-Ends: Greedy step selection often traps models in logical dead-ends. By treating proof generation as a global graph-search problem, the model can explore multiple paths and recover from early mistakes.
  • The Prover is the Bottleneck: Through "oracle" experiments (replacing components with ground-truth data), the authors discovered that an perfect verifier barely improves performance, whereas a perfect prover skyrockets accuracy. The main bottleneck in natural language reasoning is the model's ability to generate diverse, high-quality candidate steps in the first place.

Key Results

NLProofS achieved state-of-the-art results on both benchmarks, with particularly impressive gains on the realistic EntailmentBank dataset:

  • Higher Accuracy: On EntailmentBank Task 2 (with distractors), NLProofS improved the exact match accuracy of complete proofs from 27.7% to 33.3%, outperforming much larger models like EntailmentWriter (T5-11B).
  • Better Fact Identification: The accuracy of identifying the correct leaf nodes (supporting facts) jumped significantly from 46.1% to 58.8%.
  • Reduced Hallucination: Human evaluation of 100 generated proof steps revealed that NLProofS produced 77% valid steps, compared to only 43% for the single-shot EntailmentWriter baseline.

Limitations and Future Work

Despite its success, the authors note clear areas for improvement:

  • Lack of Step Diversity: The prover uses standard beam search, which often generates redundant steps that are merely permutations of the same premises (e.g., sent1 & sent2 vs sent2 & sent1). Integrating diverse decoding algorithms could help.
  • Scaling Issues: The prover currently concatenates all supporting facts into one long text sequence. This approach is computationally inefficient and struggles to scale to very large corpora, a limitation that might be mitigated by architectures like Fusion-in-Decoder.

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