AIで開発する

Emulating high-precision AI math with low-precision integer ops on Blackwell GPUs

A new method uses modular arithmetic to emulate FP64, FP8, and FP4 matrix products using fewer INT8 operations, achieving up to 83x speedups on NVIDIA Blackwell hardware.

Glass cubes with integer symbols arranged on a circuit board representing modular arithmetic optimization
この記事用に生成されたイラスト

この記事は英語版のみ利用可能です。

Researchers have introduced a unified framework for emulating high-precision floating-point matrix multiplication using low-precision integer operations. Published on November 29, 2026, the paper demonstrates that by treating various precision schemes as a single combinatorial problem, developers can significantly reduce the computational overhead of AI inference. The approach yields record-breaking performance gains on NVIDIA Blackwell GPUs, particularly for formats like FP4 and FP6 that previously lacked efficient emulation strategies.

What happened

The core innovation lies in rethinking how different numerical formats are handled during matrix multiplication. Traditionally, methods like the Ozaki scheme II have been used to emulate double-precision (FP64) results using integer (INT8) operations via residues modulo pairwise coprime moduli. Similar variants have existed for lower precisions like FP8 and FP4. However, these approaches were often developed in isolation, leading to suboptimal performance and inconsistent implementation strategies across different precision levels.

The authors propose treating all these schemes as part of one family. They frame the selection of a specific scheme as a combinatorial optimization program. The goal is to minimize the number of low-precision general matrix multiply (GEMM) operations required to achieve a desired precision. By defining a finite set of ways to compute products modulo specific values for each modulus, the researchers systematically search for the combination of moduli and computation methods that results in the fewest total GEMMs. This applies to any format, accumulator type, and inner dimension.

This systematic approach allowed the team to derive lower bounds on the GEMM count for the entire family of schemes. When applied to the hardware capabilities of current GPUs, the method produced the first viable FP6 emulation schemes. It also identified an FP8 scheme requiring fewer GEMMs than any previous method and an FP4 scheme that theoretical bounds prove is optimal within a stated range of moduli. These theoretical improvements were validated through practical implementation on three different Blackwell GPU models.

How it works

The technique relies on modular arithmetic to break down high-precision calculations into manageable low-precision chunks. Instead of performing a single, expensive high-precision multiplication, the system decomposes the operands into residues relative to several pairwise coprime moduli. Pairwise coprime means that no two moduli share any common factors other than one, which ensures that the original number can be uniquely reconstructed from its residues using the Chinese Remainder Theorem.

For each modulus, the system computes the product using low-precision GEMMs, such as INT8 operations. Because INT8 units are highly optimized and abundant in modern AI accelerators, this step is extremely fast. The results from each modulus are then combined to reconstruct the final high-precision result. The key advancement here is the algorithmic selection of which moduli to use and how many GEMMs are needed for each, ensuring the total computational cost is minimized.

By optimizing this selection process, the method reduces the number of separate multiplication steps required. For example, emulating FP64 typically requires many INT8 multiplications to cover the dynamic range and precision. The new combinatorial approach finds the most efficient set of moduli, thereby reducing the total number of INT8 GEMMs needed. This efficiency translates directly into faster execution times on hardware that supports these low-precision operations natively.

Key details

  • The paper unifies FP64, FP8, and FP4 emulation schemes into a single combinatorial optimization framework.
  • It introduces the first known emulation schemes for FP6 format using this modular approach.
  • The derived FP8 scheme requires fewer low-precision GEMMs than any previously published method.
  • The FP4 scheme is proven to be optimal in terms of GEMM count for moduli within a specific range.
  • Implementations on three NVIDIA Blackwell GPUs showed speedups of up to 83x compared to native FP64 execution.
  • The method minimizes the number of low-precision GEMMs by selecting optimal pairwise coprime moduli.

Why it matters

For engineers building AI inference pipelines, precision management is a constant trade-off between accuracy and speed. High-precision formats like FP64 ensure numerical stability but are computationally expensive and often underutilized in inference workloads. Lower precisions like INT8 or FP4 offer speed but can introduce errors. This research provides a rigorous mathematical pathway to get the best of both worlds: the accuracy of high precision with the speed of low-precision hardware.

The performance gains on Blackwell GPUs are particularly significant. As AI models grow larger and more complex, the ability to run high-precision operations efficiently becomes critical for maintaining latency standards. An 83x speedup over native FP64 suggests that tasks previously deemed too slow for real-time processing could become feasible. This opens doors for more sophisticated models in edge computing and real-time analytics where power and time constraints are tight.

Furthermore, the introduction of efficient FP6 and optimized FP4 schemes fills gaps in the current tooling landscape. Developers often avoid non-standard precisions due to lack of support or poor performance. By providing provably optimal schemes, this work encourages broader adoption of mixed-precision techniques. It allows software architects to design systems that dynamically adjust precision based on layer requirements without sacrificing overall model integrity or speed.

What you can do

  • Evaluate if your inference workload requires FP64 accuracy or if lower precisions suffice with error correction.
  • Investigate the availability of INT8 and FP4 GEMM kernels on your target hardware, especially Blackwell architectures.
  • Review the combinatorial optimization method to see if it can be integrated into your custom operator libraries.
  • Benchmark current FP64 operations against INT8-emulated equivalents to identify potential speedup opportunities.
  • Consider implementing the new FP4 or FP8 schemes if your framework supports custom CUDA kernels or similar low-level optimizations.
  • Monitor future updates to AI frameworks that may incorporate these optimized modular arithmetic schemes natively.
  • #ai inference
  • #gpu optimization
  • #low-precision math
  • #nvidia blackwell
  • #matrix multiplication

Bytechapストアのツール

$89

DocBento

すべてのスキャンを読み取り、ページ出典を提示して回答するセルフホスト型ドキュメント管理システム。

ライブデモ

続きを読む

AIで開発する

NebiusのLayerStream、ホストメモリ経由の状態ストリーミングでMoEファインチューニングコストを削減

Nebiusは、混合専門家(MoE)モデルにおけるGPUメモリオーバーヘッドを削減し、オプティマイザー状態をホストメモリに保持するトレーニングエンジン「LayerStream」を発表しました。ベンチマークでは、スループットが最大3.15倍向上することが示されています。

すべての記事