The Anatomy of a Triton Attention Kernel
Not on the map. Why?
Abstract (arXiv)
A long-standing goal in both industry and academia is to develop an LLM inference platform that is portable across hardware architectures, eliminates the need for low-level hand-tuning, and still delivers best-in-class efficiency. In this work, we demonstrate that portable, efficient cross-platform LLM inference is indeed possible and share our experience. We develop a state-of-the-art paged attention kernel, the core performance-critical component of many LLM deployments, that builds exclusively on the domain-specific just-in-time compiled language Triton to achieve state-of-the-art performance on both NVIDIA and AMD GPUs. We describe our high-level approach, the key algorithmic and system-level improvements, the parameter auto-tuning required to unlock efficiency, and the integrations into a popular inference server that are necessary to bring the performance of a generic Triton attention kernel from 19.7% of the state-of-the-art to 105.9%. Our results highlight how open-source domain-specific languages can be leveraged to unlock model portability across different GPU vendors.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 11 of its 36 references that are in the map. First posted on arXiv 7 Oct 2025.
Builds on
11 of 36 references.
References · 11
- 2017Attention Is All You Needcited by 59,932
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
- 2020The Hardware Lotterycited by 160
- 2020Agile Autotuning of a Transprecision Tensor Accelerator Overlay for TVM Compiler Stackcited by 4
- 2025GPU Performance Portability needs Autotuningcited by 1
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026FlashSinkhorn: IO-Aware Entropic Optimal Transport on GPUcited by 7
- 2026Demystifying Numerical Instability in LLM Inference: Achieving Reproducible Inference for Mission-Critical Tasks with HEALcited by 2
- 2026Dooly: Configuration-Agnostic, Redundancy-Aware Profiling for LLM Inference Simulationcited by 0
- 2026Demystifying Numerical Instability in LLM Inference: Achieving Reproducible Inference for Mission-Critical Tasks with HEAL19 Jun 2026
- 2026Dooly: Configuration-Agnostic, Redundancy-Aware Profiling for LLM Inference Simulation8 May 2026
- 2026FlashSinkhorn: IO-Aware Entropic Optimal Transport on GPU3 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Ragged Paged Attention: A High-Performance and Flexible LLM Inference Kernel for TPU
- 2026HybridGen: Efficient LLM Generative Inference via CPU-GPU Hybrid Computing
- 2023Efficient LLM inference solution on Intel GPU
- 2026KernelSight-LM: A Kernel-Level LLM Inference Simulator
- 2024NEO: Saving GPU Memory Crisis with CPU Offloading for Online LLM Inference
- 2025HGCA: Hybrid GPU-CPU Attention for Long Context LLM Inference
- 2025Make LLM Inference Affordable to Everyone: Augmenting GPU Memory with NDP-DIMM
- 2025Characterizing LLM Inference Energy-Performance Tradeoffs across Workloads and GPU Scaling