arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.10528cs.LG
收藏

激活稀疏量化深度神经网络中的存储故障:分析与利用锐度感知训练进行缓解

Memory Faults in Activation-sparse Quantized Deep Neural Networks: Analysis and Mitigation using Sharpness-aware Training

Purdue University(普渡大学)

Akul Malhotra, Sumeet Kumar Gupta

AI总结:

本文研究激活稀疏量化DNN对存储故障的脆弱性,发现稀疏性加剧精度损失且与损失景观尖锐极小值相关,并提出锐度感知量化训练以提升故障环境下的推理精度和容错性。

摘要:

利用量化和稀疏性增强等技术提高深度神经网络(DNN)加速器的硬件效率已展现出巨大前景。然而,它们在非理想现实环境(例如存在硬件故障时)中的推理精度尚未得到系统性分析。在本工作中,我们研究了存储故障对激活稀疏量化DNN(AS QDNN)的影响。我们表明,高水平的激活稀疏性是以更大的故障脆弱性为代价的,AS QDNN的精度比标准QDNN低达11.13%。我们证实,精度下降与AS QDNN损失景观中更尖锐的极小值相关,这使其对由故障引起的权重值扰动更加敏感。基于这一观察,我们采用锐度感知量化(SAQ)训练来缓解存储故障的影响。使用SAQ训练的AS和标准QDNN与传统训练的对应模型相比,推理精度分别提高了高达19.50%和15.82%。此外,我们表明,在故障环境下,SAQ训练的AS QDNN比传统训练的标准QDNN具有更高的精度。因此,锐度感知训练可以在不牺牲容错性的情况下,有助于实现与稀疏性相关的延迟收益。

英文摘要:

Improving the hardware efficiency of deep neural network (DNN) accelerators with techniques such as quantization and sparsity enhancement have shown an immense promise. However, their inference accuracy in non-ideal real-world settings (such as in the presence of hardware faults) is yet to be systematically analyzed. In this work, we investigate the impact of memory faults on activation-sparse quantized DNNs (AS QDNNs). We show that a high level of activation sparsity comes at the cost of larger vulnerability to faults, with AS QDNNs exhibiting up to 11.13% lower accuracy than the standard QDNNs. We establish that the degraded accuracy correlates with a sharper minima in the loss landscape for AS QDNNs, which makes them more sensitive to perturbations in the weight values due to faults. Based on this observation, we employ sharpness-aware quantization (SAQ) training to mitigate the impact of memory faults. The AS and standard QDNNs trained with SAQ have up to 19.50% and 15.82% higher inference accuracy, respectively compared to their conventionally trained equivalents. Moreover, we show that SAQ-trained AS QDNNs show higher accuracy in faulty settings than standard QDNNs trained conventionally. Thus, sharpness-aware training can be instrumental in achieving sparsity-related latency benefits without compromising on fault tolerance.

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

↑