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

稀疏最大更新参数化:一种全面方法用于稀疏训练动态

Sparse maximal update parameterization: A holistic approach to sparse training dynamics

Cerebras Systems(Cerebras系统)

Nolan Dey, Shane Bergsma, Joel Hestness

AI总结:

S$μ$Par通过重新参数化超参数,实现稀疏训练动态的稳定性和高效调优,提升稀疏模型性能。

摘要:

几种挑战使稀疏神经网络难以与密集模型竞争。首先,将大量权重设为零会损害前向和梯度信号传播。其次,稀疏研究往往需要测试多个稀疏性水平,同时引入新的超参数(HPs),导致极高的调优成本。事实上,标准做法是重用最初为密集模型设计的学习HPs。不幸的是,我们证明稀疏和密集网络并不共享相同的最优HPs。在稳定的动态和有效的训练配方缺失的情况下,测试大规模稀疏性成本高昂,这是超越密集网络并使稀疏加速在硬件中有商业案例的关键。需要一种全面的方法来解决这些挑战,我们提出了S$μ$Par作为其中一种方法。对于随机无结构静态稀疏性,S$μ$Par确保激活、梯度和权重更新都独立于稀疏性水平而缩放。进一步地,通过重新参数化HPs,S$μ$Par使相同的HP值在变化稀疏性水平和模型宽度时仍然最优。HPs可以在小的密集网络上进行调优并转移到大的稀疏模型中,大大降低调优成本。在大规模语言建模中,S$μ$Par在稀疏性增加时相对于标准参数化显示出持续的改进,导致在99.2%稀疏性时达到11.9%的相对损失改进。S$μ$Par的最小实现可在https://github.com/EleutherAI/nanoGPT-mup/tree/supar上找到。

英文摘要:

Several challenges make it difficult for sparse neural networks to compete with dense models. First, setting a large fraction of weights to zero impairs forward and gradient signal propagation. Second, sparse studies often need to test multiple sparsity levels, while also introducing new hyperparameters (HPs), leading to prohibitive tuning costs. Indeed, the standard practice is to re-use the learning HPs originally crafted for dense models. Unfortunately, we show sparse and dense networks do not share the same optimal HPs. Without stable dynamics and effective training recipes, it is costly to test sparsity at scale, which is key to surpassing dense networks and making the business case for sparsity acceleration in hardware. A holistic approach is needed to tackle these challenges and we propose S$μ$Par as one such approach. For random unstructured static sparsity, S$μ$Par ensures activations, gradients, and weight updates all scale independently of sparsity level. Further, by reparameterizing the HPs, S$μ$Par enables the same HP values to be optimal as we vary both sparsity level and model width. HPs can be tuned on small dense networks and transferred to large sparse models, greatly reducing tuning costs. On large-scale language modeling, S$μ$Par shows increasing improvements over standard parameterization as sparsity increases, leading up to 11.9% relative loss improvement at 99.2% sparsity. A minimal implementation of S$μ$Par is available at https://github.com/EleutherAI/nanoGPT-mup/tree/supar.

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

↑