Remembering What Matters: Balanced Memory for Ultra-Long Streaming Videos

Shehreen Azad, Mo Zhou, Shan Lu, Wei Wang, Noranart Vesdapunt, Sowndarya Sundar, Jim Thomas, Kah Kuen FuarXiv 2026

TL;DR

Streaming video models have to remember what happened hours or days ago while squeezing an endless stream of frames into a tiny, fixed-size memory. Existing approaches either forget old events in favor of recent ones or obsess over a few dominant moments, causing them to collapse on ultra-long videos. StreamBalance solves this by treating memory compression as a balanced temporal coverage problem—using optimal transport to spread incoming information evenly across memory slots and letting each slot learn its own decay rate to keep rare, distant evidence intact.

What Problem Does This Paper Address?

Imagine wearing smart glasses for a week and asking your AI assistant, "What were we doing last time we discussed the air conditioning temperature?" If that conversation happened five days ago, the model needs to retrieve a needle from a multi-day haystack.

Offline video models can cheat: they see the whole video at once and search it after hearing your question. Streaming Multimodal Large Language Models (MLLMs) don't have that luxury. Frames arrive sequentially, and the model must compress them on the fly into a fixed-size memory before knowing what will be asked.

Current streaming memories fail at this in two predictable ways:

  • Heuristic memories write new frames at a fixed position (like the front of a queue) and merge older ones by age. This creates a recency bias—distant events get progressively blurred until they vanish.
  • Attention-based memories write using winner-takes-all attention weights, which causes them to fixate on a few dominant, recurring events while starving the rest of the timeline.
Figure 1: Balanced temporal coverage enables stable performance on ultra-long streaming videos, with days old evidence (left), yet a fixed-size memory holds only a fraction of the stream. Existing memories decide what to keep by handcrafted heuristics or attention weighting, both de- grading as the stream grows: heuristics evict by position, forgetting earlier content, while attention concentrates on dominant events and under-represents the rest (right, top: memory distribution over the left stream), so both decline sharply on long-range questions (right, bottom). Our memory in- stead retains content evenly across the timeline, sustaining stable performance as video length grows.

Methods

StreamBalance sits on top of a frozen MLLM backbone (tested on Qwen2-VL, Qwen2.5-VL, and Qwen3-VL) and replaces heuristic memory management with a fully learnable, fixed-size memory bank ($N_k = 128$ slots, each holding $L = 8$ cells) trained end-to-end purely from the downstream question-answering loss. It introduces two core mechanisms:

  1. Balanced-Assignment Write (Optimal Transport): Instead of writing to a fixed position or letting attention weights pile onto one slot, StreamBalance frames writing as an entropy-regularized Optimal Transport problem (solved via the Sinkhorn algorithm). Each incoming frame's tokens are routed to the slots they best match semantically, modulated by two state-aware trackers: pressure (how full a slot is, which raises its cost) and staleness (how long since a slot was last written, which lowers its cost). Combined with a learned per-slot target capacity, this ensures no slot is overloaded or starved.
  2. Adaptive Decay-Rate-Aware Retention: Once a slot receives content, it must decide whether to merge it into an existing cell or allocate a new one. Rather than using a fixed temporal rule, each slot learns its own decay rate. Fast slots (high decay) readily merge redundant, recurring details into a single refreshed cell, while slow slots (low decay) resist merging and preserve rare, salient events. A straight-through estimator makes this discrete merge-vs-allocate decision differentiable.

When a query arrives, a lightweight single-layer transformer-decoder retriever pulls the top-$K=64$ most relevant cells (along with their timestamp intervals) and passes them to the frozen LLM to generate the answer.

Figure 2: Framework Overview. StreamBalance incrementally encodes and compresses streaming observations into a balanced memory bank through state-aware balanced assignment and adaptive decay-rate-aware retention, preserving broad temporal coverage. At inference, the retriever selects query-relevant memory contents for the LLM to perform downstream reasoning.

Datasets

The authors evaluate StreamBalance across three regimes, sampling all videos at 1 FPS:

  • General Streaming: OVO-Bench and StreamingBench (videos averaging 1–30 minutes).
  • Ultra-Long Streaming: EgoLife-QA and Ego-R1 Bench, which average roughly 44.3 hours per video. Because these were originally designed for offline agentic systems, the authors adapt them to a strictly causal streaming protocol and re-evaluate prior streaming baselines under the same rules.
  • Offline Long-Video Generalization: VideoMME, MLVU, and LongVideoBench, to test whether a streaming-trained memory generalizes when the full video is available at once.

Key Insights and Ideas

  • Utilization alone isn't enough—you also need low redundancy: In ablation studies, Expert Choice routing also kept memory utilization high, but because each slot picked tokens independently, multiple slots ended up storing duplicates. Optimal transport solves a joint assignment across all tokens and slots simultaneously, keeping both utilization high and redundancy flat as streams grow.
  • Persistence should be learned by content, not dictated by age: Replacing per-slot learned decay rates with a single global rate—or a fixed temporal hierarchy—sharply hurts long-range recall. Letting some slots act as "fast" scratchpads for redundancy and others as "slow" archives for rare events is what keeps distant evidence alive.
  • Balanced coverage prevents "hallucination by recency": On ultra-long horizons (>24 hours), prior streaming models drop to—or even below—the "blind" (no-video) chance floor, meaning their degraded memory actively misleads the LLM. StreamBalance degrades gracefully and stays well above the floor.
Comparison of learnable write mechanisms across stream lengths

Key Results

  • General Streaming: Sets a new state of the art across all backbones, including a +12.4 overall gain on OVOBench and a +22.5 jump on OVOBench's Backward split (with Qwen2.5-VL), where evidence lies furthest in the past.
  • Ultra-Long Streaming: Outperforms the prior best streaming model by +7 on EgoLife-QA, closing much of the gap to offline agentic systems while using only a fixed, bounded memory.
  • Efficiency: At 16K observed frames on an A100 GPU, StreamBalance achieves 8× lower response latency (Time To First Token) and 1.2× less GPU memory than the strongest prior method (HERMES), and 3.3× faster end-to-end latency.
  • Offline Generalization: Transfers competitively to offline benchmarks without retraining, notably gaining +7.9 on VideoMME's Long split (with Qwen3-VL).

Limitations and Future Work

The authors do not include a dedicated limitations or future work section in the main paper. However, the method operates under standard streaming assumptions—processing frames at a fixed 1 FPS using a frozen vision encoder—meaning visual detail finer than 1 FPS or requiring task-specific visual feature adaptation is not captured.

Summary updated

BibTeX
@misc{azad2026remembering,
  author = {Shehreen Azad and Mo Zhou and Shan Lu and Wei Wang and Noranart Vesdapunt and Sowndarya Sundar and Jim Thomas and Kah Kuen Fu},
  title = {{Remembering What Matters: Balanced Memory for Ultra-Long Streaming Videos}},
  year = {2026},
  eprint = {2612.02863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.02863},
}
Figure