← Latest papers
🤖 AI

FlashMLA-ETAP: Efficient Transpose Attention Pipeline for Accelerating MLA Inference on NVIDIA H20 GPUs

This paper introduces FlashMLA-ETAP, a novel framework utilizing an Efficient Transpose Attention Pipeline to significantly accelerate Multi-Head Latent Attention inference on NVIDIA H20 GPUs by optimizing WGMMA operations, achieving substantial speedups over existing methods while maintaining high numerical stability.

Original authors: Pengcuo Dege, Qiuming Luo, Rui Mao, Chang Kong

Published 2026-06-03
📖 4 min read☕ Coffee break read

Original authors: Pengcuo Dege, Qiuming Luo, Rui Mao, Chang Kong

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 or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to read a very long book (the "context") to answer a single, short question (the "query"). This is essentially what a large AI model like DeepSeek-R1 does when it generates text: it looks back at everything it has read so far to decide what word to say next.

The paper introduces a new method called FlashMLA-ETAP, which is like teaching the AI a smarter way to flip through the pages of that book, specifically for a type of computer chip called the NVIDIA H20.

Here is the breakdown of the problem and the solution using everyday analogies:

The Problem: The "Awkward Shelf" Issue

Think of the NVIDIA H20 GPU as a librarian working in a library with a specific rule: Shelves must be at least 64 books wide to be stable. If you try to put only 16 books on a shelf, the librarian has to fill the empty space with dummy books (padding) so the shelf doesn’t collapse. This wastes time and energy.

In the AI world, the "books" are the attention heads (the parts of the brain focusing on different things). When running the huge DeepSeek-R1 model on a single server with 8 H20 GPUs, the work is split up. Each GPU ends up handling only 16 heads.

Because 16 is less than the required 64, the H20 GPU has to do a lot of "dummy work" (padding) to satisfy its hardware rules. It’s like forcing the librarian to carry 64 empty boxes just to transport 16 real ones. This makes the AI slow and inefficient, especially when the "book" it’s reading is very long (long context) but the question it’s answering is very short (just one word at a time).

The Solution: Turning the Book Sideways (ETAP)

The authors created a technique called ETAP (Efficient Transpose Attention Pipeline). Instead of trying to force the 16 heads to fit the 64-wide shelf rule, they turn the problem sideways.

Imagine instead of looking at 16 heads across a short row, you look at the length of the book (which could be thousands of pages) as the main dimension. Since the book is very long, it easily fills the "64-wide shelf" requirement without needing any dummy books.

By swapping the dimensions—treating the long history of the conversation as the main "width" and the short question as the "height"—the H20 GPU can work at full speed without wasting time on empty padding. It’s like realizing that instead of trying to fit 16 small items into a large box, you should stack them vertically where there is plenty of room.

The Results: Faster and More Accurate

The paper claims that this "sideways" approach makes a huge difference on the H20 GPU:

  1. Much Faster: At long conversation lengths (64,000 words), FlashMLA-ETAP is 2.78 times faster than the previous best method for this specific model (FlashMLA). It is also significantly faster than other popular methods like FlashAttention-3 and FlashInfer.
  2. More Accurate: Usually, when you try to speed up AI calculations, you might lose a bit of precision (like rounding numbers too aggressively). However, this new method is actually more accurate than FlashAttention-3, with a much lower error rate (RMSE). It’s like reading the book faster and understanding it better.

Why It Matters

Most AI optimizations are designed for super-expensive, high-end chips (like the H100). The H20 is a "mid-tier" chip—good, but not the most powerful. This paper shows that with the right software trick (ETAP), you can make mid-tier chips perform much better for specific tasks. It’s like finding a way to make a standard sedan drive as efficiently as a sports car on a specific type of road, by changing how you shift gears.

In short: FlashMLA-ETAP is a software update that tells the NVIDIA H20 GPU to reorganize how it reads long AI conversations, eliminating wasted effort and making the AI respond faster and more accurately.

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 →