LEAN:用于高效容错神经网络的模型权重敏感性分布的损失工程调制
LEAN: Loss-Engineered Modulation of the Model Weight-Sensitivity Distribution for Efficient, Error-Tolerant Neural Networks
AI总结:
提出LEAN方法,通过复合正则化调制权重敏感性分布,缩小敏感尾部,提升位翻转容错性,降低存储位数,在视觉模型及小型语言模型上验证了效果,优于现有防御方案与量化方法。
摘要:
训练好的网络的权重对模型精度的敏感性并不均匀:最敏感的1%权重承载了位翻转可能造成的约五分之一的损害。这种分布决定了模型的位翻转容错性、编码必须覆盖的权重比例以及每个权重所需的位数;现有方案仅利用训练后留下的分布。本文表明,我们可以系统地调制或改变训练后模型的权重敏感性分布,从而将权重从一个敏感性区间转移到另一个区间。存储权重的敏感性是其梯度与存储格式中翻转步长的乘积,而LEAN在这两个因素上添加了复合正则化项:一个限制翻转步长的范围项,以及一个降低最敏感权重梯度的尾部项,其中一个系数λ控制分布的移动幅度。将该项作为微调或训练最后十个周期,在九个视觉模型(CIFAR-10、CIFAR-100、ImageNet上的ResNet-18、ResNet-50、VGG-16)上可将敏感尾部缩小5至13倍,精度损失在0.5个点以内;实际翻转实验证实,重塑后的权重造成的损害更小,单纯的梯度范数惩罚无法重现该效果,且对三个小型语言模型的初步扩展也显示出相同的尾部塑形效果。使用覆盖1%权重的BCH码,该模型在每个训练种子下可承受300次渐进位搜索翻转,其中两个种子下可承受500次,而使用相同码的四个已发表防御方案中有三个在300次时失效,WCAT在500次时降至75%。重塑后的分布还将固定保证所需的奇偶校验位数减少了3.7倍,并使敏感性排序的8/6/4/3位格式成为可能,该格式将ImageNet上的ResNet-50存储为3.29位权重有效载荷,比INT8小2.4倍,且精度高于3位的LSQ。
英文摘要:
The weights of a trained network do not have uniform sensitivity to model accuracy: the 1% most sensitive weights carry about a fifth of the damage a bit flip can do. This distribution decides the bit-flip tolerance of a model, the fraction of weights a code must cover and the bits each weight needs; existing schemes work with the distribution training leaves. We show that we can systematically modulate or alter the weight sensitivity distribution of a trained model, thereby shifting weights from one sensitivity bin to another. The sensitivity of a stored weight is the product of its gradient and the step a flip takes in the storage format, and LEAN adds a composite regularizer on both factors, a range term that bounds the flip step and a tail term that lowers the gradient of the most sensitive weights, with one coefficient λ setting how far the distribution moves. Ten epochs with the term, as a fine-tune or as the last epochs of training, shrink the sensitive tail 5 to 13 times on nine vision models (ResNet-18, ResNet-50, VGG-16 on CIFAR-10, CIFAR-100, ImageNet) within 0.5 points of accuracy; real flips confirm that the reshaped weights do less damage, a plain gradient-norm penalty does not reproduce the effect, and a preliminary extension to three small language models shows the same tail shaping. With a BCH code over 1% of the weights the model then survives 300 progressive bit-search flips in every training seed and 500 in two of three, where three of four published defenses with the same code fail by 300 and WCAT falls to 75% at 500. The reshaped distribution also cuts the parity for a fixed guarantee 3.7 times and makes a sensitivity-ordered 8/6/4/3-bit format affordable, which stores ImageNet ResNet-50 at a 3.29-bit weight payload, 2.4 times smaller than INT8, above the accuracy of LSQ at 3 bits.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。