RefineStat: 高效探索概率程序合成
RefineStat: Efficient Exploration for Probabilistic Program Synthesis
AI总结:
RefineStat通过引入语言模型驱动框架,在概率程序合成中强制语义约束并应用诊断感知细化,提升生成程序的语法正确性和统计可靠性。
摘要:
概率编程提供了一个强大的框架来建模不确定性,但在此领域中的统计模型发现需要在严格的领域特定约束下导航一个巨大的搜索空间。当小型语言模型被要求生成概率程序时,它们经常产生既有语法错误又有语义错误的输出,例如有缺陷的推断构造。受概率程序员的领域专业知识和调试策略的启发,我们引入了RefineStat,这是一种语言模型驱动的框架,它通过强制语义约束确保合成的程序包含有效的分布和正确形式的参数,然后在可靠性检查失败时通过重新采样先验或似然组件进行诊断感知的细化。我们在多个概率编程代码生成任务上评估了RefineStat,使用较小的语言模型(SLMs),发现它生成的程序在语法上是正确的,并且在统计上是可靠的,经常与闭源大语言模型(如OpenAI o3)相当或更优。
英文摘要:
Probabilistic programming offers a powerful framework for modeling uncertainty, yet statistical model discovery in this domain entails navigating an immense search space under strict domain-specific constraints. When small language models are tasked with generating probabilistic programs, they frequently produce outputs that suffer from both syntactic and semantic errors, such as flawed inference constructs. Motivated by probabilistic programmers' domain expertise and debugging strategies, we introduce RefineStat, a language model--driven framework that enforces semantic constraints ensuring synthesized programs contain valid distributions and well-formed parameters, and then applies diagnostic-aware refinement by resampling prior or likelihood components whenever reliability checks fail. We evaluate RefineStat on multiple probabilistic-programming code-generation tasks using smaller language models (SLMs) and find that it produces programs that are both syntactically sound and statistically reliable, often matching or surpassing those from closed-source large language models (e.g., OpenAI o3).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。