Skip to content
OpenTrain AIFor AI Companies

Programmatic Multimodal Memory: Learning to Read Long Videos with Code

Xuanming Shang, Yuhang Han, Yan Shu, Dingning Liu, Li Ding +4 morePublished Nov 30, 2026
arXiv PDF
Researcher verdict
Context only
Use as context only
Benchmark evidence
Missing
Not verified yet
Time to first repro
A few days
Plan setup time
Risk flags
1
Review before use

Abstract

Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.

Answering questions about hours- or days-long videos requires finding a few seconds of evidence in recordings far longer than any model can read at once. Most memory systems decide what matters at write time. Before any question arrives, they consolidate the video into compressed memory banks or structured graphs and lose details that later questions need. We instead defer this decision to read time. Programmatic Multimodal Memory (PMM) writes a multi-scale temporal memory of timestamped captions and transcripts once, without consolidation, and keeps it aligned with the raw video. Single-round retrieval misses much of the evidence, so a Root model reads this memory with code over multiple turns in a persistent Python REPL. Its programs filter records across days, query a frozen submodel in batches, and inspect raw frames on demand. The Root now decides what matters, yet small open-weight models struggle zero-shot to coordinate code search and frame inspection. We therefore train Qwen3.5-9B as the Root in this REPL with evidence-grounded supervised fine-tuning and outcome-reward reinforcement learning. The resulting PMM-9B gains 12.1 points over its zero-shot version and outperforms every open-source model and agent baseline on all five personal-memory and long-video benchmarks. It also beats standalone GPT-5 and Gemini 2.5 Pro on average, and by nearly 20 points on week-long EgoLifeQA. Open-source baselines that use more input tokens per question than PMM-9B are all less accurate, and those that use fewer score at least 16.6 points lower. Project page: https://shadow-weave.github.io/PMM/.

Results and benchmarks

Answering questions about hours- or days-long videos requires finding a few seconds of evidence in recordings far longer than any model can read at once.

Implementation

No maintained code for this paper yet.

  • Start from this likely method family: Reinforcement learning.
  • Track assumptions and missing details in an experiment log before coding.
Reproduction risks
  • Estimate is based on paper-only reproduction flow

Reproduction readiness

Time to first repro: a few days
Last checked: Dec 5, 2026

Hardware requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

Agentic tool use, Video understanding / reasoning, Retrieval / indexing

Methods

Reinforcement learning

Domains

Computer vision, AI Agents, Information Retrieval

Evaluation and human feedback data

Open this paper in the Eval Paper Explorer to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in the Eval Paper Explorer
Explore similar papers