Attend Locally, Remember Linearly: Linear Attention as Cross-Frame Memory for Autoregressive Video Diffusion
This paper introduces ARL2, a hybrid attention architecture for autoregressive video diffusion that replaces quadratic cross-frame attention with a fixed-size recurrent state to achieve linear-time scaling and constant memory usage while maintaining or improving temporal consistency and generation quality.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Problem: The "Endless Backpack"
Imagine you are an artist trying to paint a very long movie, frame by frame. To make the movie look smooth and consistent, you need to remember everything you've painted so far.
In current video AI models, the way they "remember" is like carrying a backpack that keeps getting heavier.
- For the first frame, you put a small note in your backpack.
- For the second frame, you add another note, but you keep the first one.
- By the 100th frame, your backpack is huge. By the 1,000th frame, it's so heavy you can't move.
In technical terms, this is called a KV Cache. As the video gets longer, the computer needs more and more memory (RAM) to store all these past notes. Eventually, the computer runs out of space, and the video generation stops. This is the "scalability bottleneck" the paper tries to fix.
The Solution: ARL2 (Attend Locally, Remember Linearly)
The authors propose a new way to paint the movie called ARL2. Instead of carrying a growing backpack, they use a smart, fixed-size notebook.
They split the artist's job into two different tasks:
1. "Attend Locally" (The Detail Work)
When the artist paints a single frame, they need to look at every part of that specific picture to make sure the details match (e.g., making sure the left eye matches the right eye, or that the scarf flows naturally).
- The Analogy: This is like looking at the whole canvas in front of you. You need to see everything at once to get the details right.
- The Paper's Fix: They keep the old, powerful "Softmax" method for this. It's great for local details, so they don't change it.
2. "Remember Linearly" (The Long-Term Memory)
When the artist moves to the next frame, they need to remember what happened in the previous frames to keep the story consistent (e.g., the character's scarf color shouldn't suddenly change from red to blue).
- The Old Way: Keep a list of every single frame ever made (The Heavy Backpack).
- The New Way (ARL2): Instead of a list, the artist uses a single, magical summary card.
- When a new frame is finished, the artist updates this one card with the most important info.
- The card stays the same size, no matter if the movie is 1 minute or 1 hour long.
- This is the "Recurrent State." It's like a "Gated Delta Network" that decides what to keep and what to forget, ensuring the memory stays clean and manageable.
How They Made It Work (The Training)
You can't just swap the heavy backpack for a small notebook overnight; the artist might get confused. The paper describes a two-stage training process to teach the model this new trick:
- Stage 1 (The Practice Run): They take the original, heavy-backpack model and teach it, layer by layer, how to use the small notebook. They test which layers are "sensitive" (need the heavy backpack for perfect detail) and which are "flexible" (can use the small notebook).
- Stage 2 (The Final Exam): They mix the two together. They let the model practice using the small notebook for the flexible layers while keeping the heavy backpack for the sensitive ones. They do this until the model is just as good as the original, but much lighter.
The Results: Faster and Lighter
The paper claims that by using this hybrid approach:
- Memory: The computer's memory usage stops growing as the video gets longer. It stays constant. They reduced memory usage by 54% for long videos.
- Speed: Because the computer isn't struggling to carry a heavy backpack, it paints faster. They saw a 2.26x speedup (more than double the speed) for very long videos.
- Quality: The video quality remained just as good, and in some cases, the motion was even smoother because the "summary card" remembered the long-term story better than the messy list of notes did.
Summary Analogy
Think of the old model as a student trying to memorize a whole book by writing down every single word on a piece of paper that keeps getting longer and longer until it fills the room.
The new ARL2 model is like a student who:
- Reads the current page carefully to understand the details (Attend Locally).
- Writes a single, perfect summary sentence on a sticky note to remember the plot so far (Remember Linearly).
- Updates that sticky note as they move to the next page, keeping it small and manageable forever.
This allows them to read (generate) a book of any length without running out of space on their desk.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.