cs.CVAug 17, 2026

SQuad: Sub-Quadratic Attention Distillation for Efficient Video Generation

Authors: Animesh Karnewar, Denis Korzhenkov, Amirhossein Habibian, Mohsen Ghafoorian

Organizations: Qualcomm AI Research

Abstract

Video Diffusion Transformers (DiTs) spend most of their compute inside the Self-Attention operation, whose cost grows quadratically, O(n2)\mathcal{O}(n^2), with the number of latent tokens nn. For the task of video generation, the token count is large, so this term dominates runtime and memory, and thereby caps the resolution and duration we can generate. Linear O(n)\mathcal{O}(n) and low-rank O(nk)\mathcal{O}(nk) surrogates of Self-Attention trade the full softmax QKTQK^T for cheaper kernels, but rarely recover the original's expressivity, leaving a stubborn quality gap. Motivated by this, we propose SQuad, a Sub-Quadratic Attention Distillation framework that achieves a complexity of O(nn)\mathcal{O}(n\sqrt{n}) in the resulting distilled Attention, naturally balancing the efficiency v/s expressivity trade-off. Instead of training our own Video DiT from scratch, which is prohibitively expensive, we fit a pretrained full softmax Self-Attention DiT into our proposed SQuad-Attention one by distilling the former in two stages: Flow-Matching Supervised Fine-Tuning (SFT), followed by improved Distribution Matching Distillation (DMD2) which additionally makes the sampling more efficient. On the Wan~2.2 5B text-to-video model, SQuAD matches the quadratic teacher on VBench (83.2083.20 v/s 83.0883.08) while cutting the per-step per-block attention FLOPs by \sim$$67\times and attention latency by \sim$$11\times, and end-to-end DiT latency by 2×\times, all while also generating a video in only 66 Neural Functional Evaluations (NFEs) instead of the default 100100.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Where Compute Matters: Heterogeneous Attention for Efficient Video Diffusion

    Sep 25, 2026Olga Zatsarynna, Denis Korzhenkov, Juergen Gall +2Video Diffusion ModelsDiffusion Model Inference Acceleration