multiPRover: Generating Multiple Proofs for Improved Interpretability in Rule Reasoning

Swarnadeep Saha, Prateek Yadav, Mohit Bansal

Abstract

Swarnadeep Saha, Prateek Yadav, Mohit Bansal. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.

2021.

Introduction

While modern AI can often answer logic-based questions, explaining the underlying reasoning process remains a significant challenge. In "soft theorem proving," models reason over natural language facts and rules to reach conclusions. Previous state-of-the-art models, such as PROVER, were limited to generating a single proof graph for any given answer.

However, logical reasoning is rarely linear; many rule-bases contain multiple valid paths to the same conclusion. Forcing a model to select a single proof can obscure the full rationale and lead to a loss of precision. When existing models are pushed to generate multiple proofs using simple sampling techniques, their precision often drops significantly (to around 34%) because they fail to capture the correlations between different valid logical paths.

Examples of rules, facts, and proof graphs for logic-based reasoning.

Methodology: multiPRover

To address these limitations, the authors introduce multiPRover, a framework that treats proof generation as a set generation problem. Two primary variants were developed:

  1. Multilabel-multiPRover: This model employs multi-label classification to predict nodes and edges across a fixed number of potential proofs simultaneously. This "implicit conditioning" allows the model to learn which facts and rules frequently co-occur across different proofs.
  2. Iterative-multiPRover: This more advanced variant generates proofs sequentially. Using Transformer encoders, it explicitly conditions each new proof on previously generated ones. This allows the model to "remember" used rules and actively search for distinct alternative logical paths.

The Hungarian Loss

A key innovation is the use of a permutation-invariant Hungarian Loss. Since the order of valid proofs is arbitrary, this loss function finds the optimal matching between predicted and "gold" proofs, ensuring the model is evaluated on the correctness of the set rather than the sequence.

Multiple valid proof structures (S1 and S2) for a single query, illustrating the complexity of set-based proof generation.

Experimental Setup

The models were evaluated across three diverse datasets:

  • DU0-DU5: Synthetic datasets with reasoning depths up to 5 steps, where a significant portion of questions have multiple valid proofs.
  • Birds-Electricity: A zero-shot dataset designed to test generalization. Models trained on synthetic data are tested on entirely new domains (e.g., circuits or avian biology).
  • ParaRules: A dataset featuring human-paraphrased rules and facts to test linguistic robustness.

Results and Discussion

The iterative approach demonstrated substantial improvements over baseline methods:

  • Precision and F1 Score: Iterative-multiPRover achieved a Proof F1 score of 88.7% on the DU5 dataset, a massive leap from the 34% precision seen in sampling-based baselines.
  • Generalization: On the Birds-Electricity dataset, the model set a new state-of-the-art for proof accuracy, suggesting that training to find multiple paths helps the model learn more robust reasoning priors.
  • Complexity Scaling: The performance advantage of multiPRover widened as reasoning depth increased, indicating its necessity for complex, real-world logical tasks.

Conclusion

multiPRover significantly advances the interpretability of reasoning systems by providing a complete set of logical explanations. While the iterative approach introduces some computational overhead as the number of proofs increases, its ability to capture the "bigger picture" of logical reasoning makes it a powerful tool for structured NLP tasks. Future work may explore scaling these set-based methods to even more complex domains like multi-hop Question Answering.

Summary updated

BibTeX
@inproceedings{saha2021multiprover,
  author = {Swarnadeep Saha and Prateek Yadav and Mohit Bansal},
  title = {{multiPRover: Generating Multiple Proofs for Improved Interpretability in Rule Reasoning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=iIfFIlAwCNY},
}
Figure