Bean Machine: A Declarative Probabilistic Programming Language For Efficient Programmable Inference

被引:0
|
作者
Tehrani, Nazanin [1 ]
Arora, Nimar S. [1 ]
Li, Yucen Lily [1 ]
Shah, Kinjal Divesh [1 ]
Noursi, David [1 ]
Tingley, Michael [1 ]
Torabi, Narjes [1 ]
Masouleh, Sepehr [1 ]
Lippert, Eric [1 ]
Meijer, Erik [1 ]
机构
[1] Facebook Inc, Menlo Pk, CA 94025 USA
关键词
Probabilistic Programming; Programmable Inference; Declarative Structure;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
A number of imperative Probabilistic Programming Languages (PPLs) have been recently proposed, but the imperative style choice makes it very hard to deduce the dependence structure between the latent variables, which can also change from iteration to iteration. We propose a new declarative style PPL, Bean Machine, and demonstrate that in this new language, the dynamic dependence structure is readily available. Although we are not the first to propose a declarative PPL or to observe the advantages of knowing the dependence structure, we take the idea further by showing other inference techniques that become feasible or easier in this style. We show that it is very easy for users to program inference by composition (combining different inference techniques for different parts of the model), customization (providing a custom hand-written inference method for specific variables), and blocking (specifying blocks of random variables that should be sampled together) in a declarative language. A number of empirical results are provided where we backup these claims modulo the runtime inefficiencies of unvectorized Python. As a fringe benefit, we note that it is very easy to translate statistical models written in mathematical notation into our language.
引用
收藏
页码:485 / 496
页数:12
相关论文
共 50 条
  • [41] Pragmatic Language Interpretation as Probabilistic Inference
    Goodman, Noah D.
    Frank, Michael C.
    TRENDS IN COGNITIVE SCIENCES, 2016, 20 (11) : 818 - 829
  • [42] Probabilistic inference in machine vision systems
    Blake, Andrew
    2008 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND AUTOMATION, VOLS 1-9, 2008, : DR19 - DR19
  • [43] Probabilistic Programming Inference via Intensional Semantics
    Castellan, Simon
    Paquet, Hugo
    PROGRAMMING LANGUAGES AND SYSTEMS, ESOP 2019: 28TH EUROPEAN SYMPOSIUM ON PROGRAMMING, 2019, 11423 : 322 - 349
  • [44] Declarative Data Serving: The Future of Machine Learning Inference on the Edge
    Shaowang, Ted
    Jain, Nilesh
    Matthews, Dennis D.
    Krishnan, Sanjay
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2021, 14 (11): : 2555 - 2562
  • [45] Kind Inference for the FreeST Programming Language
    Almeida, Bernardo
    Mordido, Andreia
    Vasconcelos, Vasco T.
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2023, (378): : 1 - 13
  • [46] PUMA: A Programmable Ultra-efficient Memristor-based Accelerator for Machine Learning Inference
    Ankit, Aayush
    El Hajj, Izzat
    Chalamalasetti, Sai Rahul
    Ndu, Geoffrey
    Foltin, Martin
    Williams, R. Stanley
    Faraboschi, Paolo
    Hwu, Wen-mei
    Strachan, John Paul
    Roy, Kaushik
    Milojicic, Dejan S.
    TWENTY-FOURTH INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS (ASPLOS XXIV), 2019, : 715 - 731
  • [47] Efficient Symbolic Integration for Probabilistic Inference
    Kolb, Samuel
    Mladenov, Martin
    Sanner, Scott
    Belle, Vaishak
    Kersting, Kristian
    PROCEEDINGS OF THE TWENTY-SEVENTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2018, : 5031 - 5037
  • [48] Efficient Lifting for Online Probabilistic Inference
    Nath, Aniruddh
    Domingos, Pedro
    PROCEEDINGS OF THE TWENTY-FOURTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE (AAAI-10), 2010, : 1193 - 1198
  • [49] Efficient probabilistic inference in biochemical networks
    Le Coënt, Adrien
    Barbot, Benoît
    Pekergin, Nihal
    Computers in Biology and Medicine, 2024, 183
  • [50] A Probabilistic Programming Language for Influence Diagrams
    Prestwich, Steven D.
    Toffano, Federico
    Wilson, Nic
    SCALABLE UNCERTAINTY MANAGEMENT (SUM 2017), 2017, 10564 : 252 - 265