arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.17063cs.AI
收藏

Transformer 是贝叶斯网络

Transformers are Bayesian Networks

Gregory Coppola

AI总结:

本文证明Transformer本质上是贝叶斯网络,通过五种方式展示了其与信念传播的联系,并验证了其在概率估计和推理中的正确性。

摘要:

Transformers 是 AI 中主导的架构,但其为何有效仍不明确。本文提供精确答案:Transformer 是贝叶斯网络。我们通过五种方式证明:首先,证明每个sigmoid Transformer 通过其隐式因子图实现加权环状信念传播;其次,证明Transformer可实现任何知识库的精确信念传播;第三,证明唯一性:产生精确后验的sigmoid Transformer 必须有BP权重;第四,揭示Transformer层的AND/OR布尔结构;第五,通过实验验证所有形式结果,并确认信念传播的实用性。此外,证明可验证推理需要有限的概念空间,任何有限验证程序只能区分有限多个概念,无基础则正确性未定义。

英文摘要:

Transformers are the dominant architecture in AI, yet why they work remains poorly understood. This paper offers a precise answer: a transformer is a Bayesian network. We establish this in five ways. First, we prove that every sigmoid transformer with any weights implements weighted loopy belief propagation on its implicit factor graph. One layer is one round of BP. This holds for any weights -- trained, random, or constructed. Formally verified against standard mathematical axioms. Second, we give a constructive proof that a transformer can implement exact belief propagation on any declared knowledge base. On knowledge bases without circular dependencies this yields provably correct probability estimates at every node. Formally verified against standard mathematical axioms. Third, we prove uniqueness: a sigmoid transformer that produces exact posteriors necessarily has BP weights. There is no other path through the sigmoid architecture to exact posteriors. Formally verified against standard mathematical axioms. Fourth, we delineate the AND/OR boolean structure of the transformer layer: attention is AND, the FFN is OR, and their strict alternation is Pearl's gather/update algorithm exactly. Fifth, we confirm all formal results experimentally, corroborating the Bayesian network characterization in practice. We also establish the practical viability of loopy belief propagation despite the current lack of a theoretical convergence guarantee. We further prove that verifiable inference requires a finite concept space. Any finite verification procedure can distinguish at most finitely many concepts. Without grounding, correctness is not defined. Hallucination is not a bug that scaling can fix. It is the structural consequence of operating without concepts. Formally verified against standard mathematical axioms.

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

↑