通过编译实现不确定性上的可扩展优化
Scaling Optimization Over Uncertainty via Compilation
AI总结:
本文提出一种基于加权二元决策图和分支定界半环的编译优化策略,通过中间表示自动分解问题并剪枝次优值,并实现dappl和pineappl两种语言验证其在决策与概率推断优化中的可扩展性和灵活性。
摘要:
概率推断本质上是困难的,然而许多任务需要在推断之上进行优化,这更加困难。我们提出一种新的“先编译后优化”策略,以可扩展地求解某一类此类问题。具体而言,我们引入一种新的中间表示(IR),即由一种新颖的分支定界半环加权的二元决策图,它支持基于分支定界的可扩展优化过程。该IR通过程序结构自动分解问题,并通过一种直接的分支定界风格算法剪枝次优值以找到最优解。此外,该IR天然适合分阶段编译,允许程序员在编译过程中查询最优值,从而指导程序的进一步执行。我们通过实现两种编译到该IR的高性能语言来展示其有效性和灵活性:dappl和pineappl。dappl是一种函数式语言,用于求解最大期望效用问题,并对奖励、决策和条件约束提供一等支持。pineappl是一种命令式语言,通过分阶段执行精确概率推断,并支持嵌套边际最大后验(MMAP)优化。
英文摘要:
Probabilistic inference is fundamentally hard, yet many tasks require optimization on top of inference, which is even harder. We present a new optimization-via-compilation strategy to scalably solve a certain class of such problems. In particular, we introduce a new intermediate representation (IR), binary decision diagrams weighted by a novel notion of branch-and-bound semiring, that enables a scalable branch-and-bound based optimization procedure. This IR automatically factorizes problems through program structure and prunes suboptimal values via a straightforward branch-and-bound style algorithm to find optima. Additionally, the IR is naturally amenable to staged compilation, allowing the programmer to query for optima mid-compilation to inform further executions of the program. We showcase the effectiveness and flexibility of the IR by implementing two performant languages that both compile to it: dappl and pineappl. dappl is a functional language that solves maximum expected utility problems with first-class support for rewards, decision making, and conditioning. pineappl is an imperative language that performs exact probabilistic inference with support for nested marginal maximum a posteriori (MMAP) optimization via staging.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。