A Probabilistic Framework for LLM Hallucination Detection via Belief Tree Propagation

Bairu Hou, Yang Zhang, Jacob Andreas, Shiyu Chang

Introduction: The Hallucination Challenge

Large Language Models (LLMs) frequently generate "hallucinations"—statements that are factually incorrect yet presented with high linguistic confidence. Current detection methods often struggle because LLMs are poorly calibrated; a model might express 100% confidence in a false claim or provide inconsistent answers across different prompts.

Existing solutions like self-consistency sampling do not account for the inherent noise in an LLM's internal judgment. This paper introduces BTPROP (Belief Tree PROPagation), a framework that treats hallucination detection as a global probabilistic inference problem by analyzing the logical neighborhood of a claim.

The BTPROP Framework

BTPROP operates by recursively expanding a target statement into a "belief tree" of logically related premises. This process involves three distinct stages:

  1. Belief Tree Construction: The LLM decomposes a complex sentence into atomic facts, generates supportive or contradictory premises, and suggests alternative "corrected" versions of the statement.
  2. Logical Relationship Mapping: An external Natural Language Inference (NLI) model identifies whether child nodes in the tree entail or contradict their parent nodes.
  3. Hidden Markov Tree (HMT) Inference: The tree is modeled as a graphical structure where the actual truth values are hidden variables, and the LLM's raw confidence scores are observed (but noisy) variables.
An example of a belief tree where a false claim about water's freezing point is identified through logical contradictions with supporting premises.

Probabilistic Inference via Hidden Markov Trees

The core innovation of BTPROP is treating the LLM as a "noisy sensor." By modeling the belief tree as a Hidden Markov Tree, the system can use an upward-downward belief propagation algorithm to calculate the posterior probability of the root statement's truth.

The Hidden Markov Tree (HMT) model used for belief propagation, mapping hidden truth values to observed LLM confidence scores.

In this model, if a statement has high initial confidence but is contradicted by several high-confidence "children" (supporting facts or premises), the system mathematically lowers the probability that the root is true. This global reasoning allows the framework to correct for local miscalibrations in the LLM's output.

Experimental Results

The framework was evaluated on three major benchmarks: Wikibio-GPT3, FELM-Science, and FactCheckGPT. Key findings include:

  • Accuracy Gains: BTPROP outperformed state-of-the-art baselines like SelfCheckGPT and Chain-of-Thought (CoT) by 3% to 9% in AUROC and AUC-PR metrics.
  • Model Agnostic: The method provided consistent improvements across various backbones, including GPT-3.5-Turbo and Llama-3-8B.
  • Efficiency: BTPROP reaches a performance plateau faster than traditional sampling-based methods, offering a higher reliability ceiling for a given amount of computation.

Insights and Future Directions

A critical insight from the study is that "Statement Correction"—forcing the model to offer alternative versions of a claim—is the most effective strategy for revealing internal uncertainty. By forcing the model to generate a logical "neighborhood," inconsistencies that were hidden in a single response become visible.

While highly effective, the method's reliance on multiple LLM queries and an external NLI model introduces latency and potential error propagation. Future work aims to develop "selective expansion" mechanisms that only grow the belief tree for nodes where the model's uncertainty is highest, optimizing the trade-off between accuracy and computational cost.

Summary updated

BibTeX
@inproceedings{hou2025probabilistic,
  author = {Bairu Hou and Yang Zhang and Jacob Andreas and Shiyu Chang},
  title = {{A Probabilistic Framework for LLM Hallucination Detection via Belief Tree Propagation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.158},
}
Figure