Papers
arxiv:2608.27875

HyQuant: Hybrid-Precision Quantization for LLM Attention

Published on Aug 28
· Submitted by
Jiatong Ding
on Sep 11
Authors:
,
,
,
,
,
,
,
,
,
,

Abstract

HyQuant improves low-bit LLM attention quantization by preserving critical vertical-line tokens and local windows in high precision while quantizing the rest, maintaining accuracy with low overhead.

Quantization has been widely adopted in LLM training and inference to reduce cost and improve efficiency. However, low-bit quantization of the attention module often introduces large errors at very low bit-widths, causing performance degradation. Existing methods mainly rely on smoothing techniques to handle outliers, while we propose a hybrid quantization design to better balance accuracy and efficiency. Specifically, we propose HyQuant, an efficient hybrid quantization framework for LLM attention. HyQuant quantizes most attention states into low-bit formats while retaining a small set of vertical-line tokens and local-window states in high precision. These accuracy-critical regions are selected using lightweight vertical-line-aware attention-pattern signals, reducing quantization error with limited overhead. In the Prefill stage, HyQuant uses a hybrid-precision quantized attention operator that preserves vertical-line tokens and a local sliding window in full precision while quantizing the remaining context. In the Decode stage, HyQuant applies the same principle to KV-cache compression and fuses KV dequantization with attention computation to improve memory and hardware efficiency. Across diverse tasks, models, and datasets, HyQuant maintains nearly lossless accuracy with an extremely simple design, demonstrating the efficiency and practical feasibility of hybrid quantization for LLM attention. Code is available at: https://github.com/jerrysfls/HyQuant .

Community

Paper author Paper submitter

HyQuant: Hybrid-Precision Quantization for LLM Attention (EMNLP 2026 Main)

Low-bit attention / KV-cache quantization often hurts long-context reasoning,
because the error concentrates on a small set of tokens. Across Qwen3, Llama-3,
Gemma 4 and Qwen3.5, we observe persistent "vertical lines" in attention maps:
the top-5% key positions plus a 128-token local window capture 82-86% of the
attention mass.

HyQuant keeps these vertical-line tokens and the local window in FP16 and
quantizes the rest to 4-bit (K4V4), with fused hybrid-precision kernels for both
prefill and decode, saving memory by preventing KV cache materialization. Identifying the vertical lines costs only 3-5% of runtime.

Highlights (single H100):

  • Decode kernel up to 3.58x faster than FlashAttention-2 at 32K context;
    end-to-end decode 1.04-1.17x faster, while KIVI / KVTuner end up slower than FA2 (0.69-0.80x)
  • Near-full-precision accuracy: LongBench avg 45.04 vs. 44.59 for FA2 on Qwen3-8B
    (thinking mode), vs. 37.7-40.5 for KIVI / SageAttention / KVTuner; results hold
    on Qwen3-32B, Llama-3.1-8B and GLM-4-9B
  • Only method that still runs at batch 16 with a 32K prefix (231.6 tok/s);
    FA2, KIVI and KVTuner run out of memory

Code: https://github.com/jerrysfls/HyQuant
Happy to answer questions!

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2608.27875
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2608.27875 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2608.27875 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2608.27875 in a Space README.md to link it from this page.

Collections including this paper 1