Going Down Memory Lane: Scaling Tokens for Video Stream Understanding with Dynamic KV-Cache Memory

arXiv:2602.18434 · cs.CV · Submitted 2026-02-20 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: I'm Tom.

Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.

Tom: We're looking at the paper: "Going Down Memory Lane".

Title and authors: Tom: Now we're getting into the actual mechanics of how they did that scaling, which is where it gets interesting. The paper calls their method MemStream <ref:2602.18434#pg1>.

Jane: What does MemStream actually do? I want to understand the core idea without all the math jargon.

Tom: It tackles two main things: first, they scale up the token budget, and second, they bring in a training-free mixture of experts for retrieval <ref:2602.18434#pg1>.

Lu: The mixture of experts part is really clever because it uses external models to help identify relevant frames during question answering <ref:2602.18434#pg1>.

Meng: So it's like having multiple specialized search teams instead of just one team looking at the video memory? What are the actual results they show?

Jane: They show some solid numbers, like MemStream achieved a plus eight point zero percent on CG-Bench and plus eight point five percent on LVBench over ReKV with Qwen2 point 5-VL-7B <ref:2602.18434#pg1>.

Tom: Those gains are significant, showing that scaling the tokens actually helps with performance across different video understanding tasks <ref:2602.18434#pg1>.

The paper's summary: Jane: So if I were to explain this to a friend who isn't an engineer, what’s the big picture they need to grasp about "Going Down Memory Lane"?

Tom: Imagine you have a long video, and instead of throwing everything into one giant memory bucket that gets messy, you use a smarter system that knows which parts of the video are most important right now <ref:2602.18434#pg2>.

Lu: It's about moving away from just storing everything sequentially to intelligently managing what information stays in the key value cache across different frames <ref:2602.18434#pg2>.

Meng: So they found that simply using sliding window attention amplifies redundancy, and their solution is an adaptive selection strategy during video encoding to reduce that waste <ref:2602.18434#pg2>.

Jane: And then on top of that, they propose this training-free retrieval mixture of experts to make sure the model pulls the right frames out when answering a question <ref:2602.18434#pg1>.

Tom: The implication is that we can get much more granular spatiotemporal understanding in long videos because we're not wasting tokens on redundant information <ref:2602.18434#pg2>.

The paper's improvements: Tom: Let's talk about the specific improvements they propose, because those are the actual levers we can pull if we want to build something similar. They focus on pruning redundant reasoning tokens <ref:2602.18434#pg1>.

Lu: The adaptive selection strategy is key here; they select patches that are most unique to a specific frame, which really reduces spatial and temporal redundancy in the key value cache <ref:2602.18434#pg2>.

Jane: That sounds like it saves memory without losing the details we need for understanding a video stream <ref:2602.18434#pg2>.

Meng: But what about the retrieval side? They propose this training-free retrieval mixture of experts that uses external models to identify relevant frames during question answering <ref:2602.18434#pg1>.

Tom: The retrieval improvement comes from combining internal and external signals using reciprocal rank fusion, which reinforces agreement between rankings while stopping outliers from having too big an effect <ref:2602.18434#pg4>.

Lu: And the analysis shows that this adaptive selection strategy significantly improves layer-wise recall for later layers, and that's boosted even further by the mixture of experts strategy <ref:2602.18434#pg15>.

Conclusion: Jane: So to wrap up, what is the actual practical meaning of MemStream for someone who only listens to this show? What should they remember about "Going Down Memory Lane"?

Tom: It means that for long video understanding, we can stop treating the memory cache like a simple continuous stream and start managing it adaptively with better token selection and smarter retrieval methods <ref:2602.18434#pg1>.

Lu: The overall finding is that this scaling of tokens allows for much more granular spatiotemporal reasoning than what was possible before <ref:2602.18434#pg1>.

Meng: From an engineering standpoint, if you were building a system for long video, you'd want to focus on reducing that redundancy in the KV cache by picking unique patches, and using something like reciprocal rank fusion to guide your retrieval <ref:2602.18434#pg4>.

Lalam: I'm confident in this direction. The results show MemStream outperforms ReKV on RVS-Ego by three point six percent with minimal change in latency <ref:2602.18434#pg15>.

Jane: It sounds like a lot of work, but the gains on benchmarks like CG-Bench and LVBench are pretty substantial, showing that this approach really helps with those offline video question answering tasks <ref:2602.18434#pg13>.

