Accurate Products, Inaccurate Inverse: Emulated FP64 BLAS in Blocked Triangular Inversion
Abstract
FP64 emulation on integer tensor units now ships in cuBLAS and GEMMul8, and each emulated matrix product can be checked against an accuracy grade. We ask if a routine built from such products inherits their accuracy, and show that blocked triangular inversion, the core of LAPACK's inverse of a symmetric positive definite matrix, does not. Under fixed-precision emulation every product passes the grade-B error bound of Demmel et al., yet the inverse errs at 7.1e-2, against 2.0e-15 natively. The matrices are well conditioned after diagonal scaling, but the scaling spans 64 binades. The cause is one product, T = X22 L21, whose summed index carries both the diagonal scaling and its inverse, which a grade-B bound does not absorb. Computing those products natively restores native accuracy; leaving any one of them emulated does not. The pattern holds on four GPUs, and on real covariance matrices the fixed-precision routes lose up to about four orders of accuracy. Equilibration, a solve-based association and cuBLAS's automatic dynamic precision avoid the loss, and an exact error recurrence audits a completed run. On an RTX 4090 the fastest accurate emulated inversion takes 0.40 of cuSOLVER's time. Where each product's scaling falls decides if per-product accuracy carries over to a composite routine, and that is what builders of emulated libraries need to check.
Create a lesson
Metadata
- Categories
- cs.MS, cs.DC, cs.NA, math.NA
- Comments
- Submitted to ISC High Performance 2027. 16 pages, 4 figures, 12 tables. Review artifact (code and run records) linked in the paper
Related papers
BF16 Component-Product Emulation of FP32 and FP64 GEMM on Intel AMX
Shared title terminologycs.MSBing Cui, Yu Liu
Ozaki 2.5: Engineering the Deconstruction Path of fp64-Emulated Dense Matrix Multiplication on FP8 Tensor Cores
Shared title terminologycs.MSSatoshi Matsuoka
The involute function and its inverse in IEEE 754 double precision: measured and proved accuracy, and its effect on gear inspection
Shared title terminologycs.MSAndrew Prestridge
Providing Accuracy Guarantees for the Fixed-Point Emulation of Matrix Multiplication
Shared title terminologycs.MSCole Brower, Peter Caday, John Gunnels
Emulating DGEMM and ZGEMM with INT8 Matrix Engines on Intel Arc GPUs: Ozaki Scheme II on the Xe2 Architecture
Shared title terminologycs.MSRostislavs Rostovskis, Aleksandrs Platonenko
AWE: Adaptive Weight Encoding for Exact Integer Matrix Products with Fewer GEMMs on FP4 Tensor Cores
Shared title terminologycs.MSShun-ichiro Hayashi, Daichi Mukunoki, Tetsuya Hoshino et al.