arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.13778cs.DC
收藏

通过扩展Ozaki方案在使用低精度张量核心时保证DGEMM精度

Guaranteed DGEMM Accuracy While Using Reduced Precision Tensor Cores Through Extensions of the Ozaki Scheme

Angelika Schwarz, Anton Anders, Cole Brower, Harun Bayraktar, John Gunnels, Kate Clark, RuQing G. Xu, Samuel Rodriguez, Sebastien Cayrols, Paweł Tabaszewski, Victor Podlozhnyuk

AI总结:

针对GPU低精度张量核心难以保障双精度矩阵乘法精度的问题,提出扩展Ozaki方案的ADP框架,实现高效可靠的模拟FP64矩阵乘法,在两类Blackwell GPU上获得最高13.2倍加速且开销低于10%。

摘要:

人工智能(AI)的快速发展使得FP16、FP8以及最新的块缩放FP4等低精度格式成为现代GPU的核心关注方向,如今张量核心的吞吐量比传统FP64流水线高出数个数量级。这一硬件转变催生了新的算法研究方向:通过Ozaki分解等方案,利用低精度单元模拟双精度精度。我们通过自动动态精度(Automatic Dynamic Precision,ADP)推进了该方向的研究,这是一个完全驻留于GPU的框架,可让模拟FP64矩阵乘法兼具高效性与可靠性。其核心是指数跨度容量(Exponent Span Capacity,ESC),这是一种与硬件无关的估计器,可保守地确定达到FP64级精度所需的分解参数(也称为切片数)。ADP基于ESC构建,集成了异常处理、运行时启发式规则以及无缝回退至原生FP64的机制,无需主机-设备同步或用户干预即可保证正确性。此外,我们通过无符号整数切片方案进一步改进了Ozaki式分解,提升了表示效率并减少了计算浪费。经近期提出的BLAS分级测试验证,ADP在高难度输入上始终保持FP64保真度,且运行时开销低于10%。在55位尾数设置下,我们的方法在NVIDIA Blackwell GB200和RTX Pro 6000 Blackwell服务器版上,相比原生FP64 GEMM分别实现了最高2.3倍和13.2倍的加速。我们的结果表明,低精度加速器可作为高保真、高性能科学计算工作负载的实用、可投入生产的基础。

英文摘要:

The rapid growth of artificial intelligence (AI) has made low-precision formats such as FP16, FP8, and, most recently, block-scaled FP4 the primary focus of modern GPUs, where Tensor Cores now deliver orders-of-magnitude higher throughput than traditional FP64 pipelines. This hardware shift has sparked a new line of algorithm research: using low-precision units to emulate double-precision accuracy through schemes such as Ozaki decompositions. We advance this direction with Automatic Dynamic Precision (ADP), a fully GPU-resident framework that makes emulated FP64 matrix multiplication both efficient and reliable. At its core is the Exponent Span Capacity (ESC), a hardware-agnostic estimator that conservatively determines the decomposition parameter (also known as slices) required to achieve FP64-level accuracy. Built on ESC, ADP integrates exception handling, run time heuristics, and seamless fallback to native FP64, ensuring correctness without host-device synchronization or user intervention. Additionally, we further improve Ozaki-style decompositions with an unsigned integer slicing scheme, which increases representational efficiency and reduces computational waste. Validated against recently proposed BLAS grading tests, ADP consistently preserves FP64 fidelity on challenging inputs while incurring less than 10% run time overhead. In a 55-bit mantissa setting, our approach achieves up to 2.3x and 13.2x speedups over native FP64 GEMM on NVIDIA Blackwell GB200 and the RTX Pro 6000 Blackwell Server Edition, respectively. Our results demonstrate that low-precision accelerators can serve as a practical, production-ready foundation for high-fidelity and high-performance scientific computing workloads.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