arXiv:2610.35413cs.DCOct 2026

Manuscript Offprint

arXiv:2610.35413

How Numerical Errors Scale with Hardware

Niklas Baumgarten

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

NIKLAS BAUMGARTEN

ABSTRACT. In this short technical note, we outline how to bound numerical errors with respect to computational resources. We consider algorithms with known complexity estimates that can be executed in parallel and combine these estimates with parallelization laws. We suppose that the proposed approach generalizes beyond the presented examples and argue that it provides a straightforward and fair framework for comparing algorithms, hardware systems, and software implementations. This is achieved by imposing identical resource or energy budgets on each configuration, and comparing the resulting numerical error evaluations.

1 Introduction

Energy consumption and the availability of hardware resources are among the main limiting factors in achieving better computational results. This is particularly true for highly parallel applications, where large computing systems work toward a common goal, such as estimating quantities of interest for highly uncertain processes, simulating fluid flow in three spatial dimensions, or training a large language model.

To describe the performance of algorithms on parallel hardware, Amdahl's law [1] characterizes the maximum speedup achievable for a fixed-size problem when only a portion of the computation can be parallelized. Gustafson's law [2] revisits this analysis by assuming that the problem size scales with the number of processing units, deriving a corresponding scaled speedup relative to serial execution.

For many numerical algorithms in scientific computing and machine learning, however, the problem size is related nonlinearly to the numerical error one seeks to minimize. Neural scaling laws [3][3], for example, investigate how the number of model parameters and the amount of training data influence the training loss. When the amount of training data and the number of model parameters are scaled in tandem with a compute-optimal strategy, the training loss can be expressed directly as a function of the total training compute [4][4].

In this note, we want to outline how to connect parallelization laws with error-vs-cost relations, formally described by complexity analysis. This creates a direct connection between hardware resources and achievable accuracies, and thereof a direct relation between errors and invested energy. For this we establish a relative error reduction, rather than the speedup as in [1, 2], achieved by executing an algorithm on a parallel system. The here outlined proposition summarizes and generalizes observations made in [5, 6, 7].

The approach is motivated by a knapsack problem: minimize a numerical error, subject to the constraints imposed by the computing system. These constraints typically include the reserved computing time, the available memory or data and the number of processing units such as CPUs, GPUs, or TPUs.

Date: October 27, 2026.

niklas.baumgarten@uni-heidelberg.de

NIKLAS BAUMGARTEN

Problem 1.1 (Minimal Error Knapsack). Find an algorithm {πk}k\{\pi_k\}_{k} (a sequence of decisions) that minimizes some error estimate err^k\widehat{\text{err}}_k of the problem of interest within given computational constraints

min⁡{πk}kerr^ks.t.CkOp≤P⋅T,CkMem<MandCkData<D.\min_{\{\pi_{k}\}_{k}}\widehat{\mathrm{err}}_{k}\quad s.t.\quad\mathrm{C}_{k}^{\mathrm{Op}}\leq P\cdot T,\quad\mathrm{C}_{k}^{\mathrm{Mem}}<M\quad and\quad\mathrm{C}_{k}^{\mathrm{Data}}<D.

We denote by CkOpC_k^{\text{Op}} the operational cost, by CkMemC_k^{\text{Mem}} the maximal memory footprint over the runtime, and by CkDataC_k^{\text{Data}} the amount of data processed up until step kk. The constraints comprise a time budget T>0T > 0, a fixed number of computing units P∈NP \in \mathbb{N}, the total memory capacity of the system M>0M > 0 and the total amount of available data D≥0D \geq 0.

Finding solutions to the resource allocation Theorem 1.1 through an optimal sequence of decisions {πk}k\{\pi_k\}_{k} is an NP-hard optimization problem, likely with non-linear objective functions and constraints. Expressing this non-linear relationship between the error err^k\widehat{\text{err}}_k (e.g., an estimator variance, a finite element error, or a training loss) and the operational complexity CkOpC_k^{\text{Op}} (e.g., the number of necessary floating point operations, or the number of function evaluations) is commonly done though complexity analysis identifying bounds of the form: For any fixed accuracy ϵ∈(0,1]\epsilon \in (0,1], the expression f:(0,1]→R≥0f: (0,1] \to \mathbb{R}_{\geq 0} bounds the operational complexity

(1.1)

CϵOp≤cf(ϵ)to achieveerr^<ϵ.\mathrm{C}_{\epsilon}^{\mathrm{O p}}\leq c f(\epsilon)\quad\mathrm{t o~a c h i e v e}\quad\widehat{\mathrm{e r r}}<\epsilon.

The constant c>0c > 0 is generally not known and may dependent on the condition-number of the problem as well as the actual implementation of the algorithm. The function ff is assumed to be monotonically increasing as ϵ→0\epsilon \to 0, i.e., achieving smaller errors is associated with higher computational costs. This is a natural result everywhere in machine learning or scientific computing, causing long computing times and large hardware requirements in practice. Complexity analysis allows us to quantify how good an algorithm {πk}k\{\pi_k\}_{k} is in terms of the resources it needs to achieve a certain accuracy ϵ∈(0,1]\epsilon \in (0, 1], enabling comparisons of different algorithms with respect to their resource requirements.

The memory and data constraints in Theorem 1.1 typically determine the smallest achievable error for a given algorithm. For example, in machine learning, limited training data introduces bias or may lead to overfitting. Similarly, insufficient memory can prevent the construction of a larger finite element basis in numerical simulations. Despite their importance, memory and data constraints are here not the primary investigation goal, we will come back to this only shortly in a final discussion.