mlsanityData to 14 Oct 2026

ThriftAttention: Selective Mixed Precision for Long-Context FP4 Attention

arXiv 2605.23081 ↗First posted 21 May 2026cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Efficient attention algorithms are critical to mitigate the quadratic cost of attention in long-context workloads. Prior work utilises block-scaled quantisation techniques on Blackwell GPUs to move attention computation to 4-bit precision to accelerate inference. However, these techniques result in significant quality degradation in long-context settings. We show that the output impact of quantisation error is highly non-uniform and increases with the importance of each query-key interaction, concentrating functionally relevant error in a small number of attention blocks that contain the most important tokens. We propose ThriftAttention, a low-bit attention variant that delivers near-FP16 long-context quality at FP4 inference efficiency. This approach proceeds in two stages. First, a heuristic rapidly selects a small number of important query-key block pairs for FP16 precision. Second, the selected blocks are computed in FP16 and the remaining blocks in FP4, with both paths merged via online softmax into a single output. We demonstrate across long-context benchmarks and model families that by computing only 5% of query-key blocks in FP16, ThriftAttention recovers on average 89.1% of the FP4-to-FP16 performance gap. We show ThriftAttention's advantage grows with sequence length, mitigating the systematic FP4 quality degradation observed at longer contexts. The code is available at https://github.com/joesharratt1229/ThriftAttention.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 46 of its 52 references that are in the map. First posted on arXiv 21 May 2026.

Builds on

46 of 52 references.

References · 46

  1. 2017Attention Is All You Needcited by 60,361
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  4. 2025Qwen3 Technical Reportcited by 8,820
  5. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  7. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  9. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  11. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
  12. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
34 more
  1. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
  2. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  3. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  4. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  5. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
  6. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
  7. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
  8. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  9. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
  10. 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMscited by 634
  11. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
  12. 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 558
  13. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  14. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  15. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 501
  16. 2024SpinQuant: LLM quantization with learned rotationscited by 471
  17. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  18. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
  19. 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 208
  20. 2023Efficient Large Language Models: A Surveycited by 186
  21. 2024SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Accelerationcited by 160
  22. 2023Microscaling Data Formats for Deep Learningcited by 152
  23. 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
  24. 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 120
  25. 2024SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantizationcited by 114
  26. 2026Ministral 3cited by 114
  27. 2025Pretraining Large Language Models with NVFP4cited by 76
  28. 2025SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Trainingcited by 66
  29. 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 66
  30. 2025SLA: Beyond Sparsity in Diffusion Transformers via Fine-Tunable Sparse-Linear Attentioncited by 58
  31. 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
  32. 2025FP4 All the Way: Fully Quantized Training of LLMscited by 40
  33. 2025Quartet: Native FP4 Training Can Be Optimal for Large Language Modelscited by 39
  34. 2024TurboAttention: Efficient Attention Approximation For High Throughputs LLMscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Runtime-Certified Bounded-Error Quantized Attention
  2. 2026Attn-QAT: 4-Bit Attention With Quantization-Aware Training
  3. 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference
  4. 2025SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefilling
  5. 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs
  6. 2026LeapQuant: Efficient Linear Attention with Accurate Recurrent State Quantization
  7. 2026SageBwd: A Trainable Low-bit Attention
  8. 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference