The year/Independent research

Paper 2602.12675

SLA2: Sparse-Linear Attention with Learnable Routing and QAT

Published
Feb 2026
Research lab
Independent
Citations
15
GitHub
328 stars

01 In brief

Summary

SLA2 is a sparse-linear attention method for diffusion models that addresses two limitations of the prior SLA approach: a heuristic split between sparse and linear branches, and a mismatch between SLA's output and the intended sparse-linear decomposition.

SLA2 introduces a learnable router that dynamically selects which attention computations use sparse or linear attention, a learnable ratio to combine the branches, and quantization-aware training (QAT) for low-bit attention to reduce quantization error.

Experiments on video diffusion models (Wan2.1-1.3B and Wan2.1-14B) show that SLA2 achieves 97% attention sparsity and an 18.6× attention speedup while preserving or even improving generation quality compared to baselines at lower sparsity levels.

The method uses a two-stage training strategy: first, the router and ratio are initialized using a differentiable SoftTop-k operator; second, the full diffusion model is fine-tuned end-to-end.

The learnable router uses pooled queries and keys with learnable projections to generate a mask, and the forward pass is implemented efficiently on top of FlashAttention-style kernels.

Ablation studies confirm the benefits of QAT and the learnable router, and show that lower sparsity levels yield better performance.

02 From the paper

Abstract

Sparse-Linear Attention (SLA) combines sparse and linear attention to accelerate diffusion models and has shown strong performance in video generation. However, (i) SLA relies on a heuristic split that assigns computations to the sparse or linear branch based on attention-weight magnitude, which can be suboptimal. Additionally, (ii) after formally analyzing the attention error in SLA, we identify a mismatch between SLA and a direct decomposition into sparse and linear attention. We propose SLA2, which introduces (I) a learnable router that dynamically selects whether each attention computation should use sparse or linear attention, (II) a more faithful and direct sparse-linear attention formulation that uses a learnable ratio to combine the sparse and linear attention branches, and (III) a sparse + low-bit attention design, where low-bit attention is introduced via quantization-aware fine-tuning to reduce quantization error. Experiments show that on video diffusion models, SLA2 can achieve 97% attention sparsity and deliver an 18.6x attention speedup while preserving generation quality.