# OmniMem: Scalable and Adaptive Memory Retrieval for Long Video Generation

*Lin Zhao, Yushu Wu, Yifan Gong, Yanzhi Wang, Pu Zhao*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150029) · [Open on the map](../papers.html#p150029)

Category: [Video Understanding & Generation](../pcat/3.md) › [Video Diffusion Generation](../pgroup/133.md) · Type: new method · Keywords: memory retrieval, video generation, sparse attention, autoregressive models, long video

Areas: [Memory](../areas/memory.md) › Long-horizon memory › Video generation memory; [Long Context](../areas/longcontext.md) › Video Sequence Modeling › Long video memory

## Summary
OmniMem introduces an explicit full-range memory retrieval framework that performs sparse KV retrieval over the historical cache, addressing local bias and union explosion for scalable long video generation.

## Explained to a 5-year-old
Making long videos by adding one piece at a time is hard because the computer has to remember everything it has already drawn. To help it remember, we let it look back at the most important parts of the past without storing everything. We teach it to ignore nearby parts when it already knows enough from far back, so it can focus on useful memories. Each part of the computer can pick its own memories that are not next to each other, which saves space. This helps the videos stay consistent and look better while using about the same amount of memory as before.

## Explained to a 5-year-old, longer
When we make a video, we often add new pictures one after another. The computer needs to remember everything it has drawn before to keep the story consistent. Storing everything takes a lot of memory and makes the computer slow. Some ideas try to forget old parts, but then the video can lose important details. The new idea lets the computer remember the most useful parts of the past without keeping everything. It looks at the past and picks only the pieces that might be needed later. To avoid picking too many nearby pieces, it sometimes skips the recent ones when it already has enough old information. Different parts of the computer can choose their own memories that are not next to each other. This way the computer uses less memory while still having access to helpful past information. The result is that the video can be longer, stay consistent, and look better. It also uses about the same amount of memory as the older methods, so it is efficient. Overall, this makes creating long videos easier and more reliable for everyone.

## For a technical reader
Autoregressive video generation builds long videos by predicting latent chunks sequentially, but each step must attend to the entire history of key-value pairs, which grows quickly. Existing solutions either truncate this history or compress it into an implicit memory, sacrificing explicit access to useful past information. The proposed framework performs sparse retrieval over the full history, selecting only the most relevant key-value blocks for each generation step. It introduces adaptive window exclusion to drop local recent blocks when sufficient long-range context is present, and per-head scattered access to keep memory overhead low. Experiments show a 52.3% improvement in Dynamic Degree and consistent quality while using comparable memory compared to strong baselines.

## Problem
Scaling autoregressive video generation to long videos requires repeated access to a growing historical key-value cache, which becomes computationally expensive. Existing solutions truncate or compress the cache, losing explicit access to relevant historical details.

## Method
The approach performs sparse key-value retrieval over the full historical cache, using adaptive window exclusion to remove local-window blocks when sufficient long-range history is available, and per-head scattered access to avoid expanding selections into a large buffer. It also employs query-shared key-value selection to reduce cross-query diversity, thereby preserving a sparse budget for informative long-range retrieval.

## Results
The approach improves Dynamic Degree by 52.3% and maintains strong consistency compared to strong baselines, while using comparable memory usage.

## Contributions
It provides an explicit full-range memory retrieval framework that retains query-relevant historical details, introduces adaptive window exclusion and per-head scattered access to manage sparsity and memory, and demonstrates significant gains on long-video generation.

## Research questions this paper is counted under

- [How can we compress and manage key-value caches in autoregressive visual generation to reduce memory while preserving quality?](../q/486.md)

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](../feedback/?on=p/150029)
