FlashBlock: Attention Caching for Efficient Long-Context Block Diffusion
Abstract
Lay Summary
Modern generative models are increasingly used to create long outputs, such as long documents and videos, but generating such content can be slow and computationally expensive. This paper studies how to make a class of diffusion-based generative models more efficient when they work with long contexts. We find that, during generation, some attention computations over previously generated content remain largely stable across steps and do not need to be recomputed every time. Based on this observation, we propose FlashBlock, a method that caches and reuses these stable attention results while recomputing only the parts that are changing. This reduces unnecessary computation and memory access without changing the underlying generation process. Experiments on language and video generation models show that FlashBlock can speed up generation while maintaining similar output quality. This work may help make long-context generative models faster and more practical to use.