arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.13206cs.AIcs.LGcs.NAmath.NA
收藏

数值不稳定性与混沌:量化大型语言模型的不可预测性

Numerical Instability and Chaos: Quantifying the Unpredictability of Large Language Models

Department of Computer Science, Florida State University, Tallahassee, USA(佛罗里达州立大学计算机科学系,塔拉希西亚,美国);Department of Mathematics, Florida State University, Tallahassee, USA(佛罗里达州立大学数学系,塔拉希西亚,美国)

Chashi Mahiul Islam, Alan Villarreal, Mao Nishino, Shaeke Salman, Xiuwen Liu

AI总结:

本文研究了大型语言模型中数值不稳定性导致的不可预测性,揭示了浮点精度限制下误差传播机制,识别出混沌效应及三种不同行为模式。

摘要:

随着大型语言模型(LLMs)越来越多地融入智能工作流,其源于数值不稳定的不可预测性已成为关键可靠性问题。尽管近期研究已展示了这些不稳定性的重要下游影响,但其根本原因和内在机制仍不明确。本文通过严谨分析,探讨了不可预测性如何源于有限数值精度的浮点表示,追踪了舍入误差在Transformer计算层中的传播、放大或消散过程。具体而言,我们识别出早期层中存在混沌的“雪崩效应”,其中微小扰动会触发二元结果:要么快速放大,要么完全消失。除特定误差实例外,我们还证明LLMs表现出普遍的、规模依赖的混沌行为,其特征由三个不同阶段界定:1)稳定阶段,扰动低于输入依赖阈值并消失,导致恒定输出;2)混沌阶段,舍入误差主导并驱动输出发散;3)信号主导阶段,真实输入变化超越数值噪声。我们通过多个数据集和模型架构进行了广泛验证。

英文摘要:

As Large Language Models (LLMs) are increasingly integrated into agentic workflows, their unpredictability stemming from numerical instability has emerged as a critical reliability issue. While recent studies have demonstrated the significant downstream effects of these instabilities, the root causes and underlying mechanisms remain poorly understood. In this paper, we present a rigorous analysis of how unpredictability is rooted in the finite numerical precision of floating-point representations, tracking how rounding errors propagate, amplify, or dissipate through Transformer computation layers. Specifically, we identify a chaotic "avalanche effect" in the early layers, where minor perturbations trigger binary outcomes: either rapid amplification or complete attenuation. Beyond specific error instances, we demonstrate that LLMs exhibit universal, scale-dependent chaotic behaviors characterized by three distinct regimes: 1) a stable regime, where perturbations fall below an input-dependent threshold and vanish, resulting in constant outputs; 2) a chaotic regime, where rounding errors dominate and drive output divergence; and 3) a signal-dominated regime, where true input variations override numerical noise. We validate these findings extensively across multiple datasets and model architectures.

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

↑