Analysis and Detection of Stagnation in Floating-Point Summation
Mantas Mikaitis, William Woolfenden
Key points
From the paper's conclusion- We have built prototype dynamic stagnation detection tools in two languages, MATLAB and Julia, and applied them to applications ranging from basic summation of a vector, to matrix multiplication, to a fluid flow simulation model.
Abstract
Stagnation in the summation of floating-point numbers occurs when the running sum, or the accumulator, does not change its value despite addends being greater than zero. Here we define different types of stagnation - commonly referred to as swamping or absorption, where one operand in an addition is nearly or completely rounded off---in floating-point summation, and propose algorithms for detecting it in numerical code that uses floating-point arithmetic. Whilst cancellation in floating-point arithmetic has been studied, for example by Lam et al. in `Dynamic floating point cancellation detection', stagnation has not been exploited as a property for detecting and reporting accuracy loss in floating-point operations. We have built prototype dynamic stagnation detection tools in two languages, MATLAB and Julia, and applied them to applications ranging from basic summation of a vector, to matrix multiplication, to a fluid flow simulation model. With this tool, users are able to identify areas of their floating-point code where stagnation occurs - in those areas of the code one may need to switch to a higher precision number format, apply stochastic rounding, or use different summation algorithms such as compensated summation. To the best of our knowledge we provide a first rigorous definition of stagnation in floating-point summation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- FPScan: An Automated Constraint-Based Analyzer for Floating-Point Anomaly DetectionarXiv · 2026
- Mathematically-Guided Detection of Floating-Point ErrorsProceedings of the ACM on Software Engineering · 2026
- Floating-Point Usage on GitHub: A Large-Scale Study of Statically Typed LanguagesProceedings of the ACM on Programming Languages · 2026
- Accurate Residues for Floating-Point DebuggingProceedings of the ACM on Programming Languages · 2026
- Probabilistic Floating-Point Round-Off Analysis via Concentration InequalitiesProceedings of the ACM on Programming Languages · 2026
- A framework for trackable and modular rounding error analysisarXiv · 2026