Papers
Topics
Authors
Recent
Search
2000 character limit reached

Mixed-Precision Computations

Updated 24 May 2026
  • Mixed-precision computations are techniques that assign varied floating-point precisions across algorithmic components based on error-sensitivity, performance, and memory/energy trade-offs.
  • Core methodologies include iterative refinement, mixed-precision Runge-Kutta time-stepping, and matrix-polynomial evaluations that exploit norm decay to control global error.
  • These strategies are applied in high-performance simulations, machine learning, and numerical methods, achieving speedups up to 10× with minimal accuracy loss.

Mixed-precision computations refer to algorithmic and implementation strategies that systematically assign different floating-point precisions—such as FP64 (double), FP32 (single), FP16 (half), and hybrids like BF16—to different parts of a numerical workflow according to error-sensitivity, performance, and memory/energy trade-offs. Rather than performing all data storage and operations in a single fixed precision, mixed-precision schemes exploit the robustness of many scientific algorithms to rounding and truncation in selected terms, stages, or data partitions, maximizing computational throughput and resource efficiency while maintaining provable accuracy. This paradigm permeates high-performance simulation, machine learning, numerical linear algebra, PDE solvers, and scientific statistical computing, with rigorous methodologies developed for precision partitioning, error propagation, and validation.

1. Theoretical Motivation and Precision Partitioning

The foundational justification for mixed-precision strategies is that the machine-epsilon ε\varepsilon fundamentally limits the round-off error in each operation; often, only specific computational sub-domains demand the full accuracy conferred by high-precision formats. In numerical linear algebra and PDE time-stepping, for example, error propagation theory and stability analysis can precisely bound the global error incurred when large but "precision-insensitive" blocks use low precision, provided that sensitive terms (e.g., mass/energy constraints, pressure-gradients) remain in high precision (Kashi et al., 2024, Chen et al., 2024).

This leads to classifying algorithmic components as:

  • Precision-sensitive: pressure-gradient terms in weather models, orthogonality in eigensolvers, Gram-Schmidt orthogonalization, some residual corrections.
  • Precision-insensitive: bulk advective fluxes, many preconditioner applications, explicit function evaluations in time-steppers, most matrix-vector multiplications in iterative solvers, off-diagonal tile multiplications when norm decay is rapid.

A formal error metric is often introduced, such as E=max(L(ps),L(vor))E = \max(L(\mathrm{ps}), L(\mathrm{vor})) in dynamical core tests, or the stagnation barrier O(hp)+O(ε)O(h^p) + O(\varepsilon) in time-integrators, with a threshold aa below which downgrading precision is allowed (Chen et al., 2024, Burnett et al., 2021).

2. Core Algorithms and Methodologies

A wide variety of mixed-precision schemes have been rigorously analyzed and implemented:

2.1 Iterative Refinement

Mixed-precision iterative refinement (IR) is central in linear algebra: the bulk solve A1rA^{-1}r is performed in low precision (e.g., SP or HP), residuals and updates in high precision (DP or QP). The resulting error is O(κ(A)εlow)O(\kappa(A)\,\varepsilon_\mathrm{low}) per iteration, converging to the high-precision barrier provided κ(A)εlow<1\kappa(A)\varepsilon_\mathrm{low}<1 (0808.2794, Kashi et al., 2024).

  • Empirical speedups: 1.5–10× over full DP for dense/sparse factorizations.

2.2 Mixed-Precision Runge-Kutta and Time-Stepping

Explicit/stabilized and additive RK methods have been extended to mixed-precision. Typically, only one or two accuracy-critical nonlinear function evaluations are performed in high precision per time step, with the stabilizing "bulk" stages (frequent low-order corrections for stability) in low precision. The additive perturbation analysis rigorously demonstrates recovery of the scheme’s full convergence order with appropriate correction stages (Burnett et al., 2021, Croci et al., 2021, Gottlieb et al., 16 Feb 2026). In two-derivative RK, similar perturbation-order arguments isolate when low-precision round-off appears only at higher order (Gottlieb et al., 16 Feb 2026).

2.3 Mixed-Precision Matrix-Polynomial and Tile Algorithms

Matrix-polynomial evaluations (e.g., via Paterson–Stockmeyer) and banded/tiled factorizations can employ mixed-precision by exploiting block-norm decay: small-magnitude coefficient blocks BiB_i are handled at lower precision, and a precise rounding-error analysis shows the global error remains controlled when the decay condition is met (Liu, 2023, Salvana et al., 2024). Tiled Cholesky, GEMM, and TRSM implementations store diagonal or dominant blocks in DP, and off-diagonals in SP or HP, implemented transparently using precision-controller templates and dispatched C++/BLAS kernels (Salvana et al., 2024, Liu, 2023).

2.4 Multi-Stage Domain-Specific Partitioning

Specialized workflows (CFD/atmosphere, deep learning, quantum Monte Carlo, H-matrix arithmetic, Lyapunov ADI) employ heuristics or tools (e.g., Verificarlo, Roofline, Monte Carlo Arithmetic) for hot-spot/precision-sensitivity mapping, downgrading local arithmetic or storage except for critical routines (e.g., gather-scatter reductions, global dot products, tridiagonal solves, energy/orthogonality constraints) (Chen et al., 3 Mar 2025, Schulze et al., 1 Aug 2025, Ooi et al., 2019, Chen et al., 2024).

3. Hardware and Software Support

3.1 Hardware Accelerators

Modern GPUs (NVIDIA V100, A100, H100), tensor cores, FPGAs, Arm CPUs with DL Boost, and TPUs possess native optimized units for FP16, BF16, TF32, and (optionally) FP32/FP64 pathways. Many architectures offer >8× peak throughput and 2–10× energy efficiency for low-precision FMA and GEMM, provided suitable accumulator policies (e.g., FP16×FP16→FP32 accumulate) (Gallouédec, 2021, Salvana et al., 2024). Exploiting these requires explicit control over operand and accumulator paths.

