NeurIPS 2026QuestionsPapersAreasAboutMarkdown

BMAttn: Block-Aligned Mixed-Precision Attention Quantization for LLM Inference

Zining Wang, Haojie Duanmu, Zhihang Yuan, Fanliu Kong, Ruihao Gong, Jinyang Guo, Xianglong Liu

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › KV Cache Quantization Compression · Type: new method · Keywords: mixed-precision quantization, attention optimization, LLM inference efficiency, block-aligned computation, hardware-aware algorithms

Areas: Memory › Model Memory Optimization › Efficient Attention for LLMs; Long Context › Long-context mechanisms › Efficient long-context attention; Model Architectures & Sequence Modeling › Language Model Architectures › Sparse Attention

Summary

BMAttn introduces block-aligned mixed-precision attention quantization that balances importance-aware precision allocation with hardware-friendly execution, achieving up to 5x speedup for long-context LLM inference.

Explained to a 5-year-old

Large language models are computer programs that can write and understand text. They have a memory that holds many words at once, but this memory is slow because it checks every word against every other word. To make them faster, we give some parts of the memory less detail and other parts more detail, like using a thick pencil for important parts and a thin pencil for less important parts. We also make sure the thick and thin parts line up in blocks so the computer can read them quickly. This helps the model answer questions faster without making many mistakes.

Explained to a 5-year-old, longer

Large language models are computer programs that can write and understand text. They have a memory that holds many words at once, but this memory is slow because it checks every word against every other word. To make them faster, we give some parts of the memory less detail and other parts more detail, like using a thick pencil for important parts and a thin pencil for less important parts. We also make sure the thick and thin parts line up in blocks so the computer can read them quickly. This helps the model answer questions faster without making many mistakes. The new method also looks at which parts of the memory are most important and adjusts the detail accordingly. It also changes the detail level for different layers of the model, making it even smarter. As a result, the model can run up to five times faster on long texts while still being almost as accurate. This makes it possible to use big language models on smaller devices like laptops or phones. It also saves energy because the computer doesn't have to work as hard. The approach is simple: split the memory into blocks, decide how much detail each block needs, and keep the blocks aligned. This way, the model can handle longer conversations and documents without slowing down. Overall, the method makes big language models faster and more practical for everyday use.

For a technical reader

The paper addresses the quadratic cost of self-attention in long-context LLMs by adaptively allocating precision across attention maps. It blocks the attention matrix into regions of high, low, and sparse precision, using an affine window to align boundaries with sequence length. A saliency-weighted calibration and a layer-adaptive regularizer further tailor precision to importance and layer sensitivity. Experiments show 3.3× to 5× speedups with minimal accuracy loss, making the technique suitable for GPU-friendly inference.

Problem

Deploying LLMs with long context windows is limited by the quadratic computational and memory costs of self-attention. Existing compression methods either uniformly degrade long-range dependencies or cause irregular memory access, creating a trade-off between adaptivity and hardware efficiency.

Method

The approach partitions attention maps into block-aligned high-precision, low-precision, and sparse regions, using an affine windowing mechanism to adjust boundaries based on sequence length. It also employs a saliency-weighted calibration method and a layer-adaptive regularizer to align precision targets with perceptual importance and layer sensitivity.

Results

The approach achieves a 3.3x speedup on long-context tasks with negligible accuracy loss and up to 5x speedup with minimal degradation, bridging algorithmic adaptivity and hardware efficiency.

Contributions

It introduces a block-aligned mixed-precision attention scheme that dynamically allocates precision based on importance while maintaining hardware-friendly execution, along with saliency-weighted calibration and a layer-adaptive regularizer.

Practical relevance

Enables efficient deployment of long-context LLMs on existing hardware, reducing computational cost and memory usage.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction