Three nesting dolls, each holding fewer blocks than the last

Memryoshka

Adaptive-Fidelity Video Memory for Streaming VLMs

A training-free memory for streaming vision-language models. Memryoshka stores each visual token as a nested code, so when memory fills, old evidence fades to fewer bits instead of being deleted.

Storage
~1,000× less

7.2 MB instead of 6.6 GB for one hour of full-precision visual tokens.

Accuracy
Same accuracy

as a memory that stores every token: six-benchmark average, same readout budget.

Against memory baselines
+6 to 8 points

six-benchmark average over CausalMem, the strongest bounded memory (+5.9 to +8.0).

Demo

48 minutes of film in 7.2 MB

The paper's writer on four Blender open films (CC BY), one frame per second. Press play: Memryoshka keeps frames from the whole stream at fewer bits, while a full-precision memory of the same size holds only the last 3 frames.

01 The memory as the stream grows

Each column is one moment of video. Height: tokens kept (a whole frame is 252). Color: bits per kept token. Dimmed thumbnails have no frame left.

Bits per token
1282565121k2k4k
Memryoshka
Fixed 4,096-bit codesame writer, keep or drop
Full precision16-bit tokens
Video seen
0:00
of 47:52
Memory used
0 MB
Frames still in memory
0
Code lengths in memory now
-
0:00 / 47:52
The problem

An hour of video is 6.6 GB of tokens

Assistants on glasses and robots must store what they see before any question is asked, in a memory that cannot grow. At one frame per second, Qwen2.5-VL-7B turns an hour of video into about 920,000 visual tokens.

1

Fewer frames

Keep some moments, drop the rest.

2

Fewer tokens

Keep the parts of a frame that matter.

3

Fewer bits

Store each kept token with less precision.

Most streaming memories use only the first two and keep full precision. Yet visual tokens compress well along their feature dimension. Memryoshka uses all three, with one rule.

02 Where the saving comes from

Storage after each step, on a log scale. Shorter codes give most of the saving.

How it works

Nested codes and one price per bit

Three parts and no training. The only fitted part is a PCA basis, computed once on unlabeled video.

Video How it works with a vision-language model
03 Overview
Overview: (a) visual tokens are encoded once into nested bit streams; (b) an online writer shortens or drops stored codes as a shared price rises; (c) at question time, text-conditioned retrieval picks codes, decodes them and passes them to the frozen reader.
1

Nested token codes

Each token is projected onto 512 PCA directions and quantized to 8 bits per direction, 4,096 bits in all. The bits are ordered by how much each reduces the error, so any prefix decodes to an approximate token. Shortening a code drops its tail; nothing is re-encoded.

04 One token's code

Pick a length to see which bits a prefix keeps and how much of the variance it keeps.

← PCA direction 1 (most variance)Rows: bit 1 (top, most significant) to bit 8direction 512 →
2

One price per bit

Each token is dropped or kept at one of eight code lengths, 32 to 4,096 bits. Its value grows with its attention in the vision encoder, how new its frame is, and the detail its prefix keeps. Every bit costs the same price. When memory fills, the price rises: codes get shorter, and the least useful tokens and frames are dropped.

05 What one frame keeps as the price rises

Drag the price. Tokens first get shorter codes, then drop out.

Price per stored bit

0
Kept token, border by length 128 to 4,096 bits Dropped token
3

Reading when a question arrives

LongCLIP ranks the stored frames by similarity to the question. The best frames' most important tokens are decoded until the readout budget of 1,000 to 4,000 positions is used, and the frozen Qwen2.5-VL-7B reads them in time order.

Results

Matches an uncapped memory, beats bounded ones

Frozen Qwen2.5-VL-7B reader, one frame per second, memories written before the questions are known.

06 Accuracy at the same memory size
  • Long video. Best bounded memory on all four benchmarks at every size: +12.3 to +14.1 points on LVBench and +28.9 to +33.9 on TimeScope over CausalMem.
  • Streaming. With the 4 newest frames added, best on StreamingBench and best six-benchmark average: +8.2 to +9.5 points over CausalMem.

Bold: best bounded memory. Gray rows are references and are not ranked.

07 Higher with less

Settings where Memryoshka scores above a reference that stores far more.

08 Readout budget and KV-cache memories

Separate memory and readout budgets

On LVBench with a 100 MB memory, accuracy rises from 44.9% to 50.5% as the readout grows from 1,000 to 8,000 positions. KeyRec and SAVEMem stay below 33%.

Accuracy against readout budget for Memryoshka, KeyRec and SAVEMem.

Against streaming KV-cache memories

On LVBench, 45.7 to 49.7% with 7.2 to 28.7 MB, against 31.6 to 40.4% for KV caches storing 1.1 to 54.6 GB: +5.3 points with about 450× less storage.

Accuracy against stored memory per video for Memryoshka and five KV-cache methods, on a log scale.
09 Adaptive vs one fixed code length

On LVBench, the best fixed length changes with the memory size. Memryoshka picks lengths as it goes and matches or beats the best fixed length in 5 of 6 settings, 0.2 points behind in the sixth.

10 Robots, and audio with video

Robot policy memory (RMBench)

95% success with 256 KiB

56× less storage than the policy's own history, which reaches 94%. Evenly spaced frames reach 92%.

Robot success rate against storage cap per episode.

Audio and video (LVOmniBench)

33.7% with 7.2 MB

Above the full input's 32.0% with about 150× less storage. At 114.7 MB the gain grows to 5.5 points.

Audio-visual accuracy against memory per video.
Ablations: what each part of the writer adds

Accuracy (%) with a readout of 1,000 positions. Bold: best in each column.

Takeaways

What we take away

  1. Fewer bits can beat fewer frames. Under a fixed budget, keeping more of the video at lower detail can beat keeping a few moments in full detail.
  2. Same accuracy with about 1,000× less storage. A 7.2 MB memory matches one that keeps every visual token, averaged over six benchmarks.
  3. Best bounded memory on long video, with no training. +12.3 to +14.1 points on LVBench and +28.9 to +33.9 on TimeScope over CausalMem.
  4. Retrieval is the key. Reading the frames at the annotated evidence times lifts the same 7.2 MB memory from 45.7% to 55.8% on LVBench. Better retrieval would make more of the stored evidence useful.
  5. Memory needs better benchmarks. On streaming benchmarks, keeping only the last few frames already scores well (SimpleStream), so a high score does not show long-term recall. The field needs benchmarks that test memory over long streams.
Citation

BibTeX