并非所有错误都平等:大型语言模型推理中错误传播的系统研究
Not All Errors Are Equal: A Systematic Study of Error Propagation in Large Language Model Inference
AI总结:
本研究通过提出的LLMFI故障注入框架,系统研究了软错误在大型语言模型推理中的传播机制,揭示了关键脆弱性模式,并提出了四种低开销的软件级可靠性改进方向。
摘要:
大型语言模型(LLM)日益集成到高性能计算(HPC)工作流中,通过代码生成和领域特定决策等多种视角加速科学发现。然而,软错误如何传播并影响LLM推理仍 largely unexplored。为弥补这一空白,我们提出了LLMFI——一个可配置且确定性的故障注入框架,并基于该框架对LLM推理中的错误传播进行了全面研究。我们系统地跨三个开放权重的LLM和十三个代表性任务(涵盖推理、多语言、数学和编码领域)注入故障。此外,我们进行了细粒度的案例研究,揭示了关键脆弱性模式。总体而言,我们的研究得出了17个要点,推进了对LLM推理中错误传播的理解,并提出了四种低开销的纯软件修改方向以提高可靠性,为未来的错误检测和缓解提供了实用指导。
英文摘要:
Large language models (LLMs) are increasingly integrated into high-performance computing (HPC) workflows, accelerating scientific discovery through diverse perspectives such as code generation and domain-specific decision-making. Yet, how soft errors propagate and affect LLM inference remains largely unexplored. To bridge this gap, we present a comprehensive study on error propagation in LLM inference, enabled by our proposed LLMFI, a configurable and deterministic fault-injection framework. Using LLMFI, we systematically inject faults across three open-weighted LLMs and thirteen representative tasks, covering reasoning, multilingual, mathematical, and coding domains. In addition, we conduct fine-grained case studies that reveal critical vulnerability patterns. Overall, our study yields 17 takeaways that advance the understanding of error propagation in LLM inference and introduces four low-overhead directions to improve reliability through software-only modification, offering practical guidance for future error detection and mitigation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。