← Latest papers
💻 computer science

BF16 Component-Product Emulation of FP32 and FP64 GEMM on Intel AMX

This paper presents a CPU-oriented algorithm that leverages Intel AMX BF16 matrix products to emulate high-precision FP32 and FP64 GEMM operations, achieving competitive throughput and tunable accuracy by decomposing operands into multiple low-precision components and accumulating them in higher precision.

Original authors: Bing Cui, Yu Liu

Published 2026-09-07✓ Author reviewed
📖 4 min read☕ Coffee break read

Original authors: Bing Cui, Yu Liu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Modern computers are built with a growing split in their internal machinery. On one side, there are powerful engines designed specifically for artificial intelligence, which excel at performing billions of simple calculations very quickly. These engines work best with numbers that are short and simple, sacrificing a tiny bit of detail for massive speed. On the other side, the world of scientific discovery—simulating weather patterns, modeling how atoms bond, or predicting fluid flow—still relies on numbers that are long and precise. These scientific calculations need every bit of detail to remain stable and accurate, but the standard computer parts that handle them are often slower and less efficient than the new AI engines. This creates a dilemma: scientists need the speed of the new hardware, but they cannot afford to lose the precision their work demands.

Researchers at Maginfra Co., Ltd. in China have explored a way to bridge this gap using a specific type of computer chip called Intel AMX. Their goal was to see if the fast, low-precision AI engines could be tricked into performing the slow, high-precision math required for science. Instead of asking the chip to do the hard math directly, they broke the problem down into smaller, simpler pieces. Imagine trying to measure a very long distance with a ruler that only has markings for whole inches. You could measure the whole inches, then measure the remaining fraction, then measure the tiny sliver left over, and add them all together to get a precise total. The researchers applied this same logic to numbers. They took a single complex number and split it into several simpler parts that the fast AI engine could handle easily. They then ran many quick calculations on these parts and carefully added the results back together to reconstruct the final, highly accurate answer.

The team tested this approach on two different levels of precision. First, they tackled single-precision math, which is the standard for many scientific applications. They found that by splitting each number into three parts and running six specific calculations, they could achieve results that were just as accurate as the best existing software, but significantly faster. On the computer chips they tested, this method ran between 1.14 and 2.56 times faster than the standard way of doing the math. The speedup was most noticeable with larger sets of data, where the overhead of splitting and reassembling the numbers became less important compared to the sheer speed of the calculations.

When they moved to double-precision math, which is even more exact and used for the most demanding scientific simulations, the challenge increased. Here, the researchers had to split each number into six parts. Because the calculations needed to be reassembled with extreme care, the process became more complicated. They tested different versions of this method, keeping anywhere from six to twenty-one of the small calculation pieces. They discovered a clear trade-off: keeping more pieces made the answer more accurate, but it also slowed the process down. With just six pieces, the method was fast enough to beat the standard software for very large problems, running up to 1.7 times faster. However, as they added more pieces to improve accuracy, the extra work required to manage them ate up the speed advantage. Eventually, trying to keep twenty-one pieces made the method slower than the standard approach, even though it was more accurate.

The study also highlighted that this technique is not a universal fix for every situation. It works best when the numbers being calculated stay within a specific range, similar to how a ruler with a limited length cannot measure a distance that is too vast or too tiny without special adjustments. The researchers noted that their method does not work for every possible type of number, particularly those that are extremely large or extremely small, and it does not guarantee a perfect, bit-for-bit match with existing software. Instead, it offers a new tool for scientists who need high speed and high accuracy, provided their data fits within the method's limits. By showing that low-precision hardware can be used to solve high-precision problems, the work suggests a future where the specialized engines built for artificial intelligence can also accelerate the heavy lifting of scientific discovery.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →