Conformal Language Model Reasoning with Coherent Factuality
Maxon Rubin-Toles, Maya Gambhir, Keshav Ramji, Aaron Roth, Surbhi Goel
TL;DR
This work tackles the challenge of ensuring factual and coherent reasoning in language model outputs. It introduces coherent factuality, a notion that enforces both accuracy and proper substantiation across a reasoning chain using deducibility graphs, and couples it with a subgraph-focused split conformal prediction protocol to guarantee user-specified coverage. By constructing ideal or approximate deducibility graphs and applying graph-aware scoring, the approach achieves high factuality while retaining a large fraction of the original claims on math and verbal reasoning benchmarks like $MATH$ and $FELM$. The empirical results demonstrate calibrated coherent factuality, the necessity of graph proxies for coherence, and benefits from bootstrapping coherent inputs, illustrating a viable path toward more reliable reasoning in large language models. The methodology has potential implications for a range of reasoning-intensive tasks and domains, including code generation and beyond.
Abstract
Language models are increasingly being used in important decision pipelines, so ensuring the correctness of their outputs is crucial. Recent work has proposed evaluating the "factuality" of claims decomposed from a language model generation and applying conformal prediction techniques to filter out those claims that are not factual. This can be effective for tasks such as information retrieval, where constituent claims may be evaluated in isolation for factuality, but is not appropriate for reasoning tasks, as steps of a logical argument can be evaluated for correctness only within the context of the claims that precede them. To capture this, we define "coherent factuality" and develop a conformal-prediction-based method to guarantee coherent factuality for language model outputs. Our approach applies split conformal prediction to subgraphs within a "deducibility" graph" that represents the steps of a reasoning problem. We evaluate our method on mathematical reasoning problems from the MATH and FELM datasets and find that our algorithm consistently produces correct and substantiated orderings of claims, achieving coherent factuality across target coverage levels. Moreover, we achieve 90% factuality on our stricter definition while retaining 80% or more of the original claims, highlighting the utility of our deducibility-graph-guided approach.
