InstaGen: Group-Shared Importance Sampling for Fast Video Generation
Organizations: Computer Science and Engineering, Indian Institute of Technology Bombay, India · Electrical Engineering and Computer Sciences, University of California, Berkeley, USA
Abstract
Diffusion Transformers (DiTs) are the dominant architecture for video generation, but their quadratic attention complexity results in substantial computational cost and latency. Permuted block-sparse attention (PBSA) offers a promising approach to reducing this cost by selectively computing blocks of a semantically permuted attention matrix. However, existing approaches typically select only the top few key blocks for each query block, following a top- paradigm. We find that top- selection can be highly sample inefficient in high-entropy attention regimes, which are common in video generation. In these regimes, we show that sampling can provide substantially better approximations under the same computational budget. More generally, we cast block selection as importance sampling, where the top-scoring keys form an exact set that is computed in full and the remaining keys are represented by a sample drawn in proportion to their estimated attention and reweighted by inverse sampling probability. Building on this formulation, we present InstaGen, which can be parameterized by any PBSA method: it replaces the method's block selection with an exact set plus a weighted sample. Each query cluster draws one sample shared by all its queries, so the sampled keys form blocks amenable to efficient GPU execution. In this paper, we take the SVG family of PBSA methods and show that, on Wan2.1-T2V-1.3B and Wan2.1-T2V-14B, InstaGen parameterized by SVG2 improves PSNR over SVG2 by 3.4 dB and 2 dB, respectively, at matched attention density, and by 1.6 dB and 2.2 dB at matched wall-clock time. On Wan2.1-T2V-14B, InstaGen also beats SVG-EAR by 1.1 dB PSNR at nearly the same density while running faster (1.65x against 1.48x over dense).
Figures & tables
| Dense-reference quality | VBench | Efficiency | |||||||||
| Method | + | Warm-up | PSNR | SSIM | LPIPS | ImgQual | AesQual | SubCons | BackCons | Density | Speedup |
| Wan2.1-T2V-1.3B | |||||||||||
| Dense | – | – | – | – | 0.6689 | 0.6416 | 0.9569 | 0.9612 | 100% | 1.00 | |
| SVG | – | ✓ | 23.62 | 0.794 | 0.214 | 0.6837 | 0.6378 | 0.9489 | 0.9518 | 49.85% | 1.47 |
| SVG2 ( ) | – | ✓ | 26.11 | 0.834 | 0.122 | 0.6185 | 0.6091 | 0.9420 | 0.9495 | 48.92% | 1.65 |
| SVG-EAR | – | ✓ | 28.29 | 0.910 | 0.064 | 0.6625 | 0.6357 | 0.9497 | 0.9543 | 34.87% | 1.63 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| ID | VBench dimension | Prompt |
| d22-01 | appearance style | a shark is swimming in the ocean by Hokusai, in the style of Ukiyo |
| d22-02 | appearance style | A couple in formal evening wear going home get caught in a heavy downpour with umbrellas, in cyberpunk style |
| d22-03 | color | a red car |
| d22-04 | color | a blue bird |
| d22-05 | human action | A person is riding or walking with horse |
| d22-06 | human action | A person is catching or throwing frisbee |