Metraipolis › archive › dc_1683ad535fd0
TriAttention: Unified Sparse Mixed-Precision Attention for Long-Context LLM Inference — arXiv:2611.07256
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.07256
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-06T14:42:15.823Z
- SHA-256 of the archived text
819270e2ff3ee65f9f4f2757fd618cb0e69ce31fb9a04c61b9e87977005ce1ae- Stable URL of this page
https://metraipolis.com/documento/dc_1683ad535fd0
How to cite
TriAttention: Unified Sparse Mixed-Precision Attention for Long-Context LLM Inference — arXiv:2611.07256 — arXiv (en), https://arxiv.org/abs/2611.07256 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1683ad535fd0 (Metraipolis archive dc_1683ad535fd0, sha256 819270e2ff3ee65f9f4f2757fd618cb0e69ce31fb9a04c61b9e87977005ce1ae)
BibTeX
@misc{dc1683ad535fd0,
title = {TriAttention: Unified Sparse Mixed-Precision Attention for Long-Context LLM Inference — arXiv:2611.07256},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.07256},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1683ad535fd0; sha256 819270e2ff3ee65f9f4f2757fd618cb0e69ce31fb9a04c61b9e87977005ce1ae},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.07256. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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 this https URL . Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2611.07256 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-06T14:18:42.670Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).