StreamMeCo: Long-Term Agent Memory Compression for Efficient Streaming Video Understanding

Junxi Wang, Te Sun, Jiayi Zhu, Junxian Li, Haowen Xu, Zichen Wen, Xuming Hu, Zhiyu Li, Linfeng Zhang

TL;DR

StreamMeCo is a training-free memory compression framework designed for streaming video AI agents. By applying a dual-branch compression strategy to the agent's memory graph and introducing a human-inspired time-decay retrieval mechanism, it reduces memory graph size by 70% while achieving a 1.87× retrieval speedup and a 1.0% average accuracy improvement.

What Problem Does This Paper Address?

AI agents designed for streaming video understanding must process continuous, long-term visual inputs in real time. To maintain long-term consistency (such as tracking a person's identity across hours of footage), state-of-the-art frameworks like M3-Agent convert video data into a plaintext "memory graph" consisting of face, voice, and text nodes.

However, as a video progresses, the number of text nodes explodes exponentially. As shown in Figure 1, text nodes quickly account for over 97% of the memory graph, creating massive storage overhead and causing memory retrieval latency to skyrocket to unacceptable levels for real-time applications.

Memory Graph Composition and Retrieval Latency

StreamMeCo addresses this bottleneck by introducing an efficient, training-free method to compress these memory graphs without losing critical information.

Methods

StreamMeCo utilizes a dual-branch architecture that compresses text nodes based on their structural connectivity within the memory graph, paired with a biologically inspired retrieval mechanism.

Figure 3: The overview of StreamMeCo. Efficient memory graph compression is achieved via the EMsampling and EWpruning modules, while the TMR mechanism prioritizes retrieving memories from more recent segments, enabling fast and accurate memory retrieval.
  1. Edge-free Minmax Sampling (EMsampling): This branch targets isolated text nodes—nodes that contain general context but lack specific entity links (e.g., "The man's favorite food is rice"). It clusters these nodes using a Spherical KMeans algorithm and applies a minmax sampling strategy within each cluster to select the most diverse and representative nodes, effectively eliminating semantic redundancy.
  2. Edge-aware Weighting Pruning (EWpruning): This branch targets connected text nodes—nodes explicitly linked to face or voice entities (e.g., "Mark's favorite food is rice"). It calculates an entity importance score based on edge weights and combines it with embedding similarity to prune redundant nodes while preserving critical entity-specific actions.
  3. Time-decay Memory Retrieval (TMR): To mitigate performance loss from compression, the authors designed a retrieval mechanism modeled after the human brain's forgetting curve. TMR segments the video chronologically, dynamically allocates retrieval slots based on query relevance, and applies a non-linear exponential decay function to prioritize recent, critical information over stale historical data.

Datasets

The framework was evaluated on three challenging long-video benchmarks:

  • M3-Bench-robot: 100 real-world, first-person perspective robotic videos featuring daily environments and human-robot interactions. This dataset naturally contains high situational redundancy.
  • M3-Bench-web: 920 YouTube videos spanning 46 categories (documentaries, sports, variety shows) characterized by scripted production and stronger narrative structures.
  • Video-MME-Long: 300 real-world long videos (ranging from 41 minutes to 1 hour) paired with 900 multiple-choice questions testing complex spatiotemporal reasoning.

Key Insights and Ideas

  • Text Nodes are the Bottleneck: The primary culprit behind agent memory bloat isn't entity tracking (faces/voices), but the text descriptions generated to summarize video segments.
  • Compression as a Denoising Filter: Counter-intuitively, compressing the memory graph by up to 70% actually improves downstream question-answering accuracy. This suggests that raw memory graphs suffer from severe informational redundancy, and smart compression acts as a denoising filter that helps the LLM focus on what matters.
  • The Power of Human-like Forgetting: Implementing an exponential time-decay function during retrieval mimics human memory. It prevents the agent from getting bogged down in historical noise, significantly reducing the number of iterative retrieval rounds needed to answer a query.

Key Results

StreamMeCo was benchmarked against 13 competitive baselines (including closed-source MLLMs like Gemini-1.5-Pro and GPT-4o, and memory methods like MemoryLLM).

  • Efficiency: At a 70% compression ratio, StreamMeCo achieved an average 1.87× speedup in total memory retrieval time across all datasets.
  • Accuracy: Despite losing 70% of the text nodes, the framework delivered a 1.0% average accuracy improvement over the uncompressed M3-Agent baseline.
  • Dataset Variance: Performance gains were highest on the M3-Bench-robot dataset (up to 3.3% improvement), because first-person robotic feeds inherently contain more repetitive, redundant frames than edited YouTube videos.

Limitations and Future Work

The authors note a few key limitations:

  • Upstream API Dependency: Generating the initial memory graph still relies heavily on frequent, costly calls to commercial APIs (like Gemini-2.5-Pro and OpenAI's embedding models), creating an early-stage computational bottleneck.
  • Unified Ratios: Currently, the framework applies a uniform compression ratio across all node types.

Future work will explore adaptive compression strategies tailored to different node types, differential compression for episodic vs. semantic memories, and methods to lower the initial cost of memory graph construction.

Summary updated

BibTeX
@inproceedings{wang2026streammeco,
  author = {Junxi Wang and Te Sun and Jiayi Zhu and Junxian Li and Haowen Xu and Zichen Wen and Xuming Hu and Zhiyu Li and Linfeng Zhang},
  title = {{StreamMeCo: Long-Term Agent Memory Compression for Efficient Streaming Video Understanding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.647},
}
Figure