arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.03704cs.LGstat.ML
收藏

SPFlow:一个使用和积网络进行深度概率学习的简单可扩展库

SPFlow: An Easy and Extensible Library for Deep Probabilistic Learning using Sum-Product Networks

TU Darmstadt(达姆施塔特工业大学);Max-Planck-Institute(马克斯-普朗克研究所);University of Cambridge(剑桥大学);University of Waterloo(滑铁卢大学);University of Bari “Aldo Moro”(巴里大学“阿尔多·莫罗”)

Alejandro Molina, Antonio Vergari, Karl Stelzner, Robert Peharz, Pranav Subramani, Nicola Di Mauro, Pascal Poupart, Kristian Kersting

摘要:

我们介绍SPFlow,这是一个开源Python库,为称为和积网络(SPN)的深度和易处理的概率模型提供了一个简单的推理,学习和操作例程接口。该库允许人们从数据和通过域特定语言(DSL)快速创建SPN。它有效地实现了几个概率推理例程,如计算边际,条件和(近似)最可能的解释(MPE)以及采样以及用于序列化,绘制和结构统计的工具。此外,在文献中提出的许多学习SPN的结构和参数的算法在SPFlow中很容易获得。此外,SPFlow具有极强的可扩展性和可定制性,允许用户通过将自定义代码注入到轻量级的面向函数的API框架中来快速提取新的推理和学习例程。这在SPFlow中是通过保持图结构的内部Python表示来实现的,该表示还可以将SPN实际编译为TensorFlow图、C、CUDA或FPGA自定义代码,从而显著加快计算速度。

英文摘要:

We introduce SPFlow, an open-source Python library providing a simple interface to inference, learning and manipulation routines for deep and tractable probabilistic models called Sum-Product Networks (SPNs). The library allows one to quickly create SPNs both from data and through a domain specific language (DSL). It efficiently implements several probabilistic inference routines like computing marginals, conditionals and (approximate) most probable explanations (MPEs) along with sampling as well as utilities for serializing, plotting and structure statistics on an SPN. Moreover, many of the algorithms proposed in the literature to learn the structure and parameters of SPNs are readily available in SPFlow. Furthermore, SPFlow is extremely extensible and customizable, allowing users to promptly distill new inference and learning routines by injecting custom code into a lightweight functional-oriented API framework. This is achieved in SPFlow by keeping an internal Python representation of the graph structure that also enables practical compilation of an SPN into a TensorFlow graph, C, CUDA or FPGA custom code, significantly speeding-up computations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