cuDNN Linear Attention: Optimized Mamba-2, GDN, GDP, KDA, and GDN-2 Kernels for NVIDIA GPUs
New in State-space sequence models (S4, Mamba); no direction yet. State-space sequence models (S4, Mamba)
Abstract (arXiv)
Linear attention replaces the softmax attention of Transformers with a fixed-size recurrent state, so that the runtime of prefill grows linearly rather than quadratically with the sequence length and the runtime of every decode step is constant in it. Many recent models have adopted a hybrid architecture where some layers swap dense attention for linear attention variants. cuDNN now ships optimized fused kernels for five linear attention variants, Mamba-2, Gated DeltaNet (GDN), Gated DeltaProduct (GDP), Kimi Delta Attention (KDA), and Gated DeltaNet-2 (GDN-2), on Blackwell (SM100, SM103), covering the training forward and backward passes. All of the kernels are open source and ship in cuDNN at https://github.com/NVIDIA/cudnn-frontend. In this paper, we walk through the optimizations that produce speedups over the state-of-the-art baselines. We start the kernel design from a single persistent kernel per pass. Then, in low B · H settings, where a grid of one CTA per (batch, head) pair does not cover the SMs, we use intra-card context parallelism (intra-card CP) or a split of the value dimension (split-dv), both introduced by prior work in FlashQLA. We also fuse the other components that surround the linear attention operation in the block, the L2 normalization of the queries and keys and the gate and write-strength transforms, in both the forward and the backward pass. On GB200, the fused kernels for the four delta-rule variants run up to 7.1× faster than the reference Triton implementations in the forward pass and up to 8.1× in the backward pass, up to 3.2× faster than FlashQLA, and up to 6.1× faster than FlashKDA. The Mamba-2 kernels run up to 15.9× faster than FLA and up to 4.2× faster than mambassm in the forward pass, and up to 6.9× and 5.5× in the backward pass.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Submitted 26 Nov 2026, announced 30 Nov 2026.
Builds on
No reference list yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024DF-GNN: Dynamic Fusion Framework for Attention Graph Neural Networks on GPUs
- 2026A Persistent-State Dataflow Accelerator for Memory-Bound Linear Attention Decode on FPGA
- 2026Systolic Linear Attention: Co-Designing Tile-Grouped Gated Delta Attention for TPUs
- 2023MaxK-GNN: Extremely Fast GPU Kernel Design for Accelerating Graph Neural Networks Training
- 2024FlashRNN: I/O-Aware Optimization of Traditional RNNs on modern hardware
- 2025AutoSAGE: Input-Aware CUDA Scheduling for Sparse GNN Aggregation (SpMM/SDDMM) and CSR Attention
- 2019Benchmarking TPU, GPU, and CPU Platforms for Deep Learning
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture