Double-Precision Matrix Multiplication Emulation via Ozaki-II Scheme with FP8 Quantization
summary
The gist
Double-Precision Matrix Multiplication Emulation via Ozaki-II Scheme with FP8 Quantization proposes a method for emulating double-precision general matrix–matrix multiplication (DGEMM) using FP8…
In short
The paper introduces an FP8-based Ozaki-II scheme to emulate double-precision matrix multiplication (DGEMM) using low-precision FP8 hardware units. This technique is necessary because modern architectures often lack sufficient INT8 resources for high-accuracy operations. The method combines Karatsuba extension and modular reduction to reconstruct the required precision, offering a viable path for achieving high accuracy on resource-constrained platforms.
Key concepts
- DGEMM Emulation
- This is the process of simulating a high-precision calculation (FP64 matrix multiplication) using hardware optimized for lower precision (like FP8). Since direct FP64 units are scarce, the scheme breaks down the complex double-precision problem into simpler, manageable low-precision steps that can be handled by available units.
- Ozaki-II Scheme
- This is a framework for matrix multiplication emulation based on Chinese Remainder Theorem (CRT) and long integer multiplication. It works by decomposing an FP64 matrix into several lower-precision matrices, multiplying those pieces, and then combining the results to reconstruct the final high-precision answer.
- FP8 Quantization Limitation
- Directly using FP8 for emulation is difficult because it severely limits the range of reconstructed integers due to fixed-point representation. The proposed method overcomes this by using a hybrid construction: modular reduction for square moduli and a Karatsuba extension for nonsquare ones, ensuring sufficient dynamic range.
Terminology used across episodes
This episode discusses
- Double-Precision Matrix Multiplication Emulation via Ozaki-II Scheme with FP8 Quantization · Paper Radio
- Ozaki Scheme II: A GEMM-oriented emulation of floating-point matrix multiplication using an integer modular technique
- Emulation of Complex Matrix Multiplication based on the Chinese Remainder Theorem
The paper
Double-Precision Matrix Multiplication Emulation via Ozaki-II Scheme with FP8 Quantization · Read on arXiv
Center for Computational Science at RIKEN · Department of Mathematical Science at Shibaura Institute of Technology
In this paper, we propose a method for emulating double-precision general matrix--matrix multiplication (DGEMM), a fundamental and performance-critical kernel in many high-performance computing applications. Ozaki-I and Ozaki-II are established DGEMM emulation schemes via low-precision matrix multiply-accumulate (MMA) units. For the Ozaki-I scheme, INT8-, FP8-, and FP16-based implementations have been proposed, all of which can be realized based on the same underlying algorithmic structure. In contrast, although INT8-based implementations of the Ozaki-II scheme have been reported, the original algorithm cannot be directly adapted to exploit FP8 MMA units. In several recent architectures, such as NVIDIA Blackwell Ultra and NVIDIA Rubin, INT8 performance has been reduced, making reliance on INT8 alone insufficient. Therefore, we introduce a novel technique to demonstrate DGEMM emulation based on the Ozaki-II scheme that operates on FP8 MMA units. Compared to the FP8-based Ozaki-I scheme, our method significantly reduces the computational cost and enables efficient FP64 emulation.
DOI: 10.1109/SC51908.2026.00093
Transcript
Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.
Tom: We're looking at the paper: "Double-Precision Matrix Multiplication Emulation via Ozaki-II Scheme with FP8 Quantization".
Paper summary: Tom: So we're looking at this paper called "Double-Precision Matrix Multiplication Emulation via Ozaki-II Scheme with FP8 Quantization". Basically, the main idea is they're trying to figure out how to copy double-precision matrix multiplication, that's DGEMM, using these lower precision eight bit units.
Jane: So what that means for us right now is they're tackling a big problem in high performance computing where you need full accuracy but you want to use faster hardware that favors lower precision formats. They claim this new method lets you do FP64 emulation on these eight bit units, which is really important because INT8 performance has been dropped on some recent chips.
Lu: The core thesis here is that the Ozaki-II scheme, which relies on Chinese Remainder Theorem for long integer multiplication, has this structure that naturally fits well with those eight bit matrix multiply accumulate units they're using. But the paper points out a major hurdle with direct FP8 quantization because it severely limits how many integers you can reconstruct accurately when you combine all those low precision products.
Meng: I worry about the practicality of that limitation, because if you limit your integer range too much, you lose the ability to even get decent FP32 accuracy, let alone full FP64. What they're proposing is a hybrid approach where they mix in a Karatsuba extension and a modular reduction formulation to try and overcome that dynamic range issue with the FP8 units.
Lalam: I see how they are trying to solve that dynamic range problem by using different math techniques depending on the size of the modulus they choose, which is pretty smart because it shows you don't have to use just one trick for every case.
Tom: So the method involves combining a Karatsuba based extension with this modular reduction formulation, and they select their moduli from a specific set that scans down from two fifty six and picks numbers that are pairwise coprime to all the others. They claim this selection strategy ensures that at least fourteen moduli are needed to emulate FP64 arithmetic <ref:2603.10634#pg1>.
Paper summary: Jane: Fourteen moduli sounds like a lot of work, but it’s what they need for the principle of accurate approximation, which they say when you pick fourteen moduli, the product P becomes large enough so that the matrices A prime and B prime provide sufficiently accurate approximations of the diagonal elements multiplied by A and B respectively.
Lu: That part about needing fourteen moduli is key because it sets a minimum requirement for how many low precision operations you have to do, which directly impacts how much computation you need to run this emulation scheme <ref:2603.10634#pg1>. They're essentially saying that to get close to FP64, you have to multiply a lot more than just a few numbers together.
Meng: From my side, I’m looking at the trade-off here: they say this approach reduces the number of matrix multiplications compared to an existing FP8 based Ozaki-I scheme, but it requires about two point five times more matrix multiplications than the INT8 based Ozaki-II scheme. That sounds like a significant overhead when you're thinking about deployment costs and latency.
Lalam: It means that while they are reducing the raw count of multiplications, they are adding complexity in terms of the total number of operations required for every single multiplication step.
Tom: And they do give us some performance modeling results, predicting that under Rubin like hardware specifications, this FP8 based Ozaki-II emulation could actually exceed two hundred teraflops per second. That’s a substantial number when you compare it to native FP64 DGEMM performance on those same chips.
Jane: But we have to remember the caveats they mentioned earlier; even with all those moduli selected, the resulting product P still has a limit where it's less than two to the power of forty seven, which severely limits the dynamic range of integers reconstructed via that Chinese Remainder Theorem.
Lu: That limitation is important because it means even when you use this new hybrid construction, you are still working within constraints that make accurately emulating FP32 arithmetic difficult, not just FP64. It's a constraint they’ve had to manage carefully.
Paper summary: Meng: So what this means for someone actually deploying a model, it suggests that if your hardware really struggles with INT8 capacity, this method might be necessary for getting the accuracy you need without jumping straight back to full FP64 operations everywhere. But we also see a caveat in their working memory analysis where they say this FP8 based method requires a larger working memory footprint than the INT8 based Ozaki-II scheme because of extra temporary buffers needed.
Lalam: So, to summarize, it's a way to bridge the gap when you can't use INT8 effectively on newer hardware by using an FP8 quantization technique with a hybrid math approach.
Tom: Exactly. And while they show this method is faster than some other emulation schemes in terms of raw multiplication count, they’re not saying it’s better for every single scenario; the comparison between the INT8 based and FP8 based Ozaki-II shows that on platforms where INT8 capacity is sufficient, the simpler INT8 approach is actually preferable for both throughput and working memory.
Jane: So the big picture here seems to be that this paper explores a specific pathway for achieving high precision emulation when low precision hardware forces you away from simple integer schemes, but it clearly shows that there are still trade-offs in terms of memory usage and operation count compared to other established methods.
Lu: I think what this paper really contributes is showing how to adapt the Ozaki-II framework—which is usually tied to lower precision—to a format like FP8 while still maintaining enough accuracy for demanding matrix operations, even if you have to add complexity in the way you select your moduli.
Meng: For production deployment, we need to keep an eye on that memory increase and the overhead of those extra Karatsuba and modular reduction steps they introduced; those are things that will eat up resources at scale.
Lalam: So for now, this paper gives us a blueprint for how to try and get double precision results when you can't afford the full double precision math everywhere because of hardware constraints on eight bit units.
Conclusion: Tom: So we’ve been looking at how this paper tackles emulating double precision matrix multiplication using eight bit units, specifically focusing on the Ozaki-II scheme with FP8 quantization, and now we’re getting to what all this actually means for us.
Jane: It basically takes a very accurate way to do matrix math—double precision—and tries to squeeze it onto hardware that prefers low precision like eight bit units by using this specific mathematical trick called the Ozaki-II scheme with FP8 quantization.
Lu: The authors are building a technique where they use long integer multiplication via the Chinese Remainder Theorem to reconstruct those high precision results from lower precision pieces, and they’re testing how that works when you use FP8 units.
Meng: What I’m looking at is the title itself; it sounds like they’re trying to build a bridge between two very different worlds: high accuracy matrix math and low power hardware. But the paper suggests this isn't a simple swap of numbers.
Tom: Right, it's more than that. The authors are showing how you can actually get results that are close to what you’d get from full double precision, even on these eight bit units, by carefully choosing how they decompose the matrices and pick their specific low precision moduli.
Jane: So the main point is that this method opens up a way for those demanding matrix problems to run on hardware that isn't designed for full double precision arithmetic, which is pretty cool when you’re trying to make things efficient.
Lu: They’ve got a hybrid construction going on too, mixing a Karatsuba extension with some modular reduction stuff depending on the size of the number they are working with, which helps them manage those limitations we talked about earlier regarding dynamic range.
Meng: From a deployment standpoint, it seems like this is aimed at architectures where INT8 performance has been cut way down and you still need decent accuracy for certain workloads, but I'm watching that working memory analysis closely because they say it needs more memory than the simpler INT8 version.
Tom: Exactly. The paper shows the trade-off: you can get comparable or higher precision while reducing the number of matrix multiplications compared to some other FP8 schemes, but you have to accept a bigger operation count for each step.
Jane: So it’s about finding that sweet spot where you get better accuracy without completely abandoning the low precision units, even if it means more work per calculation.
Lu: What this really changes is how we think about deploying complex AI models on these new specialized hardware platforms; it suggests a viable path for maintaining numerical integrity while leveraging low precision computation.
Meng: And it’s definitely interesting because they do give us some performance modeling that predicts this could hit over two hundred teraflops per second under certain hardware setups, which is a big number compared to native FP64 on those chips.
Tom: So the conclusion is that this paper provides a practical way to emulate double precision matrix multiplication using FP8 units through a specific hybrid approach, showing it’s viable for architectures where INT8 capacity is limited.
Jane: And what you have to watch next is how they handle those performance predictions and see if those numbers actually hold up when you put them into real-world production systems.
More episodes
- The day in conversation for 2026-12-05
- Daily Summary for 2026-12-05
- 2607.26500-Multi-Decoder OneRec: Controllable Generative Retrieval for Multi-Objective Industrial Recommendation
- 2607.27976-Load balancing in parallel infinite-server queues with action delay via phase representation
- 2607.28574-Finite Pinwheel Covering
- 2608.07026-PyFlow: An Inter-procedural Static Analysis Framework for Python
- 2608.09305-Dilatations of categories, via their lean formalization
- 2608.16406-SATisfying the High School Identities but not Wilkie's Identity
- 2609.02062-SPAR: Enhancing Industrial-Scale Generative POI Recommendation via Real-World Spatial Perception
- 2609.03661-Point&Spawn: Mid-Air Reference-Free Object Instantiation Using Gaze and Hand Gestures in Extended Reality