SIMPL: A DSL for Automatic Specialization of Inference Algorithms. Shah, R., Torlak, E., & Bodik, R. arXiv.org, cs.PL, 2016. abstract bibtex Inference algorithms in probabilistic programming languages (PPLs) can be thought of as interpreters, since an inference algorithm traverses a model given evidence to answer a query. As with interpreters, we can improve the efficiency of inference algorithms by compiling them once the model, evidence and query are known. We present SIMPL, a domain specific language for inference algorithms, which uses this idea in order to automatically specialize annotated inference algorithms. Due to the approach of specialization, unlike a traditional compiler, with SIMPL new inference algorithms can be added easily, and still be optimized using domain-specific information. We evaluate SIMPL and show that partial evaluation gives a 2-6x speedup, caching provides an additional 1-1.5x speedup, and generating C code yields an additional 13-20x speedup, for an overall speedup of 30-150x for several inference algorithms and models.
@Article{Shah2016,
author = {Shah, Rohin and Torlak, Emina and Bodik, Rastislav},
title = {SIMPL: A DSL for Automatic Specialization of Inference Algorithms},
journal = {arXiv.org},
volume = {cs.PL},
number = {},
pages = {},
year = {2016},
abstract = {Inference algorithms in probabilistic programming languages (PPLs) can be thought of as interpreters, since an inference algorithm traverses a model given evidence to answer a query. As with interpreters, we can improve the efficiency of inference algorithms by compiling them once the model, evidence and query are known. We present SIMPL, a domain specific language for inference algorithms, which uses this idea in order to automatically specialize annotated inference algorithms. Due to the approach of specialization, unlike a traditional compiler, with SIMPL new inference algorithms can be added easily, and still be optimized using domain-specific information. We evaluate SIMPL and show that partial evaluation gives a 2-6x speedup, caching provides an additional 1-1.5x speedup, and generating C code yields an additional 13-20x speedup, for an overall speedup of 30-150x for several inference algorithms and models.},
location = {},
keywords = {}}
Downloads: 0
{"_id":"xtjxv7RvfmaiJACXL","bibbaseid":"shah-torlak-bodik-simpladslforautomaticspecializationofinferencealgorithms-2016","authorIDs":[],"author_short":["Shah, R.","Torlak, E.","Bodik, R."],"bibdata":{"bibtype":"article","type":"article","author":[{"propositions":[],"lastnames":["Shah"],"firstnames":["Rohin"],"suffixes":[]},{"propositions":[],"lastnames":["Torlak"],"firstnames":["Emina"],"suffixes":[]},{"propositions":[],"lastnames":["Bodik"],"firstnames":["Rastislav"],"suffixes":[]}],"title":"SIMPL: A DSL for Automatic Specialization of Inference Algorithms","journal":"arXiv.org","volume":"cs.PL","number":"","pages":"","year":"2016","abstract":"Inference algorithms in probabilistic programming languages (PPLs) can be thought of as interpreters, since an inference algorithm traverses a model given evidence to answer a query. As with interpreters, we can improve the efficiency of inference algorithms by compiling them once the model, evidence and query are known. We present SIMPL, a domain specific language for inference algorithms, which uses this idea in order to automatically specialize annotated inference algorithms. Due to the approach of specialization, unlike a traditional compiler, with SIMPL new inference algorithms can be added easily, and still be optimized using domain-specific information. We evaluate SIMPL and show that partial evaluation gives a 2-6x speedup, caching provides an additional 1-1.5x speedup, and generating C code yields an additional 13-20x speedup, for an overall speedup of 30-150x for several inference algorithms and models.","location":"","keywords":"","bibtex":"@Article{Shah2016,\nauthor = {Shah, Rohin and Torlak, Emina and Bodik, Rastislav}, \ntitle = {SIMPL: A DSL for Automatic Specialization of Inference Algorithms}, \njournal = {arXiv.org}, \nvolume = {cs.PL}, \nnumber = {}, \npages = {}, \nyear = {2016}, \nabstract = {Inference algorithms in probabilistic programming languages (PPLs) can be thought of as interpreters, since an inference algorithm traverses a model given evidence to answer a query. As with interpreters, we can improve the efficiency of inference algorithms by compiling them once the model, evidence and query are known. We present SIMPL, a domain specific language for inference algorithms, which uses this idea in order to automatically specialize annotated inference algorithms. Due to the approach of specialization, unlike a traditional compiler, with SIMPL new inference algorithms can be added easily, and still be optimized using domain-specific information. We evaluate SIMPL and show that partial evaluation gives a 2-6x speedup, caching provides an additional 1-1.5x speedup, and generating C code yields an additional 13-20x speedup, for an overall speedup of 30-150x for several inference algorithms and models.}, \nlocation = {}, \nkeywords = {}}\n\n\n","author_short":["Shah, R.","Torlak, E.","Bodik, R."],"key":"Shah2016","id":"Shah2016","bibbaseid":"shah-torlak-bodik-simpladslforautomaticspecializationofinferencealgorithms-2016","role":"author","urls":{},"downloads":0},"bibtype":"article","biburl":"https://gist.githubusercontent.com/stuhlmueller/a37ef2ef4f378ebcb73d249fe0f8377a/raw/6f96f6f779501bd9482896af3e4db4de88c35079/references.bib","creationDate":"2020-01-27T02:13:34.144Z","downloads":0,"keywords":[],"search_terms":["simpl","dsl","automatic","specialization","inference","algorithms","shah","torlak","bodik"],"title":"SIMPL: A DSL for Automatic Specialization of Inference Algorithms","year":2016,"dataSources":["hEoKh4ygEAWbAZ5iy"]}