paper

SQuad: Sub-Quadratic Attention Distillation for Efficient Video Generation

arXiv:2608.16585

Abstract

Video Diffusion Transformers (DiTs) spend most of their compute inside the Self-Attention operation, whose cost grows quadratically, , with the number of latent tokens . 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 and low-rank surrogates of Self-Attention trade the full softmax 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 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 ( v/s ) while cutting the per-step per-block attention FLOPs by and attention latency by , and end-to-end DiT latency by 2, all while also generating a video in only Neural Functional Evaluations (NFEs) instead of the default .

SQuad: Sub-Quadratic Attention Distillation for Efficient Video Generation · wovepaper