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

通过权重缩放增强深度神经网络对故障注入的抗性

Harden Deep Neural Networks Against Fault Injections Through Weight Scaling

Kyushu Institute of Technology(九州工业大学);Graduate School of Life Science and Systems(生命科学与系统研究生院);Research Center for Neuromorphic AI Hardware(神经形态人工智能硬件研究中心)

Ninnart Fuengfusin, Hakaru Tamukoh

AI总结:

针对硬件故障导致DNN权重位翻转性能下降问题,提出权重存储前乘常数、使用时还原的方法,实验显示该方法能提升8位定点ResNet50在0.0001位错误率下的Top-1准确率54.418,且开销低。

摘要:

深度神经网络(DNNs)已在硬件设备上实现了智能应用。然而,这些硬件设备易受老化、温度变化和写入错误导致的非预期故障影响,这些故障会造成DNN权重发生位翻转,显著降低DNNs的性能。因此,针对这些故障的保护对于DNNs在关键应用中的部署至关重要。此前的工作提出了基于纠错码的方法,但这些方法通常在内存和计算方面都需要较高的开销。本文提出一种简单且有效的方法,通过在将权重存储到易发生故障的介质之前乘以常数来增强DNN权重的鲁棒性;使用时,这些权重再除以相同的常数以恢复原始规模。该方法基于观察:位翻转产生的误差具有类似加性噪声的特性,因此除以常数可减少位翻转带来的绝对误差。为验证该方法,我们在4个ImageNet 2012预训练模型上进行实验,涵盖3种不同数据类型:32位浮点、16位浮点和8位定点。实验表明,仅通过将权重乘以常数,在0.0001的位错误率下,8位定点ResNet50的Top-1准确率提升了54.418。

英文摘要:

Deep neural networks (DNNs) have enabled smart applications on hardware devices. However, these hardware devices are vulnerable to unintended faults caused by aging, temperature variance, and write errors. These faults can cause bit-flips in DNN weights and significantly degrade the performance of DNNs. Thus, protection against these faults is crucial for the deployment of DNNs in critical applications. Previous works have proposed error correction codes based methods, however these methods often require high overheads in both memory and computation. In this paper, we propose a simple yet effective method to harden DNN weights by multiplying weights by constants before storing them to fault-prone medium. When used, these weights are divided back by the same constants to restore the original scale. Our method is based on the observation that errors from bit-flips have properties similar to additive noise, therefore by dividing by constants can reduce the absolute error from bit-flips. To demonstrate our method, we conduct experiments across four ImageNet 2012 pre-trained models along with three different data types: 32-bit floating point, 16-bit floating point, and 8-bit fixed point. This method demonstrates that by only multiplying weights with constants, Top-1 Accuracy of 8-bit fixed point ResNet50 is improved by 54.418 at bit-error rate of 0.0001.

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

↑