直通渐变和软渐变是否包含了稀疏训练所需的所有内容?
Are Straight-Through gradients and Soft-Thresholding all you need for Sparse Training?
摘要:
在训练神经网络时将权重变为零有助于降低推理时的计算复杂性。为了逐步增加网络中的稀疏率,而不会在训练过程中导致尖锐的权重不连续性,我们的工作结合了软阈值和直通梯度估计来更新原始的,即非阈值化的,零权重版本。我们的方法,命名为ST-3的直通/软阈值/稀疏训练,获得SoA的结果,无论是在准确性/稀疏性和准确性/FLOPS的权衡,当在一个单一的训练周期逐渐增加稀疏率。特别是,尽管其简单性,ST-3有利地与最新的方法相比,采用可区分的配方或生物启发的神经再生原理。这表明,有效稀疏化的关键因素主要在于能够赋予权重在零状态下平滑演变的自由,同时逐渐增加稀疏率。源代码和重量可在https://github.com/vanderschuea/stthree上获得
英文摘要:
Turning the weights to zero when training a neural network helps in reducing the computational complexity at inference. To progressively increase the sparsity ratio in the network without causing sharp weight discontinuities during training, our work combines soft-thresholding and straight-through gradient estimation to update the raw, i.e. non-thresholded, version of zeroed weights. Our method, named ST-3 for straight-through/soft-thresholding/sparse-training, obtains SoA results, both in terms of accuracy/sparsity and accuracy/FLOPS trade-offs, when progressively increasing the sparsity ratio in a single training cycle. In particular, despite its simplicity, ST-3 favorably compares to the most recent methods, adopting differentiable formulations or bio-inspired neuroregeneration principles. This suggests that the key ingredients for effective sparsification primarily lie in the ability to give the weights the freedom to evolve smoothly across the zero state while progressively increasing the sparsity ratio. Source code and weights available at https://github.com/vanderschuea/stthree
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。