← Latest papers
🤖 AI

TileFuse: A Fused Mixed-Precision Kernel Library for Efficient Quantized LLM Inference on AMD NPUs

This paper introduces TileFuse, a close-to-metal mixed-precision kernel library for AMD XDNA2 NPUs that fuses unpacking, dequantization, and matrix operations to enable efficient, native support for popular AWQ-style quantized LLM inference, achieving significant performance and energy efficiency gains over existing baselines on client edge devices.

Original authors: Wesley Pang, Gregory Hyegang Jun, Feiyang Liu, Deming Chen

Published 2026-06-11
📖 5 min read🧠 Deep dive

Original authors: Wesley Pang, Gregory Hyegang Jun, Feiyang Liu, Deming Chen

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 have a brand new, super-fast delivery truck (the NPU) sitting in your garage, but the only road map you have (the software) tells you how to drive a slow, old bicycle. You can't use the truck's speed because the map doesn't know how to navigate its lanes.

This is the problem with running modern AI chatbots (LLMs) on new laptop chips today. The chips have powerful "AI engines" (NPUs) designed to save battery and run fast, but the software usually forces the AI to change its shape to fit the engine, rather than letting the engine adapt to the AI.

TileFuse is a new set of tools that fixes this. It's like building a custom, high-speed highway specifically for the truck, allowing it to carry heavy loads of compressed data without stopping to repackage them.

Here is how the paper explains this solution using simple analogies:

1. The Problem: The "Repacking" Bottleneck

Usually, to run an AI on these new chips, you have to take the AI's "compressed" weights (which are like books packed tightly into a small suitcase) and unpack them into a bulky format (like taking the books out and laying them flat on a table) just so the chip can read them.

  • The Old Way: The chip reads the suitcase, unpacks the books, puts them back in a different suitcase, and then starts reading. This wastes time and energy.
  • The TileFuse Way: The chip reads the suitcase, opens it, and reads the books while they are still being unpacked. It does everything in one smooth motion.

2. The Solution: "Fused" Kernels

The authors created a library called TileFuse. Think of a "kernel" as a specific instruction manual for the chip.

  • Fusion: Instead of having three separate workers (one to unpack, one to convert, one to calculate), TileFuse combines them into one super-worker. This worker grabs the compressed data, converts it on the fly, and does the math all in one go.
  • The Result: This is like a chef who doesn't just chop vegetables; they chop, season, and cook them in a single, continuous motion. The paper claims this makes the "unpacking" part of the process up to 2.8 times faster for certain tasks compared to older methods.

3. The "Interleaved" Layout: Organizing the Warehouse

Large AI models have massive lists of numbers (weights). The chip's memory system has a limit on how far it can reach to grab the next piece of data. If the data is stored in a messy, scattered way, the chip has to make long, slow trips to get the next piece.

  • The Analogy: Imagine a warehouse where boxes are stacked randomly. A forklift has to drive 50 feet to get the next box.
  • TileFuse's Fix: They rearrange the warehouse (called "Interleaved Pre-tiling") so that the boxes the forklift needs next are right next to each other. This allows the chip to grab huge chunks of data in one smooth sweep, supporting much larger AI models (up to 32,000 items wide) that previously wouldn't fit.

4. The "GEMV" Problem: The Traffic Jam

AI chatbots work in two phases:

  1. Prefilling: Reading a long prompt all at once (like reading a whole book). This is fast and easy for the truck.
  2. Token Generation: Writing one word at a time (like writing a sentence). This is slow and tricky.
  • The Issue: When writing one word at a time, the chip's "truck" often sits idle because it's designed to carry big loads, not small ones. It's like using a semi-truck to deliver a single letter; the engine is running, but the truck is empty.
  • The Fix: TileFuse redesigned the traffic flow for this phase. Instead of sending data to just one lane of the highway, it distributes the work across all 32 lanes of the chip simultaneously. This keeps the whole engine busy, even when the "load" is small.

5. The Real-World Results

The team tested this on real AMD laptops (Ryzen AI) and compared it to using the laptop's standard graphics card (iGPU).

  • Speed: For reading long prompts (prefilling), the NPU with TileFuse was up to 2 times faster than the graphics card.
  • Battery: Because the NPU is more efficient, it used 64% less energy to do the same job.
  • The Catch: For writing one word at a time (token generation), the NPU was sometimes slower than the graphics card. This is because the "setup time" to configure the NPU is too long for such tiny, quick tasks.
  • The Hybrid Solution: The paper suggests a "best of both worlds" approach: Use the NPU for the heavy lifting (reading long prompts) and the graphics card for the quick tasks (writing words). This combination gives the best speed and battery life.

Summary

TileFuse is a bridge. It takes the popular, compressed AI formats that developers already use (like AWQ) and makes them run natively on AMD's new AI chips without needing to change the AI models themselves. By fusing the unpacking and math steps, organizing the data perfectly, and utilizing the full power of the chip's lanes, it makes running AI on laptops significantly faster and more energy-efficient.

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 →