Numerical Instability and Chaos: Quantifying the Unpredictability of Large Language Models
Organizations: Department of Computer Science, Florida State University, Tallahassee, USA · Department of Mathematics, Florida State University, Tallahassee, USA
Abstract
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.
Figures & tables
| Model | Dataset | Mean Inst. | Median Inst. | Max Drift | Mean Margin | Min Margin |
|---|---|---|---|---|---|---|
| GPT-OSS | AdvBench | 6.76 | 0.0 | 2.92 | 0.6196 | 0.6196 |
| GPT-OSS | TruthfulQA | 2.63 | 0.0 | 3.43 | 0.9767 | 0.9767 |
| Llama-3.1 | AdvBench | 3.78 | 0.0 | 1.02 | 0.6175 | 0.6175 |
| Llama-3.1 | TruthfulQA | 8.84 | 0.0 | 1.46 | 0.5351 | 0.5035 |
| Metric | - | - | - |
|---|---|---|---|
| Flip Frequency (%) | 16.14 | 16.29 | 15.42 |
| Fragmentation | 861 | 866 | 779 |
| Crossing Density | 51.0 | 52.5 | 49.0 |
LLM Reliability
Large language model reliability studies whether outputs remain correct, calibrated, robust, and controllable across prompts, contexts, and deployment conditions.
See all 787 papers