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

基于边界的交叉熵损失:用于容错量化神经网络

MCEL: Margin-Based Cross-Entropy Loss for Error-Tolerant Quantized Neural Networks

Mikail Yayla, Akash Kumar

AI总结:

MCEL通过提升输出层分类边界分离度,有效提升量化神经网络在位错误下的鲁棒性,提供了一种高效且可扩展的替代方案。

摘要:

对位错误的鲁棒性是神经网络(NNs)在新兴近似计算平台和易出错的内存技术上可靠应用的关键要求。实现NNs位错误容忍的常见方法是在训练时根据预定义的错误模型注入位翻转。虽然在某些场景下有效,但训练时的位翻转注入引入了显著的计算开销,通常在高错误率下会降低推理准确性,并且对于更大的NN架构扩展性差。这些限制使得误差注入在确保未来近似计算平台和易出错内存技术的鲁棒性方面变得越来越不实际。在本工作中,我们研究了使NNs能够在不依赖误差感知训练的情况下容忍位错误的机制。我们建立了位错误容忍与输出层分类边界的直接联系。基于这一见解,我们提出了一种新的损失函数,即边界的交叉熵损失(MCEL),该损失函数在logit级别促进边界的分离,同时保留标准交叉熵损失有利的优化属性。此外,MCEL引入了一个可解释的边距参数,允许以系统化的方式调整鲁棒性。在多个复杂度各异的数据集、多样化NN架构和多种量化方案上进行了广泛的实验评估,结果表明MCEL显著提高了位错误容忍性,对于1%的错误率,准确性可提高高达15%。我们提出的MCEL方法易于实现,高效且可以作为标准CEL的直接替代方案进行集成。它提供了一种可扩展且系统化的替代方案,取代训练时的位翻转注入,为NN鲁棒性的起源提供了新的见解,并使在近似计算和内存系统上的更高效部署成为可能。

英文摘要:

Robustness to bit errors is a key requirement for the reliable use of neural networks (NNs) on emerging approximate computing platforms and error-prone memory technologies. A common approach to achieve bit error tolerance in NNs is injecting bit flips during training according to a predefined error model. While effective in certain scenarios, training-time bit flip injection introduces substantial computational overhead, often degrades inference accuracy at high error rates, and scales poorly for larger NN architectures. These limitations make error injection an increasingly impractical solution for ensuring robustness on future approximate computing platforms and error-prone memory technologies. In this work, we investigate the mechanisms that enable NNs to tolerate bit errors without relying on error-aware training. We establish a direct connection between bit error tolerance and classification margins at the output layer. Building on this insight, we propose a novel loss function, the Margin Cross-Entropy Loss (MCEL), which explicitly promotes logit-level margin separation while preserving the favorable optimization properties of the standard cross-entropy loss. Furthermore, MCEL introduces an interpretable margin parameter that allows robustness to be tuned in a principled manner. Extensive experimental evaluations across multiple datasets of varying complexity, diverse NN architectures, and a range of quantization schemes demonstrate that MCEL substantially improves bit error tolerance, up to 15 % in accuracy for an error rate of 1 %. Our proposed MCEL method is simple to implement, efficient, and can be integrated as a drop-in replacement for standard CEL. It provides a scalable and principled alternative to training-time bit flip injection, offering new insights into the origins of NN robustness and enabling more efficient deployment on approximate computing and memory systems.

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

↑