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

用于高效N:M稀疏训练的双向掩码

Bi-directional Masks for Efficient N:M Sparse Training

Xiamen University(厦门大学);Tencent Youtu Lab(腾讯优图实验室);Pengcheng Lab(鹏城实验室)

Yuxin Zhang, Yiting Luo, Mingbao Lin, Yunshan Zhong, Jingjing Xie, Fei Chao, Rongrong Ji

摘要:

我们专注于解决N:M细粒度稀疏性的训练效率的密集反向传播问题,该稀疏性最多保留M个连续权重中的N个,并实现由N:M稀疏张量核心支持的实际加速。因此,我们提出了一种新的双向掩码方法(Bi-Mask),其两个主要创新在于:1)在前向和后向传播的两个方向上分离稀疏掩码以获得训练加速。它解开了前向和后向权重稀疏性,并克服了非常密集的梯度计算。2)一种有效的权值行置换方法来保持性能。它在向后选择具有最符合条件的N:M权重块的置换候选,以最小化传统单向掩码和我们的双向掩码之间的梯度差距。与现有的单向方案,适用于转置掩模,使向后加速相比,我们的双掩模实验证明是更优越的性能。此外,我们的Bi-Mask的性能与无法实现向后加速的方法相当,甚至更好。本文的项目可以在\url{https://github.com/zyxxmu/Bi-Mask}上找到。

英文摘要:

We focus on addressing the dense backward propagation issue for training efficiency of N:M fine-grained sparsity that preserves at most N out of M consecutive weights and achieves practical speedups supported by the N:M sparse tensor core. Therefore, we present a novel method of Bi-directional Masks (Bi-Mask) with its two central innovations in: 1) Separate sparse masks in the two directions of forward and backward propagation to obtain training acceleration. It disentangles the forward and backward weight sparsity and overcomes the very dense gradient computation. 2) An efficient weight row permutation method to maintain performance. It picks up the permutation candidate with the most eligible N:M weight blocks in the backward to minimize the gradient gap between traditional uni-directional masks and our bi-directional masks. Compared with existing uni-directional scenario that applies a transposable mask and enables backward acceleration, our Bi-Mask is experimentally demonstrated to be more superior in performance. Also, our Bi-Mask performs on par with or even better than methods that fail to achieve backward acceleration. Project of this paper is available at \url{https://github.com/zyxxmu/Bi-Mask}.

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

↑