3.2 System Software and Libraries

Templated or type-polymorphic interfaces in MAGMA, SLATE, Ginkgo, Trilinos/Belos, Hypre, and R/MPC[CR], and frameworks such as PyTorch’s torch.cuda.amp, enable per-kernel, per-batch, or per-object granularity in precision assignment. Precision-adaptive tile algorithms, memory accessor abstractions, and dynamic rounding/error tracking contribute to fully software-level customizable pipelines (Salvana et al., 2024, Kashi et al., 2024).

3.3 Memory-Guided and Curriculum Selection

Unified accelerators (MGUA) implement algorithmic memory/experience buffers (LTM/STM) to select precision and bit-width granularity at runtime based on statistical properties (e.g., block condition number), dynamic resource policies, and accuracy constraints (Wang et al., 8 Jan 2026).

4. Representative Applications and Quantitative Results

Empirical studies demonstrate strong performance and energy gains with modest or negligible accuracy loss across domains:

Application Mixed-Precision Strategy Speedup Accuracy Loss
Dense LU/Cholesky (HPL-MxP) LU/SP, IR, DP-residuals 3–9× <1e-12 rel. error
CFD (Nekbone, FUN3D, Neko) CG/local SP, global DP dot/GSO 1.3–2.4× <1e-9 rel. resid.
Weather/climate (GRIST) Advective SP, pressure/gravity DP 24–44% E < 0.05 DBL norm
Machine learning (DNN/NLP) Weights/activations HP, updates SP/DP 1.2–2× <0.1% top-1
SciML PINNs/DeepONet MP training: FP16 fwd, FP32 master 1.5–2× Statistically equal
Quantum VMC Sampling FP16, gradient/accum. DP 2–3.5× MC-noise-limited
H-matrix mult/vector Low-rank FP32, dense FP64, DP response 1.2–1.8× No iter penalty
Lyapunov ADI Solution factor Z SP, solves DP Rel. resid. 5× DP

Memory reductions in mixed-precision variants regularly reach 50% (storage in FP32 or FP16), with additional energy-to-solution gains of 30–50% on exascale-class hardware (Chen et al., 3 Mar 2025, Schulze et al., 1 Aug 2025, Lewandowski et al., 2023).

5. Mixed-Precision in Scientific Machine Learning and AI

In scientific ML training, naive application of half-precision may cause gradient underflow and divergence. Mixed-precision protocols (FP32 master weights, FP16 activations/gradients, dynamic loss scaling) overcome this, maintaining convergence and solution quality except in severely ill-conditioned or high-dynamic-range loss landscapes (Hayford et al., 2024, Gallouédec, 2021). Mixed-precision optimizers eliminate FP32 copies by storing extra bits, achieving further memory savings (up to 25%) and 15% training speedups without accuracy penalty (Lewandowski et al., 2023).

In MCMC-based learning (e.g., neural quantum states), half-precision is safe for sampling provided the total-variation distance induced by round-off is controlled via kernel bias analysis, and sensitive gradient/preconditioning steps are preserved in high precision (Solinas et al., 28 Jan 2026).

6. Error Analysis, Validation, and Best-Practice Guidelines

Analytical frameworks decompose error into algorithmic (truncation) and perturbation (round-off) terms. Schemes are constructed to either correct or bound the low-precision error contribution by:

  • Selecting error metrics that proxy primary instability (e.g., mass/vorticity norms, log-likelihood bias, total-variation distance).
  • Progressive iterative downgrading: convert one component at a time, accept precision change if error remains below a physics- or application-tuned threshold (Chen et al., 2024).
  • Perturbation-order analysis (e.g., in mixed-precision RK or TDRK) to guarantee that low-precision effects enter only at higher order terms (Burnett et al., 2021, Gottlieb et al., 16 Feb 2026).
  • Systematic tool-based code porting with dynamic instrumentation (VPREC, MCA), annotated error tracking, and validation on reference test problems prior to production rollout (Chen et al., 3 Mar 2025, Chen et al., 2024).

Standard recommendations include:

  • Retain high precision in critical reductions, orthogonalizations, implicit solves, and wherever ill-conditioning is present.
  • Use compile-time switches or templated APIs for maximal code clarity and testing flexibility.
  • Validate on a hierarchy of idealized to full-domain test cases.
  • Monitor, but do not over-constrain, residual or statistical norm deviation; typical error increases are within MC noise or trivial compared to discretization error.

7. Future Directions and Emerging Technologies

Current trends point toward:

  • Widening adoption of AI/ML accelerators supporting novel formats (FP8, BF16, INT8) with on-the-fly or scheduled precision adaptation (Kashi et al., 2024).
  • Use of machine-learning-driven controllers for dynamic, data-dependent precision assignment.
  • Extension of multi-word or compensation arithmetic (e.g., error-free transforms, Ozaki splitting) when native high-precision hardware is lacking (Kashi et al., 2024).
  • Greater coupling between hardware- and software-level adaptation, especially for multi-workload (FEM/SNN/Sparse) pipelines (Wang et al., 8 Jan 2026).
  • Expansion of mixed-precision abstractions into scientific computing libraries and statistical or Bayesian workflows, enabled by mature templated kernel ecosystems (Salvana et al., 2024, Liu, 2023).

Mixed-precision numerics, validated by rigorous theoretical analysis and broad empirical deployment, now deliver systematic and reproducible speed, memory, and energy benefits in high-performance scientific computing, while maintaining solution fidelity across a spectrum of disciplines and problem scales.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Mixed-Precision Computations.