arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.30728cs.LGcs.DC
收藏

通过无损压缩减少机器学习中的GPU内存瓶颈——扩展版

Reducing the GPU Memory Bottleneck with Lossless Compression for ML -- Extended

University of Washington(华盛顿大学)

Aditya K Kamath, Arvind Krishnamurthy, Marco Canini, Simon Peter

AI总结:

提出无损压缩算法IBP,通过识别和消除张量组中的不变位,利用GPU优化的解压缩和异步PCIe传输,显著减少数据传输时间,加速GNN训练、DLRM嵌入查找和LLM推理。

摘要:

机器学习(ML)训练和推理经常处理远超GPU内存容量的数据集,迫使它们依赖PCIe进行按需张量传输,导致关键的传输瓶颈。有损压缩已被提出以缓解瓶颈,但会引入依赖工作负载的精度损失,使得在现有ML部署中使用变得复杂甚至不可行。我们探索无损压缩作为替代方案,以避免这种部署复杂性。我们确定了无损压缩可以集成到ML流水线中的位置,同时最小化对GPU执行的干扰。基于我们的发现,我们引入了不变位打包(IBP),一种新颖的无损压缩算法,旨在最小化ML的数据传输时间。IBP识别并消除张量组中的不变位,通过利用warp并行性、低开销位操作和异步PCIe传输的GPU优化解压缩来提高吞吐量。我们提供易于使用的API,通过为GNN训练以及DLRM和LLM推理框架添加IBP支持来展示它们。IBP平均实现了74%更快的GNN训练、180%更快的DLRM嵌入查找和24%更快的LLM推理。

英文摘要:

Machine learning (ML) training and inference often process data sets far exceeding GPU memory capacity, forcing them to rely on PCIe for on-demand tensor transfers, causing critical transfer bottlenecks. Lossy compression has been proposed to relieve bottlenecks but introduces workload-dependent accuracy loss, making it complex or even prohibitive to use in existing ML deployments. We explore lossless compression as an alternative that avoids this deployment complexity. We identify where lossless compression can be integrated into ML pipelines while minimizing interference with GPU execution. Based on our findings, we introduce Invariant Bit Packing (IBP), a novel lossless compression algorithm designed to minimize data transfer time for ML. IBP identifies and eliminates invariant bits across groups of tensors, improving throughput through GPU-optimized decompression that leverages warp parallelism, low-overhead bit operations, and asynchronous PCIe transfers. We provide easy-to-use APIs, showcasing them by adding IBP support to GNN training, as well as DLRM and LLM inference frameworks. IBP achieves, on average, 74% faster GNN training, 180% faster DLRM embedding lookup, and 24% faster LLM inference.

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

↑