Back to articles

PMM Uses Code to Search Long-Video Memory When Questions Arrive

3 min read

Long-video question answering is often a search problem: a useful few seconds may be buried in hours or days of footage. Compressing a recording into a summary before anyone knows what they will ask can erase the very detail a later question depends on. Programmatic Multimodal Memory (PMM) takes a different approach: preserve a time-aligned record first, and decide what matters when a question arrives.

How the system works

  • PMM creates a multiscale temporal memory of timestamped visual captions and transcripts, aligned with the original video. The paper describes record scales ranging from about 10 seconds to one hour. Rather than consolidating these records into a single compressed memory, the system keeps them available for later search.
  • At answer time, a model called the Root reads the memory by writing code in a persistent Python REPL. It can filter records across long periods, query a frozen submodel in batches, and inspect original video frames when text alone does not provide enough evidence.
  • The researchers train Qwen3.5-9B to act as the Root, using evidence-grounded supervised fine-tuning and outcome-reward reinforcement learning. The goal is to improve how the model coordinates code-based search with visual inspection.

This setup addresses a limitation of one-shot retrieval: a single search may not surface all the evidence needed to answer a question. A Root model can use an initial result to guide another search, then check relevant frames rather than treating the first retrieval as conclusive. In effect, memory construction is separated from question-specific reasoning: the system preserves potentially useful details, while the query steers what it examines.

Reported results and implications

According to the paper, PMM-9B improves by 12.1 points over its zero-shot version and outperforms every open-source model and agent baseline on five personal-memory and long-video benchmarks. The authors also report a higher average score than standalone GPT-5 and Gemini 2.5 Pro, and a lead of nearly 20 points on the week-long EgoLifeQA benchmark. They say open-source baselines that consume more input tokens per question are still less accurate than PMM-9B. These are reported benchmark results, not a guarantee of performance on every real-world video task.

The broader idea is to treat memory less like a one-time summary and more like an indexed record that can be queried in response to a particular need. That may help with questions whose answers depend on small, distant details, while keeping a path back to the source footage for verification. The approach also introduces practical requirements: retaining video and records, running a code environment, and teaching the Root to search and check evidence reliably. The paper says the team has released code, PMM-9B/4B models, and the HippoVlog memory. How the method performs across other video types and deployment costs remains an open question.

Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles