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

SafeCiM: 探究混合浮点计算内存深度学习加速器的鲁棒性

SafeCiM: Investigating Resilience of Hybrid Floating-Point Compute-in-Memory Deep Learning Accelerators

Department of Electrical and Computer Engineering, University of Texas at Dallas(得克萨斯大学达拉斯分校电气与计算机工程系);Advanced Architecture Research Group at Intel Corporation(英特尔公司先进架构研究组);Department of Electrical, Computer and Systems Engineering, Rensselaer Polytechnic Institute(拉特格斯理工学院电气、计算机与系统工程系)

Swastik Bhattacharya, Sanjay Das, Anand Menon, Shamik Kundu, Arnab Raha, Kanad Basu

AI总结:

SafeCiM通过引入位翻转故障分析,提升了混合浮点计算内存加速器在硬件故障下的鲁棒性,显著降低了LLM推理准确性下降的风险。

摘要:

深度神经网络(DNNs)随着大语言模型(LLMs)的复杂性持续增长,这些模型包含大量参数。在传统加速器中高效处理这些参数受到数据传输瓶颈的限制,这促使了计算在内存(CiM)架构的发展,这种架构将计算整合到内存或靠近内存的位置以减少数据移动。最近的研究探索了使用浮点(FP)和整数(INT)运算的CiM设计。FP计算通常由于更大的动态范围和精度而提供更高的输出质量,这对精度敏感的生成式AI应用有益。这些包括像LLMs这样的模型,因此推动了FP-CiM加速器的发展。然而,FP-CiM对硬件故障的脆弱性仍缺乏研究,这在关键任务环境中构成了主要的可靠性问题。为了解决这一差距,我们系统地分析了FP-CiM中的硬件故障影响,通过在关键计算阶段引入位翻转故障,包括数字乘法器、CiM内存单元和数字加法器树。使用卷积神经网络(CNNs)如AlexNet以及最先进的LLMs,包括LLaMA-3.2-1B和Qwen-0.3B-Base,实验揭示了每个阶段的故障如何影响推理准确性。值得注意的是,一个加法器故障可以将LLM的准确性降低到0%。基于这些见解,我们提出了一个容错设计,SafeCiM,它比一个简单的FP-CiM在预对齐阶段的故障影响更小。例如,对于4096个MAC单元,SafeCiM在单个加法器故障的情况下,比基线FP-CiM架构减少了49倍的准确性退化。

英文摘要:

Deep Neural Networks (DNNs) continue to grow in complexity with Large Language Models (LLMs) incorporating vast numbers of parameters. Handling these parameters efficiently in traditional accelerators is limited by data-transmission bottlenecks, motivating Compute-in-Memory (CiM) architectures that integrate computation within or near memory to reduce data movement. Recent work has explored CiM designs using Floating-Point (FP) and Integer (INT) operations. FP computations typically deliver higher output quality due to their wider dynamic range and precision, benefiting precision-sensitive Generative AI applications. These include models such as LLMs, thus driving advancements in FP-CiM accelerators. However, the vulnerability of FP-CiM to hardware faults remains underexplored, posing a major reliability concern in mission-critical settings. To address this gap, we systematically analyze hardware fault effects in FP-CiM by introducing bit-flip faults at key computational stages, including digital multipliers, CiM memory cells, and digital adder trees. Experiments with Convolutional Neural Networks (CNNs) such as AlexNet and state-of-the-art LLMs including LLaMA-3.2-1B and Qwen-0.3B-Base reveal how faults at each stage affect inference accuracy. Notably, a single adder fault can reduce LLM accuracy to 0%. Based on these insights, we propose a fault-resilient design, SafeCiM, that mitigates fault impact far better than a naive FP-CiM with a pre-alignment stage. For example, with 4096 MAC units, SafeCiM reduces accuracy degradation by up to 49x for a single adder fault compared to the baseline FP-CiM architecture.

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

↑