arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.24053cs.AR
收藏

ReaLM:基于统计算法容错的可靠且高效的大语言模型推理

ReaLM: Reliable and Efficient Large Language Model Inference with Statistical Algorithm-Based Fault Tolerance

Tong Xie, Jiawang Zhao, Zishen Wan, Zuodong Zhang, Yuan Wang, Runsheng Wang, Ru Huang, Meng Li

AI总结:

本文提出算法/电路协同设计框架ReaLM,通过大规模错误注入刻画LLM固有的容错能力,并设计统计ABFT算法与低成本错误检测电路,在极低开销下显著降低困惑度退化并提升能效。

摘要:

对高效大语言模型(LLM)推理的需求推动了专用加速器的发展。由于老化、工艺偏差等原因,加速器容易受到硬件故障的影响,现有的加速器设计通常预留较大的电压裕度或利用基于算法的容错(ABFT)技术来确保LLM推理的正确性。然而,以往的方法往往忽略了LLM固有的容错能力,导致了较高的计算和能耗开销。为了实现可靠且高效的LLM推理,本文提出了一种新颖的算法/电路协同设计框架,称为ReaLM。我们首次通过针对代表性LLM和自然语言理解任务进行大规模错误注入研究,系统地刻画了LLM的容错能力。接着,我们提出了一种统计ABFT算法,充分利用错误鲁棒性来尽可能减少错误恢复。我们还定制了错误检测电路,以低成本在线收集错误统计数据。大量实验表明,仅需1.42%的电路面积和1.79%的功耗开销,我们的ReaLM就能将困惑度退化从18.54降低至0.29。与现有方法相比,ReaLM在不同工作电压下持续降低恢复成本,并在不损害LLM性能的前提下将能效提升高达35.83%。

英文摘要:

The demand for efficient large language model (LLM) inference has propelled the development of dedicated accelerators. As accelerators are vulnerable to hardware faults due to aging, variation, etc, existing accelerator designs often reserve a large voltage margin or leverage algorithm-based fault tolerance (ABFT) techniques to ensure LLM inference correctness. However, previous methods often overlook the inherent fault tolerance of LLMs, leading to high computation and energy overhead. To enable reliable yet efficient LLM inference, in this paper, we propose a novel algorithm/circuit co-design framework, dubbed ReaLM. For the first time, we systematically characterize the fault tolerance of LLMs by performing a large-scale error injection study of representative LLMs and natural language understanding tasks. Then, we propose a statistical ABFT algorithm that fully leverages the error robustness to minimize error recovery as much as possible. We also customize the error detection circuits to enable a low-cost online collection of error statistics. Extensive experiments show that with only 1.42% circuit area and 1.79% power overhead, our ReaLM can reduce perplexity degradation from 18.54 to 0.29. Compared to existing methods, ReaLM consistently reduces recovery costs across different operating voltages and improves energy efficiency by up to 35.83% without compromising LLM performance. Our error injection code is available at https://github.com/PKU-SEC-Lab/ReaLM_DAC25/

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

↑