Top 3 Algorithms for Accurate Parallel Sums

Kahan, Neumaier, and Pairwise summation are leading algorithms to mitigate floating-point error accumulation in parallel operations. Kahan reduces error by tracking compensation, Neumaier improves on Kahan for larger term additions, and Pairwise summation recursively reduces error to O(log n) growth.

The top 3

  1. Kahan/Neumaier Compensated Summation: Precision's Secret Weapon: The Kahan summation algorithm dramatically reduces floating-point round-off error by tracking a separate compensation variable for lost low-order bits, often yielding an error bound effectively independent of 'n' for large sums. Neumaier's enhancement further improves accuracy by robustly handling cases where the next term is larger than the running sum, making it a cornerstone for high-precision parallel computations.
  2. Pairwise Summation: Divide and Conquer for Accuracy: Pairwise summation, or cascade summation, improves accuracy by recursively splitting the number sequence into halves, summing each half, and then combining the results. This divide-and-conquer strategy reduces worst-case round-off errors to O(ε log n), a significant improvement over naive summation's O(εn), while maintaining computational efficiency comparable to naive methods.
  3. SuperAccumulator Algorithms: Achieving Correctly Rounded Parallel Sums: SuperAccumulator algorithms, like Sparse and Small SuperAccumulators, aim for a correctly rounded floating-point representation of a sum by using multiple internal chunks to cover the full range of significant digits. They are specifically designed for parallel architectures, minimizing or avoiding carry bit propagation, which is crucial for maintaining accuracy and efficiency in parallel environments.

Open the full topic