← Latest papers
🤖 AI

TileMix: Tile-Centric Mixed-Precision Attention for LLM Inference Acceleration

TileMix is a training-free, tile-centric mixed-precision kernel that accelerates long-context LLM inference by dynamically routing hardware-aligned attention score tiles between FP16 and INT8 paths within a fused dense attention operation, thereby recovering the accuracy lost by uniform low-precision methods while improving throughput.

Original authors: Hanzhi Zhang, Qiao Zhang, Qinglei Cao, Heng Fan, Yan Huang, Kewei Sha, Yunhe Feng

Published 2026-08-19
📖 5 min read🧠 Deep dive

Original authors: Hanzhi Zhang, Qiao Zhang, Qinglei Cao, Heng Fan, Yan Huang, Kewei Sha, Yunhe Feng

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

Large language models have become the engines behind a new generation of artificial intelligence, capable of summarizing entire books, answering complex questions from long documents, and holding conversations that span thousands of words. To do this, these models rely on a mechanism called attention, which allows them to weigh the importance of every word in a sentence against every other word. When the text is short, this process is quick. But as the context grows to include entire chapters or legal contracts, the computational cost explodes. The model must calculate a score for every possible pair of words, creating a massive grid of data that demands enormous amounts of memory and processing power. This bottleneck has made it difficult to run these powerful tools efficiently on standard hardware, especially when dealing with the long sequences required for real-world tasks like legal analysis or medical record review.

Researchers have tried to solve this by simplifying the math. One common approach is to lower the precision of the numbers the computer uses, switching from high-accuracy calculations to faster, lower-precision ones. This is like switching from measuring ingredients with a laboratory scale to using a kitchen spoon; it is much faster, but if you do it for every single step of a complex recipe, the final dish might taste wrong. Another approach is to skip calculations entirely, ignoring words that seem unimportant. While this saves time, it risks cutting off the very connections the model needs to understand the story. The challenge has been finding a way to use the speed of low-precision math without sacrificing the accuracy of the high-precision kind, all while keeping the model's ability to see the full picture.

A team of researchers has introduced a new method called TileMix that tackles this problem by treating the attention process not as a single, uniform block of work, but as a collection of smaller, manageable tiles. Imagine the massive grid of word-pair scores as a large mosaic. Instead of painting the entire mosaic with one type of paint, TileMix divides it into small, hardware-aligned square sections. For each of these sections, the system makes a split-second decision: does this specific group of word pairs need the high-precision, slow calculation, or can it get away with the fast, low-precision one? This decision is made based on a pre-planned map that groups these tiles together, allowing the computer to switch between high and low precision within the same operation without stopping to reorganize the data.

The core of this innovation is a routing system that acts like a traffic controller for the computer's processor. It packs these decisions into a compact code, essentially a string of bits that tells the processor which path to take for each tile. If a tile is marked for high precision, the processor uses its most accurate math units. If it is marked for low precision, it switches to its fastest, energy-efficient units. Crucially, both paths update a shared memory state that keeps track of the overall results, ensuring that the final output remains consistent. This allows the system to preserve the full connectivity of the model—meaning no word interactions are ever ignored—while still reaping the speed benefits of low-precision math for the parts of the calculation that can tolerate it.

In their experiments, the researchers tested this method on several popular large language models, including LLaMA, Qwen, and Vicuna, using sequences ranging from 16,000 to 64,000 words. They compared their approach against the standard high-precision method and a version that used low-precision math for everything. The results showed that using low-precision math for the entire calculation often led to a significant drop in accuracy, causing the model to miss details or fail at retrieval tasks. However, TileMix was able to recover most of that lost quality. By carefully routing only specific groups of tiles to the high-precision path, the system maintained accuracy levels very close to the full high-precision baseline, while simultaneously achieving much faster processing speeds.

The study also explored different patterns for deciding which tiles should get the high-precision treatment. They found that the arrangement mattered; some patterns, which kept high-precision calculations in specific spatial regions of the word grid, worked better than others depending on the task. For instance, certain layouts that preserved high precision for local word interactions performed better on factual recall tasks, while others were more robust for general question answering. The researchers demonstrated that this method could be applied without retraining the models, meaning it could be deployed immediately on existing systems. They also showed that the approach works well with variable-length batches and different model architectures, suggesting it is a flexible tool for improving efficiency.

Ultimately, TileMix offers a controllable balance between speed and accuracy. It suggests that the future of efficient long-context processing does not require choosing between being fast or being smart. Instead, by intelligently mixing the two, systems can process long documents at a speed that approaches the theoretical limits of the hardware, without the severe accuracy penalties that come from using low-precision math everywhere. This approach provides a practical path forward for deploying large language models in scenarios where both speed and precision are critical, such as real-time analysis of massive datasets or interactive tools that need to understand long, complex contexts instantly.

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 →