arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.15439cs.LO
收藏

线性Lambda演算中的变量消元作为重写

Variable Elimination as Rewriting in a Linear Lambda Calculus

Thomas Ehrhard, Claudia Faggian, Michele Pagani

AI总结:

本文在理想化概率函数式语言(线性简单类型λ-演算)中,将经典精确推理算法变量消元(VE)形式化为项重写过程,通过交换和嵌套let-in表达式将全局定义转为局部定义,并关键利用线性类型,以理解VE作为程序上的算法。

摘要:

变量消元(Variable Elimination, VE)是一种用于概率图模型(如贝叶斯网络)的经典精确推理算法,它计算模型中随机变量子集的边际分布。我们的目标是将变量消元理解为一种作用于程序上的算法,这里程序用理想化的概率函数式语言表达——一个线性简单类型λ-演算足以满足我们的目的。具体而言,我们将变量消元表达为一个项重写过程,该过程通过交换和嵌套let-in表达式,将变量的全局定义转换为局部定义。我们以本质的方式利用了线性类型。

英文摘要:

Variable Elimination (VE) is a classical exact inference algorithm for probabilistic graphical models such as Bayesian Networks, computing the marginal distribution of a subset of the random variables in the model. Our goal is to understand Variable Elimination as an algorithm acting on programs, here expressed in an idealized probabilistic functional language -- a linear simply-typed $λ$-calculus suffices for our purpose. Precisely, we express VE as a term rewriting process, which transforms a global definition of a variable into a local definition, by swapping and nesting let-in expressions. We exploit in an essential way linear types.

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

↑