Probabilistic Graph Reasoning for Natural Proof Generation

Changzhi Sun, Xinbo Zhang, Jiangjie Chen, Chun Gan, Yuanbin Wu, Jiaze Chen, Hao Zhou, Lei Li

Introduction

Reasoning over natural language involves taking a set of facts and rules expressed in plain English—such as "If the wire is metal, it is conducting"—and determining the truth of a query. Beyond simple binary classification, an ideal system should provide a "proof": a graph illustrating the logical steps taken to reach a conclusion.

Example of a proof graph structure where facts (F) and rules (R) lead to a conclusion.

Prior approaches, such as the PROVER model, treated question answering (QA) and proof generation as separate sub-tasks. However, these models often failed to capture the fundamental dependency between the two: the validity of an answer is intrinsically linked to the existence of a valid proof. This lack of explicit modeling often leads to poor generalization in data-scarce (few-shot) or out-of-distribution (zero-shot) scenarios.

The PROBR Framework

To address these limitations, the authors introduce PROBR (Probabilistic Graph Reasoning), a framework that defines a joint probability distribution over all possible proof graphs and answers.

Probabilistic Graphical Model (PGM)

Instead of predicting nodes and edges independently, PROBR utilizes an undirected PGM. It assigns indicator variables to the answer ($A$), every potential node or sentence ($V$), and every potential edge ($E$). The model learns "potential functions" that score the compatibility of these variables (e.g., assessing if a specific rule logically follows from a set of facts).

The PROBR framework: (a) mapping a proof graph to induced random variables and (b) the resulting factor graph.

Variational Inference and Architecture

Because calculating exact probabilities in such complex graphs is computationally intractable, PROBR employs a mean-field variational approach. This creates a simpler proxy distribution ($q$) that is optimized to approximate the complex joint distribution. The system uses RoBERTa as a backbone for text embeddings, which are then processed by Multi-Layer Perceptrons (MLPs) to parameterize the PGM's potential functions. During inference, Integer Linear Programming (ILP) is used to ensure the final proof is a logically consistent Directed Acyclic Graph (DAG).

Experimental Evaluation

PROBR was evaluated across several benchmarks, including synthetic datasets (DU0-DU5) with varying reasoning depths, the Birds-Electricity dataset for out-of-distribution performance, and ParaRules, which features human-paraphrased rules.

Key Results

  • Few-Shot Dominance: In settings with only 1% training data (~700 samples), PROBR achieved 88.2% QA accuracy, significantly outperforming the PROVER baseline (70.2%).
  • Zero-Shot Robustness: On the Birds-Electricity dataset, PROBR reached 96.3% QA accuracy, compared to 86.5% for PROVER and 80.1% for RuleTakers.
  • Handling Natural Language: On the ParaRules dataset, PROBR outperformed baselines by nearly 30 points in QA accuracy (82.8% vs 53.6%) when trained on limited synthetic data.

Analysis and Insights

PROBR's success stems from joint modeling as a regularizer. By forcing the model to consider the answer and proof together, the structural prior prevents the model from relying on simple text correlations. This allows the model to learn the underlying logic of deduction rather than just statistical patterns.

Furthermore, PROBR demonstrates remarkable depth generalization. Models trained only on depth-1 problems were able to solve depth-5 problems with high accuracy, suggesting the framework successfully captures the iterative nature of logical reasoning.

Conclusion

PROBR represents a significant step forward in natural language reasoning by integrating probabilistic graphical models with neural architectures. While challenges remain in ensuring proof portability across domains and managing computational complexity for massive rule sets, the framework's superior performance in low-data regimes highlights the power of structural priors in machine reasoning.

Summary updated

BibTeX
@inproceedings{sun2021probabilistic,
  author = {Changzhi Sun and Xinbo Zhang and Jiangjie Chen and Chun Gan and Yuanbin Wu and Jiaze Chen and Hao Zhou and Lei Li},
  title = {{Probabilistic Graph Reasoning for Natural Proof Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.277},
}
Figure