TriAttention: Unified Sparse Mixed-Precision Attention for Long-Context LLM Inference
Not on the map. Why?
Abstract (arXiv)
Sparsity and quantization reduce the cost of attention by skipping interactions and lowering the precision of those retained. However, useful interactions differ in their precision requirements: some tolerate low-precision scores while remaining sensitive to removal. We therefore introduce TriAttention, which assigns query-key (QK) tiles to skipping, 4-bit, or 8-bit computation, using 4-bit to retain quantization-tolerant interactions at lower cost. To represent compactly, we encode each head's computation regions with two diagonal-distance boundaries, keeping policy storage independent of context length. Offline calibration then evaluates candidate boundary pairs using normalized projected-output errors and complete-tile execution costs. Using these measurements, a model-wide allocator selects each head's boundaries to minimize calibration error under a shared computation budget. During prefill, the selected boundaries generate precision-grouped traversals for a fused kernel that skips omitted tiles and combines contributions from both QK precisions into one normalized attention output. The quantized keys and values prepared during prefill are then reused in a compressed key-value (KV) cache for decoding, reducing repeated reads of prompt data. Experiments show that TriAttention achieves end-to-end generation speedups of up to 7.88x over the Torch attention and 2.65x over the BF16 baseline. Meanwhile, TriAttention maintains quality comparable to the original models on general-purpose and long-context tasks. These results show how a compact retention-and-precision policy translates local sensitivities into attention computation and repeated KV-cache access. The implementation is https://github.com/HanzhiZhang-Ulrica/TriAttention.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 27 of its 33 references that are in the map. Submitted 5 Nov 2026.
Builds on
27 of 33 references.
References · 27
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 670
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 611
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 469
- 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 448
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 431
15 more
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 330
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 328
- 2024SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Accelerationcited by 191
- 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 167
- 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 156
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 143
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 142
- 2024SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantizationcited by 134
- 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 89
- 2025SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Trainingcited by 81
- 2025LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attentioncited by 48
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 45
- 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformerscited by 18
- 2026ThriftAttention: Selective Mixed Precision for Long-Context FP4 Attentioncited by 7
- 2026Diagonal-Tiled Mixed-Precision Attention for Efficient Low-Bit MXFP Inferencecited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference
- 2025Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inference
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs
- 2025SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefilling
- 2026HyQuant: Hybrid-Precision Quantization for LLM Attention
- 2024TurboAttention: Efficient Attention Approximation For High Throughputs LLMs
- 2026SparDA: Sparse Decoupled Attention for Efficient Long-Context LLM Inference
- 2026AsyncTLS: Efficient Generative LLM Inference with Asynchronous Two-level Sparse Attention