Attend Locally, Remember Linearly: Linear Attention as Cross-Frame Memory for Autoregressive Video Diffusion
Kunyang Li, Mubarak Shah, Yuzhang Shang
NeurIPS page · Open on the map
Category: Video Understanding & Generation › Video Diffusion Optimization · Type: new method · Keywords: linear attention, autoregressive video diffusion, streaming video generation, memory efficiency, temporal consistency
Areas: Memory › Long-horizon memory › Video generation memory; Model Architectures & Sequence Modeling › World Modeling Architectures › Sparse Attention for Video Diffusion; Generative Models (Diffusion & Flows) › Video Generation › Efficient Video Diffusion
Summary
ARL2 introduces a hybrid attention module that replaces quadratic cross-frame attention with a fixed-size recurrent state, achieving linear-time scaling and constant memory for autoregressive video diffusion.
Explained to a 5-year-old
People want to make videos one piece at a time, like a story. The old way of making videos uses a lot of computer power and memory, which gets slow for long videos. The new idea uses a fixed-size memory that never changes size, so it doesn't need more and more space. It also splits the work: one part looks at the picture details, another part remembers what happened before. This makes video creation faster and smoother, so you can watch videos in real time.
Explained to a 5-year-old, longer
Making videos with computers can be a lot of work, especially when the video is long. The old way uses a special memory that grows bigger and bigger as the video gets longer. This growing memory makes the computer slow and uses a lot of space. Some other ideas tried to make it faster, but they either still needed a lot of memory or forgot what happened before. The new idea uses a fixed-size memory that never changes size, so it stays small. It also splits the work into two parts: one part looks at the picture details, and the other part remembers the story. The remembering part works like a simple notebook that is updated only after the picture is finished. All the picture pieces share the same notebook so they all know the same story. This design makes the computer run faster and use less memory. It also helps the video look smoother over time. The result is that videos can be generated quickly, even for long sequences. This makes interactive video experiences more enjoyable and practical.
For a technical reader
The paper addresses the quadratic time and memory cost of softmax self-attention in autoregressive video diffusion models. It proposes a hybrid attention module that splits attention into a local softmax branch for spatial detail and a gated recurrent linear branch that maintains a fixed-size state for temporal context. The recurrent state is updated only after the denoising step and is shared across tokens to avoid information asymmetry. By replacing 75 % of layers with this design, the model achieves up to 2.26× faster inference and 54 % lower memory usage while preserving video quality. The approach also improves temporal consistency, making it suitable for streaming and interactive video generation.
Problem
Autoregressive video diffusion models rely on softmax self-attention, which leads to quadratic compute complexity and growing memory usage due to key-value caching, limiting scalability to long video sequences. Existing solutions reduce per-step cost but still require linearly growing caches or discard past context, failing to achieve both linear memory and streaming context management.
Method
The approach decomposes self-attention into an intra-frame softmax branch for spatial detail and a gated recurrent linear branch that maintains a fixed-size recurrent state for streaming context, updating the state only after the denoised pass and sharing a pre-update state across all tokens.
Results
The approach achieves up to 2.26× wall-clock speedup and 54% memory reduction while maintaining comparable quality and improving temporal consistency.
Contributions
It introduces a hybrid linear attention architecture that provides linear-time scaling with constant memory, a two-stage training scheme for converting pretrained AR video diffusion models, and demonstrates improved temporal consistency.
Practical relevance
Enables faster and more memory-efficient streaming video generation on limited hardware, supporting interactive applications.
Research questions this paper is counted under
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