arXiv:2411.19027cs.LGcs.AI2024-11

用非线性权重变换提升神经网络抗硬件故障能力

Enhancing Neural Network Robustness Against Fault Injection Through Non-linear Weight Transformations

  • 通过饱和激活函数约束权重,防止故障导致权重过大
  • 在0.00001位错率下,模型仍保持有效识别能力
  • 适合部署于高辐射、高温等严苛物理环境的AI系统

将深度神经网络(DNN)部署于真实环境时,会因辐射、老化和温度波动等导致硬件故障。以往方法通过截断ReLU限制激活范围来增强鲁棒性,而本文转而对权重施加饱和激活函数(SAFs),如Tanh、Arctan等,防止故障引发权重异常放大。训练阶段使用SAFs约束权重;部署后读取含故障权重时再应用SAFs进行推理。在CIFAR10、CIFAR100和ImageNet 2012三个数据集上,针对FP32、FP16和8位定点数三种格式验证。结果显示,使用SAFs的FP32 ResNet18在0.00001位错率下仍能正常运行,未采用该方法的模型则输出随机猜测。此外,预训练的ResNet18仅需几轮微调即可适配SAFs,Top-1准确率略有提升,同时具备抗故障注入能力。

原文摘要 · Abstract (English)

Deploying deep neural networks (DNNs) in real-world environments poses challenges due to faults that can manifest in physical hardware from radiation, aging, and temperature fluctuations. To address this, previous works have focused on protecting DNNs via activation range restriction using clipped ReLU and finding the optimal clipping threshold. However, this work instead focuses on constraining DNN weights by applying saturated activation functions (SAFs): Tanh, Arctan, and others. SAFs prevent faults from causing DNN weights to become excessively large, which can lead to model failure. These methods not only enhance the robustness of DNNs against fault injections but also improve DNN performance by a small margin. Before deployment, DNNs are trained with weights constrained by SAFs. During deployment, the weights without applied SAF are written to mediums with faults. When read, weights with faults are applied with SAFs and are used for inference. We demonstrate our proposed method across three datasets (CIFAR10, CIFAR100, ImageNet 2012) and across three datatypes (32-bit floating point (FP32), 16-bit floating point, and 8-bit fixed point). We show that our method enables FP32 ResNet18 with ImageNet 2012 to operate at a bit-error rate of 0.00001 with minor accuracy loss, while without the proposed method, the FP32 DNN only produces random guesses. Furthermore, to accelerate the training process, we demonstrate that an ImageNet 2012 pre-trained ResNet18 can be adapted to SAF by training for a few epochs with a slight improvement in Top-1 accuracy while still ensuring robustness against fault injection.

神经网络抗故障权重约束硬件安全

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。