arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.02299cs.LGcs.CV
收藏

具有结构化稀疏性的动态稀疏训练

Dynamic Sparse Training with Structured Sparsity

University of Calgary(卡尔加里大学);Massachusetts Institute of Technology(麻省理工学院);IAIFI;Google DeepMind(谷歌DeepMind);University of Guelph(圭尔夫大学);Vector Institute for AI(矢量人工智能研究院)

Mike Lasby, Anna Golubeva, Utku Evci, Mihai Nica, Yani Ioannou

AI总结:

本文提出结构化动态稀疏训练方法 SRigL,通过恒定扇入约束学习 N:M 结构化稀疏性并结合神经元消融,在多种神经网络上实现领先的稀疏训练性能与显著的实际推理加速。

摘要:

动态稀疏训练(DST)方法在稀疏神经网络训练中取得了最先进的结果,在实现稀疏训练和推理的同时,其泛化能力可与稠密模型相媲美。尽管所得模型高度稀疏,理论上计算开销更低,但在真实硬件上利用非结构化稀疏性实现加速仍具挑战性。本文提出了一种稀疏到稀疏的 DST 方法——Structured RigL(SRigL),通过施加恒定的扇入约束来学习细粒度结构化 N:M 稀疏性的变体。基于对现有 DST 方法在高稀疏度下的实证分析,我们还采用了一种神经元消融方法,使 SRigL 能够在多种神经网络(NN)架构上实现最先进的稀疏到稀疏结构化 DST 性能。使用 90% 稀疏的线性层,我们展示了在 CPU 上在线推理实现 3.4 倍/2.5 倍的真实加速,在 GPU 上批量大小为 256 的推理实现 1.7 倍/13.0 倍的加速,分别与等效的稠密/非结构化(CSR)稀疏层相比。

英文摘要:

Dynamic Sparse Training (DST) methods achieve state-of-the-art results in sparse neural network training, matching the generalization of dense models while enabling sparse training and inference. Although the resulting models are highly sparse and theoretically less computationally expensive, achieving speedups with unstructured sparsity on real-world hardware is challenging. In this work, we propose a sparse-to-sparse DST method, Structured RigL (SRigL), to learn a variant of fine-grained structured N:M sparsity by imposing a constant fan-in constraint. Using our empirical analysis of existing DST methods at high sparsity, we additionally employ a neuron ablation method which enables SRigL to achieve state-of-the-art sparse-to-sparse structured DST performance on a variety of Neural Network (NN) architectures. Using a 90% sparse linear layer, we demonstrate a real-world acceleration of 3.4x/2.5x on CPU for online inference and 1.7x/13.0x on GPU for inference with a batch size of 256 when compared to equivalent dense/unstructured (CSR) sparse layers, respectively.

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

↑