English

Monotonicity of Multi-Term Floating-Point Adders

Mathematical Software 2023-12-06 v2 Hardware Architecture Numerical Analysis Numerical Analysis

Abstract

In the literature on algorithms for performing the multi-term addition sn=i=1nxis_n=\sum_{i=1}^n x_i using floating-point arithmetic it is often shown that a hardware unit that has single normalization and rounding improves precision, area, latency, and power consumption, compared with the use of standard add or fused multiply-add units. However, non-monotonicity can appear when computing sums with a subclass of multi-term addition units, which currently is not explored in the literature. We demonstrate that common techniques for performing multi-term addition with n4n\geq 4, without normalization of intermediate quantities, can result in non-monotonicity -- increasing one of the addends xix_i decreases the sum sns_n. Summation is required in dot product and matrix multiplication operations, operations that have increasingly started appearing in the hardware of supercomputers, thus knowing where monotonicity is preserved can be of interest to the users of these machines. Our results suggest that non-monotonicity of summation, in some of the commercial hardware devices that implement a specific class of multi-term adders, is a feature that may have appeared unintentionally as a consequence of design choices that reduce circuit area and other metrics. To demonstrate our findings, we use formal proofs as well as a numerical simulation of non-monotonic multi-term adders in MATLAB.

Keywords

Cite

@article{arxiv.2304.01407,
  title  = {Monotonicity of Multi-Term Floating-Point Adders},
  author = {Mantas Mikaitis},
  journal= {arXiv preprint arXiv:2304.01407},
  year   = {2023}
}
R2 v1 2026-06-28T09:47:57.946Z