Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Programmatic Multimodal Memory: a 9B model reads days-long video by writing code in a REPL

Programmatic Multimodal Memory writes a multi-scale memory of timestamped captions and transcripts and defers deciding what matters until a question arrives. A Qwen3.5-9B 'Root' model searches that memory with code in a persistent Python REPL and inspects raw…

Published Read the original
Programmatic Multimodal Memory: a 9B model reads days-long video by writing code in a REPL

Why it matters

The 'store raw, search with code at read time' pattern is a practical template for agents over long video or log archives.

What happened

1 min read

Programmatic Multimodal Memory writes a multi-scale memory of timestamped captions and transcripts and defers deciding what matters until a question arrives. A Qwen3.5-9B 'Root' model searches that memory with code in a persistent Python REPL and inspects raw frames on demand. After SFT and RL, PMM-9B beats every open-source baseline on five long-video benchmarks and, on average, standalone GPT-5 and Gemini 2.5 Pro.

inscraper analysis

Our analysis

The core idea, reading memory with programs instead of single-shot retrieval, is the coding-agent pattern applied to video. The comparison against GPT-5 and Gemini 2.5 Pro uses older frontier models, and all benchmarks were run by the authors. The near 20-point gain on week-long EgoLifeQA is the standout number. Worth a look for anyone building personal-memory assistants or long video analytics.

More in Research