TL;DR
TileQuant is a training-free mixed-precision quantization framework that uses hardware-aligned 2D tiles as the fundamental unit for precision allocation in Large Language Models (LLMs). By selectively retaining only the most sensitive weight tiles at 16-bit precision while quantizing the rest to 8-bit, it achieves up to a 2.66× throughput speedup over original 16-bit models while maintaining, and in some cases exceeding, original model quality across reasoning and long-context tasks.
What Problem Does This Paper Address?
Quantizing LLMs—reducing the numerical precision of weights to save memory and compute—is a double-edged sword. While it slashes deployment costs, it often degrades model performance because not all weights are equally important.
Existing Post-Training Quantization (PTQ) methods generally fall into three buckets:
- Uniform PTQ: Applies the same bit-width to the entire matrix. It's efficient but blunt.
- Importance-Aware PTQ: Adjusts scales within a fixed bit-width. Better, but still limited by the low-bit format.
- Protected-Subset PTQ: Retains specific columns at high precision.
The authors argue that these approaches are too coarse. Sensitivity varies significantly within columns, meaning whole-column retention protects many "lazy" weights, wasting precious high-precision budget. Conversely, fine-grained sparse protection (like protecting individual outlier weights) introduces massive indexing overhead that kills hardware performance.
Methods
TileQuant introduces the 2D weight tile (typically 64x64) as the precision-allocation unit. This choice is strategic: it is fine-grained enough to capture local sensitivity but large enough to align with how GPUs actually perform matrix multiplications (GEMM).
The framework consists of three main stages:
- Calibration: The authors propose two offline routes to score tile importance:
- Input-Activation-Aware (IAA): A fast, forward-only route that combines weight magnitudes with activation statistics.
- Gradient-Informed (GI): A more accurate route that uses loss gradients to identify weights that most impact the model's prediction objective.
- Decision Mapping: Based on a user-defined "retention budget" (e.g., keep 10% of tiles at 16-bit), the highest-scoring tiles are marked for 16-bit retention in a binary decision map.
- Executable Mixed-Precision Kernels: At load time, the model is reconstructed into separate compact buffers for 8-bit and 16-bit tiles. A custom Triton kernel then executes two parallel arithmetic paths (INT8 and FP16) and combines their contributions using local register accumulation, minimizing expensive memory traffic to the GPU's global memory.
Datasets
The authors evaluated TileQuant on Llama-3.2-3B, Qwen2.5-7B, and Qwen2.5-14B across a wide array of benchmarks:
- General Capabilities: WikiText-2 (perplexity), HellaSwag, MMLU, ARC-Challenge, LAMBADA, PIQA, and WinoGrande.
- Long-Context Tasks: LongEval (line retrieval) and LV-Eval (question answering across 9 datasets with contexts up to 256K tokens).
Key Insights and Ideas
- Tiles are the "Goldilocks" Unit: 2D tiles provide the perfect balance between capturing local sensitivity (unlike columns) and maintaining hardware efficiency (unlike unstructured sparsity).
- Memory Traffic is the Bottleneck: The custom kernel's success relies on "output-stationary execution." By accumulating both 8-bit and 16-bit tile products in registers before a single write-back to memory, TileQuant circumvents the memory bandwidth bottlenecks that usually plague mixed-precision implementations.
- GI vs. IAA Trade-off: While Gradient-Informed (GI) calibration provides the best quality preservation, the Input-Activation-Aware (IAA) route is ~3x faster and requires ~64% less peak memory during calibration, making it a viable "budget" option for massive models.
- Quantization as a Regularizer? Intriguingly, in several long-context tasks, TileQuant with 20% retention actually outperformed the original 16-bit model, suggesting that selective quantization might provide a helpful inductive bias or noise-reduction effect.
Key Results
- Throughput: On Llama-3.2-3B, TileQuant reached 2.66× the generation throughput of the original 16-bit model.
- Quality Preservation: With just 1% tile retention, the GI route achieved perplexity within 0.05 of the original model on WikiText-2.
- Long-Context Superiority: On the LV-Eval benchmark, TileQuant (GI-20%) exceeded the original model's performance in 26 out of 27 tested dataset-length settings.
- Efficiency: TileQuant consistently outperformed established baselines like GPTQ, SmoothQuant, and LLM.int8 in both speed and accuracy across the board.
Limitations and Future Work
- Offline Calibration: The precision maps are static. The authors note that "input- or task-adaptive allocation" would require a runtime decision mechanism, which currently adds too much overhead.
- Training Integration: TileQuant is currently a post-training framework. Extending it to the training phase would require new methods for handling gradients and optimizer states in a mixed-precision tiled format.
- Bit-width Exploration: The study focused on 8-bit vs. 16-bit. Future work could explore even lower bit-widths (e.g., 4-bit tiles) to further push the efficiency frontier.
Summary updated