Tom: Exactly. We’re looking at scaling the token budget to achieve better performance without having to drastically increase latency, which is a big win for deploying models <ref:2602.18434#pg15>.

University of Maryland, College Park

cs.CV

Submitted: 2026-02-20

Updated: 2026-12-01

Comments: Project page: see https://vatsalag99.github.io/memstream. Accepted to NeurIPS 2026 as a conference paper

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 91/100

The gist: Streaming video understanding requires models to robustly encode, store, and retrieve information from a continuous video stream to support accurate video question answering (Abstract).

Key concepts

Pruning Redundant Reasoning Tokens
Current methods struggle with dense video streams because their encoding causes similarity scores to rise over time, biasing retrieval toward later frames. The authors introduced an adaptive selection strategy during encoding to reduce this redundancy while keeping important local spatial and temporal details intact in the KV cache.
Retrieval Mixture-of-Experts (MoE)
This is a training-free retrieval method that uses external models to identify relevant frames during question answering. It leverages complementary signals from different experts and fuses them using Reciprocal Rank Fusion (RRF), allowing strong signals from one expert to compensate for weaker ones, leading to more consistent and higher retrieval quality.
Adaptive Key Selection (AKS)
This is the primary encoding improvement that identifies temporal redundancy in a sliding window. It works by selecting patches that are most unique to the current key frame ($K_i$), effectively eliminating redundant information in the KV cache and preserving crucial local spatiotemporal data.
Reciprocal Rank Fusion (RRF)
RRF is a rank-based fusion strategy used to combine internal attention-based signals with external vision model retrieval scores. It reinforces agreement between rankings while ensuring that outliers do not disproportionately affect the final result, leading to improved overall retrieval accuracy.

Terminology

Summary

Streaming video understanding requires models to robustly encode, store, and retrieve information from a continuous video stream to support accurate video question answering (Abstract). p. 0 In this work, we propose scaling the token budget to enable more granular spatiotemporal understanding and reasoning (Abstract). p. 0 MemStream achieves +8. p. 00% on CG-Bench, +8. p. 05% on LVBench, and +2. p. 04% on VideoMME (Long) over ReKV with Qwen2. p. 05-VL-7B (Abstract). p. 0

Pruning redundant reasoning tokens

The authors find that current methods are ill-equipped to handle dense streams because their feature encoding causes query–frame similarity scores to increase over time, biasing retrieval toward later frames (Page 1). To address this, they introduce an adaptive selection strategy that reduces token redundancy while preserving local spatiotemporal information (Page 2). p. 0 This strategy is implemented during video encoding to substantially reduce spatial and temporal redundancy in the KV cache (Page 2). p. 1

How the training signal is built

The authors propose a training-free retrieval mixture-of-experts that leverages external models to better identify relevant frames during question answering (Page 1). This design utilizes complementary retrieval signals across experts, yielding more consistent retrieval across layers and improved overall retrieval quality (Page 2). p. 1 Specifically, they leverage reciprocal rank fusion (RRF) to fuse internal attention-based signals with external vision model retrieval using rank-based fusion strategy (Page 4). p. 5

Where the gains come from

The primary mechanism for improving encoding is the Adaptive Key Selection (AKS) strategy, which identifies and eliminates temporal redundancy in the sliding window by selecting patches that are most unique to Ki t (Page 4). The retrieval improvement stems from combining internal and external signals through reciprocal rank fusion (RRF), which reinforces agreement between rankings while preventing outliers from having too large an effect (Page 4). p. 5 Furthermore, the analysis shows that AKS significantly improves layer-wise recall for later layers, which is further enhanced by the retrieval mixture-of-experts strategy (Page 15). p. 4

Performance on benchmarks

The method outperforms prior state-of-the-art, ReKV, by significant margins on all three benchmarks (Page 15). For offline VQA, using AKS alone improves performance by 5. p. 65% on CG-Bench and by 4. p. 01% on LVBench (Page 13). p. 0 Adding the retrieval mixture-of-experts improves performance further with an additional 2. p. 64% gain on CG-Bench and 4. p. 63% on LVBench (Page 13). p. 0 Overall, MemStream outperforms ReKV on RVS-Ego by 3. p. 66% with minimal change in latency (Page 15). p. 6 The best results are achieved when using the AKS MoE strategy with equal weights for the internal and external rankings (Table 5, Page 14). p. 7 <ref:2602.18434#pg15> <ref:2602. p. 0 p. 0 p. 0 p. 0 p. 018434#pg7> <ref:2602. p. 0 p. 0 p. 018434#pg13> <ref:2602. p. 0 p. 0 p. 0 p. 0 p. 0 p. 018434#pg15> <ref:2602.18434#pg17>

