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

Sparse-IFT:稀疏等FLOP变换以最大化训练效率

Sparse-IFT: Sparse Iso-FLOP Transformations for Maximizing Training Efficiency

Cerebras Systems Inc(Cerebras系统公司)

Vithursan Thangarasa, Shreyas Saxena, Abhay Gupta, Sean Lie

AI总结:

本文提出Sparse-IFT,通过稀疏等FLOP变换在保持计算量不变的前提下提升密集模型准确率,在ImageNet和Open LLM上分别获得+3.5%和+0.9%的提升。

摘要:

近期研究聚焦于深度神经网络训练中的权重稀疏性以减少FLOPs,旨在提高效率(即相对于训练FLOPs的测试准确率)。然而,稀疏权重训练常以牺牲准确率为代价,需要延长训练计划才能达到密集模型的准确率。相比之下,我们的方法——稀疏等FLOP变换(Sparse-IFT)——利用稀疏性在保持密集模型FLOPs的同时提高准确率。通过单一超参数(即稀疏度),Sparse-IFT高效替换密集层,扩展了最优稀疏掩码的搜索空间。此外,使用Sparse-IFT模型的动态稀疏训练(DST)能有效导航这一更大的稀疏掩码-权重空间,这通过基于Ramanujan图性质的谱分析得到证实。我们的研究揭示了掩码拓扑、权重与最终性能之间的强相关性。值得注意的是,在不调整任何训练超参数的情况下,将密集层替换为Sparse-IFT带来了显著改进,例如ResNet-18在ImageNet上提升+3.5%,GPT-3 Small在Open LLM排行榜上提升+0.9%。据我们所知,这是首个通过一组易于使用的稀疏变换来利用稀疏性提升密集模型准确率的工作。代码可在 https://github.com/CerebrasResearch/Sparse-IFT 获取。

英文摘要:

Recent research has focused on weight sparsity in deep neural network training to reduce FLOPs, aiming for improved efficiency (test accuracy w.r.t training FLOPs). However, sparse weight training often compromises accuracy, requiring extended training schedules to attain the accuracy of dense models. In contrast, our approach, Sparse Iso-FLOP Transformations (Sparse-IFT), uses sparsity to improve accuracy while maintaining dense model FLOPs. Using a single hyperparameter (i.e., the sparsity level), Sparse-IFTs efficiently replace dense layers, expanding the search space for optimal sparse masks. In addition, dynamic sparse training (DST) with Sparse-IFT models effectively navigate this larger sparse mask-weight space, which is evidenced by a spectral analysis using Ramanujan graph properties. Our study reveals a robust correlation among mask topology, weights, and final performance. Notably, without adjusting any training hyperparameters, replacing dense layers with Sparse-IFT yields significant improvements, such as a +3.5% boost for ResNet-18 on ImageNet and +0.9% for GPT-3 Small on the Open LLM leaderboard. To the best of our knowledge, this is the first work to demonstrate the use of sparsity for improving the accuracy of dense models through a set of simple-to-use sparse transformations. Code is available at: https://github.com/CerebrasResearch/Sparse-IFT.

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

↑