arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05042cs.LGcs.CLcs.SC
收藏

上下文图形推理

In-Context Graphical Inference

Department of Computer Science, University of Oxford(计算机科学系,牛津大学);FLock.io

Zehua Cheng, Wei Dai, Jiahao Sun

AI总结:

提出一种自回归图Transformer(ICG-I),通过模拟变量消除并利用张量列压缩和加权共形预测,实现离散图形模型中可扩展且校准的边缘推理,在标准实例和受挫自旋玻璃上达到最先进性能。

摘要:

离散图形模型中的边缘推理迫使在精确性和可扩展性之间做出选择:精确算法对于高树宽图是难以处理的,而迭代近似(信念传播、变分方法)在受挫拓扑上牺牲了收敛保证。我们认为这种二分法源于归纳偏置不匹配:迭代方法放弃了使精确推理正确的顺序消除结构。我们引入了上下文图形推理(ICG-I),一种自回归图Transformer,通过模拟变量消除并使用学习的张量列压缩中间因子来恢复这种结构,同时结合Dirichlet输出层和加权共形预测,在拓扑偏移下提供校准的、无分布的覆盖保证。我们证明了TT压缩误差在自回归链中最多线性传播,Dirichlet-Multinomial损失是适当的评分规则,并且WCP在估计密度比下保持覆盖且退化可量化。我们进行了大量实验来评估ICG-I,并在所有基准测试中取得了最先进的性能。ICG-I将标准实例上的MAE从0.041(最佳基线)降低到0.020,并在N=500的受挫自旋玻璃上达到0.048,而BP完全发散。

英文摘要:

Marginal inference in discrete graphical models forces a choice between exactness and scalability: exact algorithms are intractable for high-treewidth graphs, while iterative approximations (Belief Propagation, variational methods) sacrifice convergence guarantees on frustrated topologies. We argue that this dichotomy stems from a mismatched inductive bias: iterative methods abandon the sequential elimination structure that makes exact inference correct. We introduce In-Context Graphical Inference (ICG-I), an autoregressive Graph Transformer that restores this structure by mimicking Variable Elimination with learned, Tensor- Train-compressed intermediate factors, paired with a Dirichlet output layer and Weighted Conformal Prediction for calibrated, distribution-free coverage guarantees under topological shift. We prove that TT compression errors propagate at most lincarly through the autoregressive chain, that the Dirichlet-Multinomial loss is a proper scoring rule, and that WCP maintains coverage with a quantifiable degradation under estimated density ratios. We conducted intensive experiments to evaluate ICG-I and achieved state-of-the-art performance across all benchmarks. ICG-I reduces MAE from 0.041 (best baseline) to 0.020 on standard instances and achieves 0.048 on N=500 frustrated spin glasses where BP diverges entirely.

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

↑