Ablation study details

The authors explore various encoding and retrieval strategies to validate the effectiveness of each component (Page 5). For encoding, they evaluate static selection patterns such as average pooling (A. p. 71), dilated sampling (A. p. 72), and uniform sampling (A. p. 33) at different compression rates r ∈ 4, 8, or 16 (Page 14). p. 0 The results show that sliding-window compression improves performance over full attention up to +5. p. 14% on CG-Bench and +3. p. 0 p. 03% on LVBench, with gains peaking at an intermediate compression factor (Page 14). p. 0 For retrieval strategy ablation, they compare internal only, external only (CLIP or PECore), and MoE strategies using L2-Concat versus Reciprocal Rank Fusion (RRF) (Page 5). p. 5 RRF achieves the best overall results across all three offline benchmarks despite the highest compression rate (Page 6). p. 7 <ref:2602.18434#pg14,sliding-window compression improves performance over full attention up to +5. p. 14% on CG-Bench and +3.3% on LVBench> <ref:2602. p. 018434#pg5> <ref:2602. p. 0 p. 0 p. 018434#pg15> <ref:2602.18434#pg13> <ref:2602.18434#pg5> <ref:2602.18434#pg15> <ref:2602.18434#pg7> <ref:2602.18434#pg13> <ref:2602.18434#pg15> <ref:2602.18434#pg7> <ref:2602.18434#pg13> <ref:2602.18434#pg5> <ref:2602.18434#pg15>

Qualitative retrieval examples

The paper provides qualitative examples of retrievals comparing ReKV’s (red) and MemStream’s (blue) respective retrievals and answers (Page 8). For instance, when asked about cucumbers, MemStream retrieves 3 cucumbers while ReKV retrieves 6 cucumbers (Page 13). Similarly, for vegetables on the right side of the door, MemStream identifies Pumpkin while ReKV identifies Squash (Page 13). The authors also show examples where MemStream retrieves an image of two chairs when asked about Buick's GL8, whereas ReKV retrieves an image of red car seats (Page 13). <ref:2602.18434#pg13> <ref:2602.18434#pg13> <ref:2602.18434#pg13,MemStream: Image of two chairs. p. 6 ReKV: Image of red car seats. p. 7

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Adaptive Key Selection for Sparse Sliding-Window Attention: Implement a strategy where for each pair of adjacent key features Ki t and Ki t−1, we wish to only retain the patches that are most unique to Ki t by computing cosine similarity between corresponding spatial tokens and selecting the top k least similar (i.e., most distinctive) patch features from Ki t. This preserves local spatiotemporal information while reducing redundancy in the KV cache.

  2. Retrieval Mixture-of-Experts via Reciprocal Rank Fusion: Develop a training-free retrieval mechanism that fuses internal attention signals with external vision model retrieval using reciprocal rank fusion (RRF). This allows strong retrieval signals from one expert to compensate for weaker signals from another, while incorporating complementary information from both internal and external representations.

  3. Dynamic Compression Rate Tuning: Systematically evaluate various sliding-window compression rates, such as Pooled (A.1), ∼8× 39.81 40.35 50.33, to find the optimal balance between performance gains and memory usage for specific benchmarks like LVBench, where sliding-window compression improves performance over full attention (up to +5.4% on CG-Bench and +3.3% on LVBench).

  4. Layer-wise Retrieval Stabilization: Address the issue where recall performance is highly variable even within a single layer by utilizing the mixture-of-experts strategy, which enables more consistent retrievals across layers, thereby mitigating the problem where some of both the early and later layers have a median recall of 0.

  5. Multi-Modal Long Video Question Answering: The improved system can perform robust question answering on long videos by leveraging MemStream to achieve performance gains, such as an additional 2.4% gain on CG-Bench and 4.3% on LVBench over previous methods like ReKV with Qwen2.5-VL-7B.

Sources

Related papers