跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2302.13051 (cs)
[提交于 2023年2月25日]

标题:Suspension Analysis and Selective Continuation-Passing Style for Universal Probabilistic Programming Languages

作者:Daniel Lundén, Lars Hummelgren, Jan Kudlicka, Oscar Eriksson, David Broman
查看论文《Suspension Analysis and Selective Continuation-Passing Style for Universal Probabilistic Programming Languages》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Universal probabilistic programming languages (PPLs) make it relatively easy to encode and automatically solve statistical inference problems. To solve inference problems, PPL implementations often apply Monte Carlo inference algorithms that rely on execution suspension. State-of-the-art solutions enable execution suspension either through (i) continuation-passing style (CPS) transformations or (ii) efficient, but comparatively complex, low-level solutions that are often not available in high-level languages. CPS transformations introduce overhead due to unnecessary closure allocations -- a problem the PPL community has generally overlooked. To reduce overhead, we develop a new efficient selective CPS approach for PPLs. Specifically, we design a novel static suspension analysis technique that determines parts of programs that require suspension, given a particular inference algorithm. The analysis allows selectively CPS transforming the program only where necessary. We formally prove the correctness of the analysis and implement the analysis and transformation in the Miking CorePPL compiler. We evaluate the implementation for a large number of Monte Carlo inference algorithms on real-world models from phylogenetics, epidemiology, and topic modeling. The evaluation results demonstrate significant improvements across all models and inference algorithms.
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2302.13051 [cs.PL]
  (或者 arXiv:2302.13051v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2302.13051
期刊参考: Programming Languages and Systems. ESOP 2024. Lecture Notes in Computer Science, volume 14577
相关 DOI: https://doi.org/10.1007/978-3-031-57267-8_12

提交历史

来自:Daniel Lundén
[v1] 2023年2月25日 星期六 10:32:01 UTC
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2023-02
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站