arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.00766cs.LG
收藏

扩展可处理概率电路:系统视角

Scaling Tractable Probabilistic Circuits: A Systems Perspective

University of California, Los Angeles(加州大学洛杉矶分校)

Anji Liu, Kareem Ahmed, Guy Van den Broeck

AI总结:

本文提出PyJuice,一种针对概率电路的通用GPU实现设计,通过紧凑表示和基于块的并行化,显著提升训练速度并降低内存消耗,支持更大规模模型训练,并在图像和语言数据集上建立新基线。

摘要:

概率电路(Probabilistic Circuits, PCs)是可处理深度生成模型的通用框架,支持对其学习到的分布进行精确且高效的概率推断。近期在建模和训练方面的进展使其能够应用于复杂的现实任务。然而,现有PC实现的时间和内存低效性阻碍了进一步的扩展。本文提出了PyJuice,一种针对PC的通用GPU实现设计,在多个方面改进了先前的工作。具体而言,PyJuice在训练大规模PC时比现有系统(包括最新的系统)快1-2个数量级。此外,PyJuice消耗的GPU内存减少2-5倍,这使我们能够训练更大的模型。我们系统的核心是一个编译过程,将PC转换为适合高效基于块并行化的紧凑表示,这显著减少了IO,并使得利用现代GPU中可用的Tensor Cores成为可能。在实验中,PyJuice可用于改进在图像(例如ImageNet32)和语言(例如WikiText、CommonGen)数据集上训练的最先进PC。我们进一步通过对现有的PC结构进行基准测试,但使用更大的规模和更多的训练周期,在自然图像和语言数据集上建立了一组新的基线,以期激励未来的研究。代码可在https://github.com/Tractables/pyjuice获取。

英文摘要:

Probabilistic Circuits (PCs) are a general framework for tractable deep generative models, which support exact and efficient probabilistic inference on their learned distributions. Recent modeling and training advancements have enabled their application to complex real-world tasks. However, the time and memory inefficiency of existing PC implementations hinders further scaling up. This paper proposes PyJuice, a general GPU implementation design for PCs that improves prior art in several regards. Specifically, PyJuice is 1-2 orders of magnitude faster than existing systems (including very recent ones) at training large-scale PCs. Moreover, PyJuice consumes 2-5x less GPU memory, which enables us to train larger models. At the core of our system is a compilation process that converts a PC into a compact representation amenable to efficient block-based parallelization, which significantly reduces IO and makes it possible to leverage Tensor Cores available in modern GPUs. Empirically, PyJuice can be used to improve state-of-the-art PCs trained on image (e.g., ImageNet32) and language (e.g., WikiText, CommonGen) datasets. We further establish a new set of baselines on natural image and language datasets by benchmarking existing PC structures but with much larger sizes and more training epochs, with the hope of incentivizing future research. Code is available at https://github.com/Tractables/pyjuice.

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

↑