NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Trainable Sparse Attention via Hybrid Top-k+Top-p Masking and Distillation Fine-Tuning

Jintao Zhang, Kai Jiang, Chendong Xiang, Weiqi Feng, Yuezhou Hu, Haocheng Xi, Shuo Yang, Mengfei Xia, Jianfei Chen, Jun Zhu

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Video Understanding & Generation › Efficient Video Diffusion Attention · Type: new method · Keywords: sparse attention, diffusion models, video generation, Top-k masking, Top-p masking, distillation fine-tuning

Areas: Model Architectures & Sequence Modeling › World Modeling Architectures › Sparse Attention for Video Diffusion

Summary

SpargeAttention2 introduces a hybrid Top-k+Top-p masking rule and distillation fine-tuning to achieve 95% attention sparsity and a 16.2× speedup in video diffusion models while preserving generation quality.

Explained to a 5-year-old

A computer program that makes videos was slow because it looked at everything. They made a new way to let it only look at the most important parts, so it becomes faster. They combined two ideas for choosing which parts to look at, which helps avoid mistakes. They also taught the program using a special trick that keeps the videos looking good. Now the videos are made much quicker without losing quality.

Explained to a 5-year-old, longer

A computer program can make videos by paying attention to many details, which takes a lot of time. They wanted to make the program faster by letting it ignore some details. They found that two simple ways of choosing which details to keep sometimes fail when you ignore too much. So they combined those two ways to pick the best details more reliably. They also created a new way to train the program that works like teaching a student by copying a smarter model. This training helps the program keep making good videos even when it looks at fewer details. The new method allows the program to be about 95% faster because it does much less work. It also speeds up the whole process by more than 16 times compared to older methods. The videos still look just as good as before, so the quality is not lost. This makes it possible to generate videos quickly on ordinary computers. It also helps people who need fast video creation for games or movies. Overall, the idea is like giving a brain a shortcut that still sees the important parts.

For a technical reader

The paper addresses the inefficiency of dense attention in diffusion models by introducing a trainable sparse attention scheme. It combines Top-k and Top-p selection to create a hybrid mask that remains robust at very high sparsity levels. An efficient implementation of the sparse attention is provided, along with a distillation-based fine-tuning objective that preserves generation quality. Experiments on video diffusion models demonstrate 95% sparsity and a 16.2× speedup while maintaining visual fidelity. The approach outperforms existing training-free and trainable sparse attention methods.

Problem

Adapting diffusion models with sparse attention is challenging because common masking strategies (Top-k and Top-p) can fail at high sparsity, and fine-tuning with diffusion loss may degrade generation quality. The paper investigates these issues to enable trainable sparse attention that maintains performance while achieving higher sparsity.

Method

It uses a hybrid masking rule that merges Top-k and Top-p to avoid failures at high sparsity, and it implements an efficient trainable sparse attention mechanism. Additionally, a distillation-inspired fine-tuning objective is employed to preserve generation quality while fine-tuning with sparse attention.

Results

The approach reaches 95% attention sparsity and a 16.2× speedup on video diffusion models while maintaining generation quality, outperforming prior sparse attention methods.

Contributions

It identifies failure modes of Top-k and Top-p masking, explains why trainable sparse attention can achieve higher sparsity, and proposes a hybrid masking rule, efficient trainable implementation, and distillation fine-tuning to preserve quality.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction