Statheros: Compiler for Efficient Low-Precision Probabilistic Programming
Statheros: Compiler for Efficient Low-Precision Probabilistic Programming
复制标题
DOI:
10.1109/dac18074.2021.9586276
复制
发表时间:
2021-12
期刊:
影响因子:
--
通讯作者:
Jacob S. Laurel;Rem Yang;Atharva Sehgal;Shubham Ugare;Sasa Misailovic
中科院分区:
文献类型:
--
作者:
Jacob S. Laurel;Rem Yang;Atharva Sehgal;Shubham Ugare;Sasa Misailovic
As Edge and IoT computing devices process noisy data or make decisions in uncertain environments, they require frameworks for inexpensive, yet accurate probabilistic inference. Probabilistic programming has emerged as a powerful way for developers to write high-level programs, while abstracting away the implementation details of inference. However, the existing algorithms are slow and often assumed to require precise calculations. We present Statheros, the first compiler for low-level, fixed-point approximation of probabilistic programming. Statheros compiles programs to fixed-point inference procedures and is able to determine the optimal fixed-point type to use. We evaluate Statheros on 13 benchmarks and three embedded platforms. The results show that Statheros-generated code is 11. 5x (Arduino), 3. 8x (PocketBeagle), and 2. 2x (Raspberry Pi) faster than single-precision floating-point computation, with minimal accuracy loss.