High-Precision Emulation on Low-Precision Matrix Engines

This direction is merged into another direction: compensated precision emulation. Its last version stays readable and citable here.

Version 1 of 112 papers18 conceptsfrozen 2026-10-04

Modern hardware has undergone a radical shift. To meet the demands of deep learning, architects have moved away from general-purpose processing toward specialized "Matrix Engines"—such as NVIDIA’s Tensor Cores, Google’s TPUs, and Huawei’s Ascend NPUs. These units are blazingly fast but natively operate on low-precision formats like FP16 or INT8. For scientific computing, which often requires the rigorous accuracy of FP32 or FP64, this specialization initially seemed like a step backward.

However, a growing body of research demonstrates that we can "reclaim" high precision from these low-precision units. By treating hardware-accelerated matrix multiplication as a building block rather than a final result, researchers are achieving scientific-grade accuracy at speeds that surpass traditional high-precision hardware paths.

The Core Mechanism: Floating-Point Decomposition

The fundamental challenge is that a low-precision format (like FP16) has a much smaller mantissa (the part of the number that stores significant digits) than a high-precision format (like FP32). If you simply cast your data down to FP16, you lose the precision required for stable scientific simulations.

The solution, as explored by Hiroyuki Ootomo and Rio Yokota, is decomposition. Instead of rounding a high-precision number, you split it into multiple lower-precision components—effectively a "high-order" part and a "low-order" residual.

In Recovering single precision accuracy from Tensor Cores while surpassing the FP32 theoretical peak performance, the authors demonstrate that by slicing the mantissa into discrete chunks and processing them independently through the matrix engine, they can recombine the results to exactly match FP32 accuracy. This allows them to run 2.6x faster than the hardware's native FP32 path by utilizing the much higher throughput of the Tensor Cores.

Scaling Precision via Multi-Double Formats

This idea extends beyond just matching FP32. To reach even higher levels of accuracy, researchers use "multi-double" representations. This technique represents a single high-precision value as the sum of several standard double-precision (FP64) values.

The MPLAPACK library leverages this to provide arbitrary-accuracy linear algebra. By using existing hardware floating-point units to process these sums, they achieve a "computational middle ground." This approach is significantly faster than traditional software-emulated arbitrary precision because it stays "on-chip," utilizing the parallel power of GPUs to handle the multiple passes required for each high-precision operation.

Repurposing AI Hardware for Science

The versatility of this approach is being proven across diverse hardware architectures:

  • TPUs: Yi-Fan Chen and colleagues at Google Research demonstrated in Large-Scale Discrete Fourier Transform on TPUs that TPUs can solve fundamental scientific problems like the DFT. They simulate higher precision by decomposing calculations into multiple half-precision passes, allowing scientific apps to benefit from TPU throughput.
  • NPUs: On Huawei’s Ascend NPUs, the SGEMM-cube framework emulates FP32 on FP16 hardware. By using a "termwise" accumulation strategy, Weicheng Xue and team recovered 22 bits of mantissa accuracy, hitting 77% of the hardware's theoretical peak performance.
  • Integer Units: Even units designed for integer math can be co-opted. Ootomo and Yokota have further extended their work to run DGEMM (Double-precision General Matrix Multiply) on Integer Matrix Multiplication Units, proving that the underlying bit-manipulation logic is more important than the native format.

Why It Works: Throughput vs. Complexity

You might wonder: if you have to do multiple passes (e.g., splitting one FP32 multiply into four FP16 multiplies), isn't that slower?

The intuition lies in the massive performance gap between low-precision matrix engines and standard units. As Jens Domke notes in Matrix Engines for High Performance Computing, these engines are so much faster than general-purpose ALUs that even with the "tax" of multiple passes and recombination logic, the total time-to-solution is often lower. We are essentially trading a small amount of extra arithmetic for a massive increase in raw hardware throughput.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_high_precision_emulation_on_low_precisio_82888500,
  title = {High-Precision Emulation on Low-Precision Matrix Engines},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/high-precision-emulation-on-low-precision-matrix-engines/rdr_828885003914424bbd8488a4b50f26a0},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_high_precision_emulation_on_low_precisio_82888500_v1,
  title = {High-Precision Emulation on Low-Precision Matrix Engines},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/high-precision-emulation-on-low-precision-matrix-engines/rdr_828885003914424bbd8488a4b50f26a0/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}