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

编码深度学习:框架与算法

Coded Deep Learning: Framework and Algorithm

University of Waterloo(滑铁卢大学)

En-hui Yang, Shayan Mohajer Hamidi

AI总结:

针对深度学习依赖大模型、训练与推理复杂度高的问题,提出融合信息论编码的CDL框架,通过量化权重激活、熵约束等实现压缩与降复杂度,其变体R-CDL进一步优化精度压缩权衡,二者性能优于现有DNN压缩最优算法。

摘要:

深度学习(DL)的成功往往依赖大模型以及训练和训练后推理阶段的高复杂度,这阻碍了资源受限场景下的训练。为缓解这些问题,本文提出了名为“编码深度学习(coded deep learning, CDL)”的新框架,将信息论编码概念融入深度学习的内部运作机制,以大幅压缩模型权重和激活值,降低训练与训练后推理阶段的计算复杂度,并实现高效的模型/数据并行。具体而言,在CDL框架中:(i)我们首先提出了一种对模型权重和激活值进行量化的新型概率方法,以及其软可微变体,该变体为训练期间的梯度计算提供了解析公式;(ii)训练期间的前向和反向传播均基于量化后的权重和激活值执行,消除了大部分浮点运算并降低了训练复杂度;(iii)训练期间对权重和激活值均施加熵约束,使其在整个训练过程中具备信息论意义上的可压缩性,从而降低模型/数据并行中的通信成本;(iv)CDL训练得到的模型默认采用量化格式,且量化权重具备可压缩性,降低了训练后推理和存储复杂度。此外,本文还提出了CDL的一种变体,即松弛CDL(relaxed CDL, R-CDL),该变体虽需在训练中使用全精度,但保留了CDL的其他优势特性,可进一步改善验证精度与压缩率之间的权衡。大量实验结果表明,CDL和R-CDL的性能优于现有文献中DNN压缩领域的最优算法。

英文摘要:

The success of deep learning (DL) is often achieved with large models and high complexity during both training and post-training inferences, hindering training in resource-limited settings. To alleviate these issues, this paper introduces a new framework dubbed ``coded deep learning'' (CDL), which integrates information-theoretic coding concepts into the inner workings of DL, to significantly compress model weights and activations, reduce computational complexity at both training and post-training inference stages, and enable efficient model/data parallelism. Specifically, within CDL, (i) we first propose a novel probabilistic method for quantizing both model weights and activations, and its soft differentiable variant which offers an analytic formula for gradient calculation during training; (ii) both the forward and backward passes during training are executed over quantized weights and activations, eliminating most floating-point operations and reducing training complexity; (iii) during training, both weights and activations are entropy constrained so that they are compressible in an information-theoretic sense throughout training, thus reducing communication costs in model/data parallelism; and (iv) the trained model in CDL is by default in a quantized format with compressible quantized weights, reducing post-training inference and storage complexity. Additionally, a variant of CDL, namely relaxed CDL (R-CDL), is presented to further improve the trade-off between validation accuracy and compression though requiring full precision in training with other advantageous features of CDL intact. Extensive empirical results show that CDL and R-CDL outperform the state-of-the-art algorithms in DNN compression in the literature.

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

↑