arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.06557cs.AIcs.IR
收藏

量化布尔贝叶斯网络:一种逻辑图形模型的理论与实验

The Quantified Boolean Bayesian Network: Theory and Experiments with a Logical Graphical Model

Gregory Coppola

AI总结:

本文提出量化布尔贝叶斯网络(QBBN),统一逻辑与概率推理,以解决大语言模型幻觉问题,通过键值一阶演算配置无界布尔变量网络,并实验验证环状置信传播推理的可靠收敛与高效性。

摘要:

本文介绍了量化布尔贝叶斯网络(QBBN),它为逻辑推理和概率推理提供了一个统一的视角。QBBN旨在解决大型语言模型(LLM)中的一个核心问题,该模型在信息检索领域已变得极为流行,即LLM会产生幻觉。贝叶斯网络由于其构造方式,不可能产生幻觉,因为它只能返回能够解释的答案。我们展示了如何配置一个包含无界数量布尔变量的贝叶斯网络,以表示人类语言背后的逻辑推理。为此,我们创建了一阶演算的键值版本,并证明了其一致性和完备性。我们表明,该模型在全观测数据上的训练是平凡的,但推理是非平凡的。贝叶斯网络中的精确推理是不可处理的(即对于N个变量,复杂度为Ω(2^N))。对于推理,我们研究了环状置信传播(LBP)的使用,该方法不保证收敛,但在实践中通常被证明会收敛。我们的实验表明,LBP确实非常可靠地收敛,并且我们的分析显示,一轮LBP需要时间O(N2^n),其中N限制所考虑的变量数量,n限制任何因子传入连接的数量,并且可能有进一步的改进空间。我们的网络专门设计为在布尔代数中的AND和OR门之间交替,这与逻辑推理联系更紧密,使得我们网络的扩展版本能够有完备性证明,并且允许推理遵循特定但充分的路径,这些路径被证明是快速的。

英文摘要:

This paper introduces the Quantified Boolean Bayesian Network (QBBN), which provides a unified view of logical and probabilistic reasoning. The QBBN is meant to address a central problem with the Large Language Model (LLM), which has become extremely popular in Information Retrieval, which is that the LLM hallucinates. A Bayesian Network, by construction, cannot hallucinate, because it can only return answers that it can explain. We show how a Bayesian Network over an unbounded number of boolean variables can be configured to represent the logical reasoning underlying human language. We do this by creating a key-value version of the First-Order Calculus, for which we can prove consistency and completeness. We show that the model is trivially trained over fully observed data, but that inference is non-trivial. Exact inference in a Bayesian Network is intractable (i.e. $Ω(2^N)$ for $N$ variables). For inference, we investigate the use of Loopy Belief Propagation (LBP), which is not guaranteed to converge, but which has been shown to often converge in practice. Our experiments show that LBP indeed does converge very reliably, and our analysis shows that a round of LBP takes time $O(N2^n)$, where $N$ bounds the number of variables considered, and $n$ bounds the number of incoming connections to any factor, and further improvements may be possible. Our network is specifically designed to alternate between AND and OR gates in a Boolean Algebra, which connects more closely to logical reasoning, allowing a completeness proof for an expanded version of our network, and also allows inference to follow specific but adequate pathways, that turn out to be fast.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