← Latest papers
🤖 machine learning

Tile-Level Activation Overlap for Efficient LLM Inference

This paper introduces two specialized CUTLASS-based SM90 kernels that fuse SwiGLU activation with matrix multiplication at the tile level to eliminate intermediate tensor materialization overhead, achieving up to 2.47x speedup and 79.5% peak utilization on NVIDIA H100 GPUs while outperforming both PyTorch and cuBLAS in efficiency and numerical accuracy.

Original authors: Abhinav Jangda, Tyler Sorensen, Sebastian Burckhardt, Jianlan YE, Chaoyin Li, Atul Gupta

Published 2026-07-07
📖 4 min read☕ Coffee break read

Original authors: Abhinav Jangda, Tyler Sorensen, Sebastian Burckhardt, Jianlan YE, Chaoyin Li, Atul Gupta

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 running a high-speed factory that builds complex robots (these robots are Large Language Models like the ones powering chatbots). To build each robot, your factory has a specific assembly line called the MLP (a core part of the robot's brain).

For a long time, this assembly line has had a major inefficiency. Here is the problem and the solution presented in this paper, explained simply.

The Problem: The "Middleman" Bottleneck

In modern robot factories, a specific step called SwiGLU is used to make the robots smarter. Think of SwiGLU as a quality check that requires two separate calculations:

  1. Calculation A: Measure the robot's current state.
  2. Calculation B: Measure the robot's potential.
  3. The Glue: Combine these two measurements to get the final result.

The Old Way (The Bottleneck):
In the standard factory setup (like the one used by PyTorch), after doing Calculation A, the workers have to write the results down on a giant whiteboard in the hallway (High-Bandwidth Memory). Then, they have to walk over, read that whiteboard, do Calculation B, write that result on a second whiteboard, and finally walk back to read both whiteboards to do the "Glue" step.

The paper found that for smaller robots (smaller AI models), this "walking to the whiteboard" takes up 30% to 37% of the total time. It's like a chef spending half their time walking to the pantry to grab a single spice, rather than cooking.

The Solution: Two New "Super-Kitchens"

The authors built two new, custom-designed kitchens (called Kernels) that eliminate the whiteboards entirely. Instead of writing results down and walking back, the workers keep the ingredients in their hands (in the Registers) and do everything in one continuous motion.

They created two different strategies for different factory sizes:

1. The "Ping-Pong" Kitchen (Kernel-1)

  • How it works: Imagine a relay race. While one worker is fetching the next batch of ingredients (loading data), another worker is already mixing the current batch.
  • The Trick: They use a "Ping-Pong" schedule. While the machine is busy fetching the second set of ingredients, the workers use that exact same time to do the "Glue" math on the first set.
  • Best For: Factories making huge robots (Large Models) or running many robots at once (Large Batches). It's like a massive assembly line where you have enough workers to keep the big machines fully busy.

2. The "Interleaved" Kitchen (Kernel-2)

  • How it works: Imagine you are packing boxes. Instead of packing all the red items, then all the blue items, you pack a red item, then a blue item, then a red one, alternating them perfectly.
  • The Trick: They mix the two weight matrices (the "recipes" for the calculations) together before starting. This allows the workers to grab a "red" and a "blue" ingredient simultaneously and process them together immediately.
  • Best For: Factories making smaller robots or running fewer robots at a time (Small Batches). This method is so efficient that it keeps the factory floor fully packed with workers, preventing anyone from standing around waiting.

The Results: Speed and Accuracy

The authors tested these new kitchens on NVIDIA H100 chips (the most powerful AI processors available) using various robot sizes (from tiny 0.5B models to massive 72B models).

  • Massive Speedups: For the smaller robots, the new kitchens were 2.47 times faster than the old standard. That's like cutting a 10-minute task down to 4 minutes.
  • Shifting the Bottleneck: The old system was "Memory-Bound" (spending too much time walking to the whiteboard). The new system is "Compute-Bound" (spending all its time actually doing the math). They reached 79.5% of the chip's maximum theoretical speed.
  • The Compiler Can't Do It: The authors tried using the standard "auto-pilot" software (PyTorch's torch.compile) to fix this automatically. It failed. The auto-pilot was 3 to 7 times slower than their custom kitchens. This proves that for this specific problem, you need a human expert to hand-craft the solution; the computer can't figure it out on its own yet.
  • Better Accuracy: Surprisingly, the new custom kitchens were also more accurate than the standard method. The standard method had small math errors in 4.5% to 11% of the results, while the new kitchens had zero errors.

Summary

The paper shows that by reorganizing how the factory floor works—specifically by stopping the workers from constantly walking to the whiteboard to read/write intermediate notes—they can make AI models run significantly faster, especially for smaller models used on edge devices (like phones or laptops). They proved that standard software tools cannot replicate this efficiency, requiring specialized, hand-written code to achieve these results.

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 →