betaFeedback

WorksComputer Science

Memryoshka: Adaptive-Fidelity Video Memory for Streaming VLMs

Abstract

Existing streaming VLM memory systems manage limited storage by selecting, merging, or discarding visual evidence, often retaining representations at fixed precision. We observe that visual tokens are highly compressible along their feature dimension with little loss in downstream accuracy. This reveals a key trade-off: under a fixed memory budget, preserving broader temporal coverage at lower fidelity may be preferable to retaining fewer observations at high precision. We introduce Memryoshka, a training-free adaptive-fidelity memory that jointly allocates storage across frames, tokens, and precision. Visual tokens are stored as nested bitstreams, where longer prefixes recover increasingly finer detail. A shared price per bit determines which evidence to retain and at what precision, allowing stored codes to be progressively shortened without revisiting past frames. Across long-video and streaming benchmarks, Memryoshka matches the average accuracy of an uncapped full-precision memory under the same prefill context budget, using just 7.2 MB of storage, roughly 1,000 times less than storing one hour of full-precision visual tokens. It substantially improves performance over existing visual-memory baselines. These results highlight the importance of jointly adapting temporal coverage and representation fidelity for efficient long-term visual memory.

Project page: armenjeddi.github.io/memryoshka

Introduction

“The pictures drawn in our minds are laid in fading colours; and if not sometimes refreshed, vanish and disappear.”

— John Locke, An Essay Concerning Human Understanding (1690)

Streaming vision-language models must answer questions about continuously growing video histories, as in wearable assistants, robots, and real-time monitoring systems [4, 45, 81]. Unlike conventional long-video question answering, where the video and question are typically available together, streaming systems must decide what visual evidence to preserve as frames arrive, without knowing what future questions may require. This creates a central challenge: retaining potentially useful information over long time horizons under a fixed memory budget.

Storing all visual tokens quickly becomes impractical as video streams grow. For example, sampling one 448×448448 \times448 frame per second with Qwen2.5-VL-7B [1] produces approximately 920,000 visual tokens per hour, requiring 6.6 GB of storage and exceeding the model’s context window by more than sixfold. A memory system can reduce this stream at three granularities: which frames to keep, which tokens within each frame, and how many bits per token. Existing streaming memories focus mainly on the first two. Many select, merge, or evict visual tokens and pass the resulting bounded memory directly to the LLM reader [27, 56, 57, 84, 91], tying storage to the reader’s input budget. Retrieval-based memories instead separate storage from readout, preserving more evidence than the reader can process at once and selecting relevant information when questions arrive [9, 10, 44, 73]. These approaches primarily determine which evidence to retain, often at fixed precision even when quantization is used [7]. Yet visual tokens are highly compressible along their feature dimension: we find that even simple quantized PCA representations substantially reduce storage with little loss in downstream accuracy. This suggests that, under a fixed budget, preserving more evidence at lower fidelity may be preferable to retaining fewer full-precision tokens. Since every bit spent on precision is a bit not spent on another frame or token, this raises the question of how to allocate a fixed memory budget across frames, tokens, and precisions as the stream grows.

We introduce Memryoshka (Memory Matryoshka), a training-free adaptive-fidelity memory for streaming VLMs that allocates a fixed storage budget across frames, tokens, and their precision using a shared price per bit. Visual tokens are encoded as nested bitstreams, whose prefixes provide progressively finer reconstructions and can be shortened without re-encoding (Figure 1a). An online writer estimates frame novelty, token importance, and the value of each code length to decide what to retain and at what precision. As the stream grows, the shared price rises, allowing stored codes to lose precision or be discarded without revisiting past frames. When a question arrives, a lightweight query-conditioned readout retrieves and decodes relevant evidence for the frozen VLM reader under a separate readout budget.

Figure 1. Memryoshka: Adaptive-fidelity visual memory. (a) As video streams grow, Memryoshka uses a shared price per bit to jointly allocate a fixed memory budget across frames, tokens, and precision. (b) Memryoshka outperforms existing visual-memory baselines across storage budgets. (c) Compared with fixed-precision PCA coding (512 components, 8 bits each), adaptive fidelity consistently improves performance.

We evaluate Memryoshka on six long-video and streaming benchmarks with a frozen Qwen2.5-VL-7B reader. Across memory budgets, Memryoshka improves average accuracy by 6–8 percentage points over existing visual-memory baselines (Figure 1b), while matching the performance of uncapped full-precision memory at a fraction of its storage cost. Our analysis further shows that adaptive allocation across frames, tokens, and representation fidelity matches or outperforms the best fixed-precision configurations across nearly all settings (Figure 1c). These results demonstrate the importance of adaptive fidelity for efficient long-term visual memory. Our contributions are threefold:

  1. Joint allocation across frames, tokens, and precisions. We formulate streaming visual memory as a joint allocation problem, studying the trade-off between temporal coverage and representation fidelity.

  1. Training-free adaptive-fidelity memory. We introduce nested token codes and a shared price per bit that adapts memory allocation as the stream grows, without training.

  1. Effectiveness across tasks and modalities. Memryoshka substantially outperforms visual-memory baselines across six benchmarks, approaches uncapped-memory performance with far less storage, and extends to robot policies and audio-visual streams.

Related Work

Long-video and streaming understanding. Offline long-video benchmarks [14, 68, 72, 98] provide access to the full video and question, allowing methods to select relevant frames [39, 58, 60, 69, 87, 94] or reduce visual-token costs through pruning or merging [2, 5, 15, 33, 51, 53, 61]. Related efficiency methods prune visual tokens without training [24], adapt how much visual context and reasoning each input receives [25], or distill full-context behavior into models that read pruned tokens [26]. In contrast, streaming video understanding requires processing frames as they arrive, often before future questions are known [23, 35, 38, 81]. Existing approaches study efficient online frame processing and temporal understanding [4, 45, 66, 74, 80]. However, recent studies show that retaining only a few recent frames can perform competitively on streaming benchmarks [54, 95], suggesting that high scores do not necessarily reflect long-term recall. Memryoshka addresses question-agnostic memory construction, preserving evidence over long video streams under a fixed storage budget through adaptive fidelity.

Streaming visual memories. Existing methods manage limited storage by merging frames [18, 57, 71], preserving different levels of detail [31, 89, 91], or selecting and evicting visual tokens [7, 70, 78, 85]. Others use online selection [56] or recurrent updates [97]. KeyRec [9] and SAVEMem [73] separate storage and retrieval budgets, selecting which tokens to preserve and retrieve. Despite these differences, most focus on which evidence to retain, keeping representations at fixed precision. Memryoshka instead jointly adapts temporal coverage and fidelity across frames and tokens using nested codes and a shared price per bit.

KV-cache memories. Language-model memory methods reduce KV-cache growth by retaining recent or important entries [34, 76, 96], compressing older entries [48], or retrieving cached representations [59, 75]. Similar approaches extend to video streams [10, 27, 84]. However, they typically process incoming visual evidence through the LLM, incurring substantial computation and memory costs. Memryoshka instead compresses visual tokens before LLM processing, enabling lightweight memory writing while remaining complementary to KV-cache compression.

Mixed precision and nested codes. Quantization reduces KV-cache and visual-token storage [20, 40, 62]. Mixed-precision methods preserve otherwise evicted tokens at lower precision [82], allocate more bits to important entries [19], reduce the precision of older entries [11], or jointly consider quantization and eviction [93]. Other methods allocate bits across cached representations or decorrelated components [17, 32, 67], while recent work compresses visual features for device–edge inference [36, 43, 88]. Concurrent work, RDTok [92], uses query-independent rate–distortion optimization to allocate bits across visual tokens and PCA coefficients, retaining all tokens at individually optimized rates. Progressive and nested representations support decoding at different fidelities through hierarchical dimensions [28, 37, 49], nested bit widths [42], token selection [3, 22], or embedded image codes [29, 41, 50, 52, 64, 65]. Classical rate–distortion methods provide a framework for bit allocation under shared constraints [12, 55]. Memryoshka brings these ideas to bounded streaming VLM memory using training-free nested codes and a shared price that jointly determines which frames and tokens to retain and at what precision. Stored codes can be progressively shortened as the stream grows without re-encoding.

Method

Problem Formulation and Overview

Problem Setting. Consider a video stream S={x1,x2,…}S = \{x_1, x_2, \ldots\}, where each frame xtx_t arrives at timestamp τt\tau_t. We study streaming video question answering, where visual evidence must be stored before future questions are known. The system maintains a bounded memory under a fixed storage budget BB, without access to past frames for re-encoding. When a question arrives, the LLM reader processes at most LL positions drawn from this memory. We treat the two budgets separately: BB bounds what is kept over time, and LL bounds what is read per question. The memory can spend BB at three granularities: which frames to keep, which tokens to keep, and how many bits to spend on each kept token. The goal is to divide BB among them so that as much of the growing video history as possible remains retrievable, at a fidelity the reader can still use.

Overall Framework. Our framework is illustrated in Figure 2. For each incoming frame xtx_t, the frozen vision encoder of a VLM produces NN visual tokens Vt={vt,i}i=1NV_t = \{v_{t,i}\}_{i=1}^{N} with vt,i∈RDv_{t,i} \in\mathbb{R}^{D}. Following the retrieval design of Q-Frame [94], we also use a frozen CLIP-like image encoder [47, 90] to extract a unit-norm retrieval embedding gt=ϕV(xt)g_t = \phi_{\mathrm{V}}(x_t). Memryoshka consists of three stages:

Figure 2. Overview of Memryoshka. (a) Visual tokens from each incoming frame are encoded once into nested bitstreams that support progressive decoding. (b) An online writer uses a shared price per bit to allocate a fixed storage budget across frames, tokens, and precision, shortening or discarding stored codes as the stream grows. (c) At question time, query-conditioned retrieval selects and decodes relevant evidence for the frozen VLM reader under a separate readout budget.

(I) Progressive Token Coding. A training-free nested code stores each visual token as a progressively decodable bitstream, allowing stored codes to be shortened without re-encoding (§ 3.2).

(II) Online Memory Writing. An online writer maintains a bounded memory Mt\mathcal{M}_t by allocating storage across frames, tokens, and their precision using a shared price per bit:

Mt=Write⁡(Mt−1,Vt,gt,τt;B),bits⁡(Mt)≤B.(1)\mathcal{M}_t = \operatorname{Write}(\mathcal{M}_{t-1}, V_t, g_t, \tau_t; B), \qquad\operatorname{bits}(\mathcal{M}_t) \le B. \tag*{(1)}

As the stream grows, the writer shortens stored codes or removes them when necessary, so evidence can lose detail before it becomes unretrievable (§ 3.3).

(III) Query-Conditioned Reading. Given a question qq at time τq\tau_q, we use the CLIP-like text encoder to obtain its embedding gq=ϕT(q)g_q = \phi_{\mathrm{T}}(q), which guides the retrieval of relevant visual evidence from memory under the readout budget LL:

Cq=Read⁡(Mτq,gq;L),len⁡(Cq)≤L.(2)C_q = \operatorname{Read}(\mathcal{M}_{\tau_q}, g_q; L), \qquad\operatorname{len}(C_q) \le L. \tag*{(2)}

The frozen LLM reader then answers qq using the retrieved context CqC_q (§ 3.4).

Progressive Token Coding

To adapt memory as the video history grows, we encode visual tokens into nested bitstreams that can be progressively shortened. Our approach is training-free, requiring only a PCA basis fitted once on unlabeled video, and follows the principle of embedded coding [64].

Nested Token Codes. Given a visual token v∈Vtv \in V_t, we project it onto a compact PCA basis W∈RD×dW \in\mathbb{R}^{D \times d}:

z=(WT(v−μ))⊘σ,(3)z = (W^{\mathsf{T}}(v-\mu)) \oslash\sigma, \tag*{(3)}

where μ\mu and σ\sigma are the PCA mean and component standard deviations, and ⊘\oslash denotes elementwise division. We uniformly quantize each component and order the resulting bits across components by σk2γ(p)\sigma_k^2\gamma(p), the expected reduction in squared reconstruction error from bit pp of component kk, where γ(p)\gamma(p) is the corresponding reduction for a unit-variance Gaussian under the quantizer. The ordering preserves bit significance within each component. Any prefix of rr bits can then be decoded to approximate the original token, with longer prefixes providing higher fidelity.

Prefix Value. Under the independent Gaussian PCA model, assuming diminishing marginal gains across successive bit planes, this ordering minimizes expected squared reconstruction error for every prefix within the given quantization scheme [13, 55]. We define the value of a prefix as the fraction of PCA variance explained under this model:

e(r)=∑(k,p)∈Prσk2γ(p)∑kσk2,(4)e(r) = \frac{\sum_{(k,p)\in P_r}\sigma_k^2\gamma(p)}{\sum_k \sigma_k^2}, \tag*{(4)}

where PrP_r contains the first rr bits in the ordering. This value is computed directly from the PCA spectrum and quantizer, without training. Further derivations and decoding details are provided in the supplement.

Online Writing with a Shared Price

Following Lagrangian rate–distortion allocation [12, 55], we balance token utility and storage cost using a shared price θ\theta per bit. For each incoming frame, the writer decides which tokens to retain and at what precision. As memory fills, the same price applies to previously stored codes, allowing them to lose precision without re-encoding or be discarded when their utility no longer justifies their cost.

Price and Decisions. Each token can either be discarded (o=∅o = \varnothing) or retained with a prefix of length o=r∈Ro = r \in\mathcal{R}. We choose the option that maximizes its utility after accounting for the price of retaining it:

ot,i⋆(θ)=arg⁡max⁡o∈{∅}∪R[ut,i(o)−θc(o)],o_{t,i}^{\star}(\theta) = \underset{o\in\{\varnothing\}\cup\mathcal{R}}{\arg\max}\left[u_{t,i}(o)-\theta c(o)\right],
πt,i(θ)=ut,i(ot,i⋆)−θc(ot,i⋆),(5)\pi_{t,i}(\theta) = u_{t,i}(o_{t,i}^{\star})-\theta c(o_{t,i}^{\star}), \tag*{(5)}

where ut,i(o)u_{t,i}(o) is the estimated utility of option oo, c(o)c(o) its storage cost, and πt,i\pi_{t,i} the resulting surplus. For previously stored tokens, only prefixes no longer than their current codes are considered. Keeping a frame also requires β\beta bits of metadata for its retrieval embedding, timestamp, and novelty. A frame is therefore retained only when its tokens’ combined surplus exceeds this cost:

keep frame t⟺∑i=1Nπt,i(θ)>θβ.(6)\text{keep frame }t \quad\Longleftrightarrow\quad\sum_{i=1}^{N}\pi_{t,i}(\theta)>\theta\beta. \tag*{(6)}

We initialize θ=0\theta=0. Whenever new data would exceed the storage budget BB, we use bisection to increase the price until memory usage falls below ηB\eta B, where η<1\eta<1 leaves room for incoming frames. Increasing the price favors shorter codes or removal, so stored representations never require re-encoding. At a fixed price, these decisions maximize the estimated utility minus the price-weighted storage cost over the available coding options (see supplement).

Utility. Since future questions are unknown, we estimate each token’s general usefulness rather than its relevance to a specific query. We define its utility as:

ut,i(∅)=0,ut,i(r)=αt,i νt(e(r)−e0),(7)u_{t,i}(\varnothing)=0,\qquad u_{t,i}(r)=\alpha_{t,i}\,\nu_t\left(e(r)-e_0\right), \tag*{(7)}

where αt,i\alpha_{t,i} measures token importance, νt\nu_t measures frame novelty, and e(r)e(r) is the prefix value from Eq. (4). The quality floor e0e_0 prevents retaining representations that preserve less PCA variance than e0e_0, controlling the trade-off between temporal coverage and representation fidelity.

We estimate token importance αt,i\alpha_{t,i} from the attention received in the last full-attention vision-encoder layer [51, 83], normalized to have mean one per frame. Frame novelty is measured using recent frame embeddings [18, 57]:

νt=max⁡{νmin⁡,1−max⁡h∈Ht−1gtTh},(8)\nu_t=\max\left\{\nu_{\min},1-\max_{h\in H_{t-1}}g_t^\mathsf{T}h\right\}, \tag*{(8)}

where Ht−1H_{t-1} contains recent frame embeddings, including those not retained in memory. For the first frame, ν1=1\nu_1=1.

Cost. Each retained token costs c(r)=r+btokc(r) = r + b_{\mathrm{tok}} bits, including rr bits for its code and btokb_{\mathrm{tok}} bits for its spatial position, importance, and code length, with c(∅)=0c(\varnothing) = 0. Each retained frame additionally requires β\beta bits for its retrieval embedding, timestamp, and novelty. The stored memory usage is:

bits⁡(Mt)=∑t′ kept[β+∑i:ot′,i≠∅(rt′,i+btok)].(9)\operatorname{bits}(\mathcal{M}_t) = \sum_{t' \ \mathrm{kept}} \left[\beta+ \sum_{i:o_{t',i}\ne\varnothing} (r_{t',i} + b_{\mathrm{tok}})\right]. \tag*{(9)}

Query-Conditioned Reading

To retrieve relevant evidence from memory, we adopt a lightweight CLIP-style approach inspired by Q-Frame [94], adapted to stored representations where frames and tokens may have been discarded or compressed.

Frame and Token Selection. Given a question qq, the CLIP-style text encoder gives gq=ϕT(q)g_q = \phi_T(q). The stored frames are then ranked by cosine similarity gtTgqg_t^\mathsf{T} g_q. Within each frame, we select tokens by decreasing importance until their cumulative importance reaches a fraction ρ\rho of the frame’s retained importance:

∑i∈Stαt,i≥ρ∑i∈Ktαt,i,(10)\sum_{i\in S_t} \alpha_{t,i} \ge\rho\sum_{i\in K_t} \alpha_{t,i}, \tag*{(10)}

where KtK_t denotes the retained tokens and StS_t the smallest top-ranked subset satisfying this threshold. This adapts the number of selected tokens to their importance distribution and the evidence remaining in each frame.

We process frames in relevance order until the readout budget LL is reached, counting both visual and formatting tokens. Finally, we decode the selected tokens, restore their spatial positions, and pass the frames in chronological order to the frozen VLM reader.

Experiments

Experimental Setup

Readers and Benchmarks. We use Qwen2.5-VL-7B [1] as the default frozen reader for experiments and ablations. We evaluate on four long-video benchmarks: LVBench [68], the long splits of LongVideoBench [72], the long-video subset of Video-MME [14] (without subtitles), and TimeScope [99]. We also evaluate on two streaming benchmarks: OVO-Bench [35] (backward-tracing and real-time tasks) and StreamingBench [38] (real-time visual understanding). All memories are constructed without access to future questions. Streaming questions access memory at their timestamps, while offline questions are answered after processing the full video. The supplement provides benchmark details and results across model sizes and architectures, including LLaVA-OneVision [30] and Gemma [16].

Baselines. We compare against visual-memory methods: SimpleStream [54], KeyRec [9], CausalMem [56], and SAVEMem [73]. We also consider KV-cache-based methods: InfiniPot-V [27], StreamingTOM [7], ReKV [10], StreamKV [8], and MuKV [77].

Implementation Details. By default, we sample frames at 1 fps and resize them to approximately 448 × 448 pixels while preserving aspect ratio, yielding about 256 visual tokens per frame, each of dimension D=3,584D = 3{,}584. For retrieval, we use frozen LongCLIP-B/16 [90] with square-padded frames. We fit the PCA basis (d=512d = 512) on visual tokens from 50 randomly selected short and medium Video-MME videos. Each PCA component is uniformly quantized to 8 bits over ±3\pm3 standard deviations. We select the quality floor e0=0.5e_0 = 0.5 and readout share ρ=0.8\rho= 0.8 using 600 questions from 200 short and medium Video-MME videos.

The writer uses eight prefix lengths R={32,64,128,…,4,096}\mathcal{R} = \{32, 64, 128, \ldots, 4{,}096\} bits, with memory headroom η=0.9\eta= 0.9. Each token requires btok=24b_{\mathrm{tok}} = 24 bits of metadata for its importance, spatial position, and code length. Each retained frame requires β=4,152\beta= 4{,}152 bits for its retrieval embedding, timestamp, and novelty. Frame novelty uses the previous eight frames, with νmin⁡=0.05\nu_{\min} = 0.05. Further implementation, evaluation, and efficiency details are provided in the supplement.

Main Results

In our main experiments, we compare visual-memory methods under matched storage and readout budgets. Since some baselines pass their entire memory to the reader, we set the storage budget BB to the nominal size of LL full-precision visual tokens: L={1,000,2,000,4,000}L = \{1{,}000, 2{,}000, 4{,}000\} corresponds to B={7.2,14.3,28.7}B = \{7.2, 14.3, 28.7\} MB. We include two references: an uncapped memory that stores all visual tokens but uses our query-conditioned readout, and hindsight Uniform sampling, which accesses the full video at query time. Following SimpleStream [54], we additionally evaluate a Memryoshka variant with the four most recent frames included in its readout. Tab. 1 shows two main trends:

  • Long-video Understanding. Memryoshka outperforms all bounded visual-memory baselines across four long-video benchmarks at every budget. It also matches or outperforms the uncapped reference across the three budgets. For perspective, one hour of video at 1 fps requires about 6.6 GB of full-precision storage, compared with just 7.2 MB for Memryoshka. Gains over CausalMem are particularly large on TimeScope (28.9–33.9 points) and LVBench (12.3–14.1 points), where long-term evidence matters most. Even at 7.2 MB, Memryoshka matches or exceeds all baselines at 28.7 MB on these benchmarks.

  • Streaming Understanding. On OVO-Bench and StreamingBench, methods favoring recent frames per

form better, suggesting that many questions depend on recent observations as also observed by SimpleStream [54]. This also limits similarity-based retrieval in both Memryoshka and the uncapped reference. Simply adding the four most recent frames improves Memryoshka by 2.8–9.5 points across the two benchmarks, achieving the best StreamingBench accuracy at every budget. This variant also achieves the highest average across all six benchmarks, exceeding CausalMem by 8.2–9.5 points.

MethodLVBenchLongVideoBenchVideo-MMETimeScopeOVO-BenchStreamingBenchAvg.
Base model (Full-Memory)44.554.449.685.652.569.959.4
Uniform†30.141.843.627.857.076.246.1
SimpleStream [54]27.239.941.524.462.378.145.6
KeyRec [9]27.241.039.824.462.477.545.4
CausalMem [56]33.446.645.257.261.878.353.8
SAVEMem [73]27.936.240.026.164.679.845.8
MEMRYOSHKA45.752.350.186.153.270.659.7
MEMRYOSHKA + 4 recent frames45.551.450.184.460.380.162.0
Base model (Full-Memory)46.956.450.894.454.972.962.7
Uniform†34.447.049.741.157.477.351.2
SimpleStream [54]27.841.742.730.063.079.847.5
KeyRec [9]27.942.941.324.461.978.746.2
CausalMem [56]35.149.545.960.062.780.355.6
SAVEMem [73]28.939.041.132.264.281.147.8
MEMRYOSHKA48.458.752.493.954.773.063.5
MEMRYOSHKA + 4 recent frames47.257.552.688.959.781.664.6
Base model (Full-Memory)49.458.252.795.056.676.064.6
Uniform†36.548.953.147.259.479.454.1
SimpleStream [54]30.744.043.330.061.280.248.2
KeyRec [9]29.643.342.227.861.879.947.4
CausalMem [56]35.652.345.464.462.480.756.8
SAVEMem [73]32.143.443.037.264.580.950.2
MEMRYOSHKA49.758.053.795.056.676.164.8
MEMRYOSHKA + 4 recent frames50.056.954.295.659.481.666.3

Table 1. Comparison at matched memory and readout. Each budget block compares methods under the specified memory storage and readout budgets. No-cap references use unrestricted memory storage but the same readout budget, and are excluded from ranking. The +4 recent frames variant always includes the four most recent frames in the readout. Bold and underlining indicate the best and second-best results within each budget, respectively. †Requires access to the full past video.

Decoupling Memory and Readout Budgets

In Sec. 4.2, we match the storage budget to the full-precision readout size. Here, we instead fix the storage budget BB and vary the readout budget LL. KeyRec [9] and SAVEMem [73] also support separate storage and readout budgets, making them natural baselines for this comparison. Unlike these methods, Memryoshka additionally adapts the precision of stored evidence.

Figure 3a compares these methods on LVBench with a fixed 100 MB storage budget and readout sizes from 1,000 to 8,000 positions. Memryoshka improves from 44.9% to 50.5%, while KeyRec and SAVEMem remain below 33%. The released SAVEMem implementation limits storage to approximately 28 MB; we also remove this limit to allow 100 MB, but accuracy reaches only 36.3%. These results show that Memryoshka makes substantially better use of the available memory and readout budgets.

Decoupling Memory and Readout BudgetsComparison with KV-cache Memories

Figure 3. Memryoshka enables accurate long-video reasoning with limited readout and compact storage. On Full LVBench with Qwen2.5-VL-7B, (a) Memryoshka consistently outperforms KeyRec and SAVEMem across readout budgets, demonstrating its effectiveness under constrained readout. (b) Compared with KV-cache baselines, Memryoshka achieves higher accuracy while requiring orders of magnitude less storage.

Comparison with Streaming KV Memories

We compare Memryoshka with streaming KV-cache methods [7, 8, 10, 27, 77]. These methods process incoming frames through the LLM, retaining KV states for reuse at question time. For Qwen2.5-VL-7B, each full-precision KV-cache position requires 57.3 KB, compared with 7.2 KB per visual token. We evaluate all methods on LVBench using their released implementations (Figure 3b). KV-cache methods achieve 31.6–40.4% accuracy while storing 1.1–54.6 GB per video. Memryoshka achieves 45.7–49.7% with just 7.2–28.7 MB, outperforming the strongest baseline by 5.3 points with roughly 450× less storage.

Beyond memory efficiency, the methods differ in when they incur computation. KV-cache methods process every incoming frame through the LLM, requiring substantial FLOPs and hundreds of milliseconds per frame. Memryoshka avoids LLM computation during memory writing and instead prefills at most LL selected positions when a question arrives. While this incurs additional query-time prefill, it substantially reduces streaming-time computation, making Memryoshka better suited to long-running deployment. Detailed compute and latency comparisons are provided in the supplement.

Coverage-Fidelity Trade-off

Under a fixed storage budget, greater temporal coverage comes at the cost of representation fidelity. We study this trade-off on LVBench, whose annotated evidence timestamps allow us to evaluate retrieval using the ground-truth evidence locations. We compare fixed-rate PCA codes, fixed-length nested codes, and Memryoshka’s adaptive allocation, all using the same writer. We report frame retention, tokens per retained frame, and accuracy with both LongCLIP and oracle retrieval, each under a 1,000-position readout budget. The oracle uses evidence timestamps to select among frames still available in memory, helping separate retrieval errors from storage limitations.

Tab. 2 shows that the best fixed precision depends on the storage budget. At 1.8 MB, a full 4,096-bit PCA code retains only 6.5% of frames and achieves 36.8% accuracy, while a 512-bit nested code retains 12.0% and reaches 43.0%. At 28.7 MB, however, the best fixed length increases to 1,024 bits. Memryoshka achieves 43.2–47.1% accuracy across these budgets without choosing a fixed length, matching or exceeding the best fixed code in five of six budget–retrieval settings and trailing by only 0.2 points in the sixth. Similar results with oracle retrieval suggest that the benefit comes from better allocation of stored evidence, rather than retrieval quality alone.

Beyond Video Question Answering

Robot policy. Some robot tasks require execution history [6]. SimpleMemVLA [86] conditions on video history and current observations, storing up to 23.4 MiB of visual features for a 60-second window and reading at most 4,800 visual tokens for prediction. We integrate Memryoshka to compress memory and retrieve evidence beyond this window. We include a hindsight Uniform baseline sampling 120 frames from the episode, matching the model’s visual context size. Figure 4a compares them on 100 matched episodes across ten RMBench tasks [6]. With 256 KiB of storage (56× less than the baseline), Memryoshka achieves 95% success, compared with 94% for SimpleMemVLA and 92% for hindsight Uniform. This shows that Memryoshka supports efficient robot memories while maintaining strong performance under high compression.

Beyond video question answering

Figure 4. Beyond video question answering. (a) Success rate of SimpleMemVLA [86] with Memryoshka codes under per-episode storage caps (95% confidence intervals). (b) Accuracy at matched nominal memory budgets; the native input uses its median memory footprint. Memryoshka maintains strong performance under high compression across both settings.

Audio-visual. We extend Memryoshka to audio-visual QA with Qwen2.5-Omni-7B [79] on LVOmniBench [63]. We apply the same coding approach to audio, fitting a separate PCA basis on short and medium Video-MME audio. A shared price per bit allocates memory across both modalities under a single budget. For retrieval, we use LongCLIP vision-text embeddings paired with the corresponding audio. Figure 4b compares Memryoshka with the reported full-input baseline and Uniform sampling. With just 7.2 MB, Memryoshka achieves 33.7% accuracy, exceeding the full-input baseline’s 32.0% with roughly 150× less storage (1.1 GB per video). At 114.7 MB, the gain grows to 5.5 points. Memryoshka also outperforms Uniform sampling at matched storage by 4.9–7.2 points across budgets.

Ablations

We examine the writer components and sensitivity to the quality floor and readout coverage on LVBench and the long split of Video-MME, at 1.8 and 7.2 MB with a 1,000-position readout (Table 3).

ConfigurationVideo-MMEVideo-MMELVBenchLVBench
1.8 MB7.2 MB1.8 MB7.2 MB
Memryoshka (default)50.250.143.245.7
Writer utility (component ablations)
Without importance (αt,i=1\alpha_{t,i}=1)48.149.339.143.4
Without novelty (νt=1\nu_t=1)48.949.639.042.8
Linear e(r)e(r)49.350.036.841.5
Quality floor (sensitivity)
e0=0e_0=043.144.438.837.0
e0=0.3e_0=0.348.948.841.045.6
e0=0.7e_0=0.751.151.139.943.8
e0=0.9e_0=0.950.750.038.941.5
Readout coverage (sensitivity)
ρ=0.5\rho=0.550.150.839.242.8
ρ=0.7\rho=0.750.149.842.443.4
ρ=1\rho=149.649.043.245.8

Table 3. Ablations and parameter sensitivity. QA accuracy (%) on the long split of Video-MME and LVBench, with a 1,000-position readout. Each variant is compared with the default Memryoshka (blue).

Writer Utility. We ablate token importance αt,i\alpha_{t,i}, frame novelty νt\nu_t, and the prefix value e(r)e(r). Removing importance or novelty reduces LVBench accuracy by 2.3–4.2 points, showing the value of allocating storage across both tokens and frames. Replacing e(r)e(r) with a linear function reduces LVBench accuracy by 4.2–6.4 points, highlighting the importance of valuing early bits more highly. The effects are generally smaller on Video-MME.

Quality Floor. The floor e0e_0 balances coverage and fidelity. Without it, more tokens are stored at very low precision, but accuracy drops by 4.4–8.7 points. Higher floors favor fidelity, slightly improving Video-MME while reducing LVBench accuracy. Our default e0=0.5e_0=0.5 is within 1.0 point of the best tested value across all four settings.

Readout Coverage. The threshold ρ\rho controls how many tokens are read per retrieved frame. Lower values allow more frames but fewer tokens per frame: at ρ=0.5\rho=0.5, LVBench accuracy drops by 2.9–4.0 points. Performance is otherwise fairly stable, with the default ρ=0.8\rho=0.8 within 1.0 point of the best tested value in all four settings.

Conclusion

We studied the trade-off between temporal coverage and representation fidelity in streaming VLM memory. We introduced Memryoshka, a training-free approach using nested token codes to adapt the precision of stored visual evidence as the stream grows. A shared price per bit jointly allocates memory across frames, tokens, and precision, while a separate readout retrieves relevant evidence when questions arrive. Memryoshka approaches the performance of uncapped full-precision memory at a fraction of the storage cost, outperforming existing visual-memory baselines on long-video understanding. It also matches or outperforms the best fixed-precision configurations in nearly all settings without choosing a precision for each memory budget. We further demonstrate its applicability to robot policies and joint audio-visual memory.

Our results also highlight opportunities for improvement. On streaming benchmarks, incorporating recent frames improves performance, revealing a limitation of similarity-based retrieval. Better retrieval could improve the usefulness of stored evidence. Similarly, our simple utility function provides an effective proxy for memory allocation, but better estimates of future usefulness could improve the balance between temporal coverage and fidelity.

LLM Usage Statement

ChatGPT and Claude were used to assist with manuscript preparation, including language editing, structural organization, refinement of mathematical notation, and the organization and presentation of tables and figures. These tools were also used for preliminary literature discovery to identify potentially relevant publications. The selection, examination, and interpretation of relevant literature were carried out by the authors. All references, technical claims, mathematical formulations, implementations, experimental results, and conclusions were independently reviewed and verified by the authors, who take full responsibility for the content of this submission.

Method Details

This section provides the derivations and implementation details of the three stages in § 3: progressive token coding, online memory writing, and query-conditioned reading.

Progressive Token Coding

We detail the training-free PCA-based nested token code of § 3.2: how each component is quantized, how a prefix is decoded, why the bit ordering minimizes the expected reconstruction error at every prefix length, and what a prefix of each length contains.

Quantization. Each visual token v∈RDv \in\mathbb{R}^{D} is mapped to the standardized PCA coordinates z=(WT(v−μ))⊘σz = (W^{\mathsf{T}}(v-\mu)) \oslash\sigma of Eq. (3), where W∈RD×dW \in\mathbb{R}^{D \times d} has orthonormal columns. For Qwen2.5-VL-7B, the d=512d = 512 components retain 90.1% of the token variance around μ\mu. Each coordinate zkz_k is uniformly quantized to an eight-bit level

j^k=min⁡(255,max⁡(0,⌊2566(zk+3)⌋)).(11)\hat{j}_k = \min\left(255,\max\left(0,\left\lfloor\frac{256}{6}(z_k+3)\right\rfloor\right)\right). \tag*{(11)}

written in binary from the most significant bit. The first bb bits of jkj_k identify one of 2b2^b intervals of width 6/2b6/2^b on [−3,3][-3,3]. The two outer intervals extend to ±∞\pm\infty, so values beyond three standard deviations remain covered. A full code contains 8d=4,0968d = 4{,}096 bits.

Decoding a Prefix. A prefix of rr bits retains the bk(r)b_k(r) most significant bits of each component kk, where bk(r)b_k(r) follows from the fixed ordering. A stored code therefore needs only its length, which is part of the per-token metadata (§ 3.3), and no per-component allocation map. We reconstruct each component by the mean of a unit-variance Gaussian ξ∼N(0,1)\xi\sim\mathcal{N}(0,1) over its interval [z‾k,z‾k)[\underline{z}_k,\overline{z}_k):

z^k=E[ξ∣z‾k≤ξ<z‾k]=n(z‾k)−n(z‾k)Φ(z‾k)−Φ(z‾k).(12)\hat{z}_k = \mathbb{E}\left[\xi\mid\underline{z}_k \le\xi< \overline{z}_k\right] = \frac{n(\underline{z}_k)-n(\overline{z}_k)}{\Phi(\overline{z}_k)-\Phi(\underline{z}_k)}. \tag*{(12)}

where nn and Φ\Phi denote the standard normal density and distribution function. Components without retained bits are set to z^k=0\hat{z}_k = 0, the PCA mean. The decoded token is

v^=μ+W(σ⊙z^).(13)\hat{v} = \mu+ W(\sigma\odot\hat{z}). \tag*{(13)}

The interval means are computed once in closed form, so decoding requires one table lookup per component and one matrix product per token. It uses no learned parameters and applies to every prefix length. Shortening a stored code truncates its bit string, without access to the original frame or another pass of the vision encoder.

Value of a Bit Plane. Let ψb(ξ)\psi_b(\xi) denote the reconstruction of ξ∼N(0,1)\xi\sim\mathcal{N}(0,1) from its first bb bits by Eq. (12), with ψ0(ξ)=0\psi_0(\xi)=0. Since a conditional mean is orthogonal to its residual, the expected error after bb bits is

ε(b)=E[(ξ−ψb(ξ))2]=1−E[ψb(ξ)2],(14)\varepsilon(b) = \mathbb{E}\left[(\xi-\psi_b(\xi))^2\right] = 1-\mathbb{E}\left[\psi_b(\xi)^2\right], \tag*{(14)}

and the expected reduction from bit pp is γ(p)=ε(p−1)−ε(p)\gamma(p)=\varepsilon(p-1)-\varepsilon(p). Table 4 lists the eight values. The first bit is the sign of ξ\xi and removes γ(1)=2/π≈0.64\gamma(1)=2/\pi\approx0.64 of the variance. The second and third bits remove 0.20 and 0.12, and each later bit removes roughly a quarter as much as the bit before it, as expected for a uniform quantizer at fine resolution. For component kk, bit pp therefore reduces the expected squared error by σk2γ(p)\sigma_k^2\gamma(p), the quantity that orders the bits in § 3.2.

Bit ppInterval mean γ(p)\gamma(p)Interval mean ε(p)\varepsilon(p)Interval midpoint γ(p)\gamma(p)
10.63660.36340.1437
20.20070.16270.6665
30.11640.04630.1417
40.03410.01220.0356
50.00890.00330.0090
60.00230.00100.0023
70.00060.00040.0006
80.00020.00030.0002

Table 4. Value of each bit plane. Expected reduction γ(p)\gamma(p) in squared error from bit pp and remaining error ε(p)\varepsilon(p) after pp bits, for a unit-variance Gaussian quantized to eight bits over ±3\pm3 standard deviations. With interval means, the reductions decrease with pp. With interval midpoints, the second bit is worth more than the first.

Optimality of the Ordering. Since WW has orthonormal columns, the error of a decoded token splits into an in-basis term and a residual that no code can recover:

∥v^−v∥2=∑kσk2(z^k−zk)2+∥v⊥∥2,(15)\lVert\hat{v}-v\rVert^2 = \sum_k \sigma_k^2(\hat{z}_k-z_k)^2+\lVert v_{\perp}\rVert^2, \tag*{(15)}

where v⊥=(I−WWT)(v−μ)v_{\perp}=(I-WW^{\mathsf{T}})(v-\mu) is the part of v−μv-\mu outside the basis. Under the Gaussian PCA model of § 3.2, the expected in-basis error of a prefix that keeps bkb_k bits of component kk is ∑kσk2ε(bk)\sum_k \sigma_k^2\varepsilon(b_k). Each term depends only on the distribution of its own component, since components are quantized and decoded separately. § 3.2 states this result under an independent Gaussian model, but the decomposition needs only each component to be independent.

Proposition 1 (Prefix optimality). List all pairs (k,p)(k,p) by decreasing σk2γ(p)\sigma_k^2\gamma(p), breaking ties by smaller kk and then smaller pp, and let bk(r)b_k(r) be the number of bits of component kk among the first rr pairs. If γ(p)>0\gamma(p)>0 decreases with pp, then for every r∈{0,…,8d}r\in\{0,\ldots,8d\}: (i) the first rr pairs contain the bk(r)b_k(r) most significant bits of each component; and (ii) (bk(r))k(b_k(r))_k minimizes ∑kσk2ε(bk)\sum_k\sigma_k^2\varepsilon(b_k) over all allocations that keep the bkb_k most significant bits of each component, with ∑kbk=r\sum_k b_k=r and 0≤bk≤80\le b_k\le8.

Proof. (i) For a fixed kk, σk2γ(p)\sigma_k^2\gamma(p) decreases with pp, so bit pp of component kk precedes bit p+1p+1. (ii) The objective is a sum of terms σk2ε(bk)\sigma_k^2\varepsilon(b_k), each decreasing and convex in bkb_k because its successive decrements σk2γ(p)\sigma_k^2\gamma(p) are positive and decreasing. For such separable objectives under a single budget, repeatedly adding the bit with the largest decrement gives an optimal allocation at every budget [13, 55]. By (i), the next pair in the list is always the largest decrement still available, so the first rr pairs are exactly these greedy steps. Since each step extends the previous allocation, a single ordering serves all prefix lengths.

Table 4 confirms that γ(p)\gamma(p) decreases for our quantizer, and our implementation checks this condition before building the ordering. The proposition concerns expected squared reconstruction error under the Gaussian model and the given quantizer; it does not guarantee optimal answer accuracy.

Role of Interval Means. The decreasing reductions in Table 4 rely on decoding with interval means. If a prefix were instead decoded with interval midpoints, the first bit would remove only 0.14 of the variance and the second 0.67. Sorting by σk2γ(p)\sigma_k^2\gamma(p) would then place the second bit of a component before its first, and the greedy argument above would no longer apply. Interval means keep every prefix of the ordering a valid most-significant-bit prefix of each component.

Prefix Value and Contents. By Eq. (14), the prefix value of Eq. (4) equals

e(r)=1−∑kσk2ε(bk(r))∑kσk2.(16)e(r)=1-\frac{\sum_k\sigma_k^2\varepsilon(b_k(r))}{\sum_k\sigma_k^2}. \tag*{(16)}

the fraction of the in-basis variance that an rr-bit prefix recovers under the Gaussian model. It is nondecreasing and concave in rr, since the bits are sorted by decreasing reduction. Because the basis retains 90.1% of the token variance, an rr-bit prefix recovers about 0.901 e(r)0.901\,e(r) of the total. Table 5 lists e(r)e(r) for the eight prefix lengths in R\mathcal{R} with the Qwen2.5-VL-7B basis, together with how each prefix spends its bits. Short prefixes spread their bits over many components at coarse precision rather than keeping a few components at

rr (bits)e(r)e(r)Components usedFirst-component bits
320.317253
640.416494
1280.533944
2560.6651805
5120.8043265
1,0240.9285126
2,0480.9935127
4,0961.0005128

Table 5. Contents of each prefix length. Prefix value e(r)e(r) (Eq. (16)), number of components with at least one retained bit, and bits retained for the leading component, for the Qwen2.5-VL-7B PCA basis with d=512d=512 components.

full precision: a 512-bit prefix covers 326 of the 512 components and keeps 5 of the 8 bits of the leading component, and every component receives at least one bit from 1,024 bits on. This explains the gap in Table 2 between a 512-bit nested code and 64 components at 8 bits, which use the same storage per token (43.0% vs. 34.6% at 1.8 MB with LongCLIP retrieval). The ordering and e(r)e(r) are recomputed from the PCA basis of each reader.

RepresentationBits/tokenStorage cap: 1.8 MBStorage cap: 7.2 MBStorage cap: 28.7 MB
RetainedRetrievalRetainedRetrievalRetainedRetrieval
FramesTok.OracleLongCLIPFramesTok.OracleLongCLIPFramesTok.OracleLongCLIP
Fixed-rate PCA codes
512 components × 8 bits (full code)4,0966.51139.636.818.81646.741.561.02053.944.2
256 components × 8 bits2,0488.11841.238.124.72448.842.078.13156.845.9
512 components × 2 bits1,0249.82845.739.133.23451.944.190.65259.146.3
64 components × 8 bits51212.04338.334.645.04842.135.798.39344.636.2
Nested codes (fixed and adaptive prefix lengths)
Fixed r=2,048r = 2{,}0482,0488.11842.438.524.72450.641.878.13157.546.3
Fixed r=1,024r = 1{,}0241,0249.82846.640.333.23453.844.090.65260.147.0
Fixed r=512r = 51251212.04349.043.045.04855.844.198.39359.945.3
Fixed r=256r = 25625615.36347.940.658.46654.642.7100.016156.642.2
MEMRYOSHKA (adaptive)545–62411.24549.443.239.25055.845.795.28059.947.1

Table 2. Temporal coverage vs. fidelity. LVBench results with a 1,000-position readout. All use the same writer. Frames is the percentage of retained frames, and Tok. is average tokens per retained frame. Oracle uses annotated evidence timestamps, while LongCLIP uses query similarity; both report QA accuracy (%). For Memryoshka, bits/token gives the range of average code lengths across budgets. Bold marks the best accuracy. Memryoshka adapts precision across budgets, matching or exceeding the best fixed code in five of six settings.

Online Writing with a Shared Price

We detail the online writer of § 3.3: what its decisions optimize at a fixed price, why raising the price never requires re-encoding, how the price is updated, and how utilities and storage are computed. Alg. 1 summarizes one write step.

Decisions at a Fixed Price. A memory M\mathcal{M} assigns each observed frame tt a decision to keep or discard it and, if the frame is kept, an option ot,i∈{∅}∪Ro_{t,i}\in\{\varnothing\}\cup\mathcal{R} to each of its tokens. Its total utility is U(M)=∑t∈kept∑iut,i(ot,i)U(\mathcal{M})=\sum_{t\in\mathrm{kept}}\sum_i u_{t,i}(o_{t,i}), and its size bits⁡(M)\operatorname{bits}(\mathcal{M}) follows Eq. (9). Ties are resolved deterministically: a token is discarded when no option has a positive surplus, the shorter prefix wins between options of equal surplus, and a frame is discarded when its surplus equals its cost.

Proposition 2 (Fixed-price optimality). For any price θ≥0\theta\ge0, keeping exactly the frames that satisfy Eq. (6), and storing each of their tokens with the option ot,i∗(θ)o^*_{t,i}(\theta) of Eq. (5), maximizes U(M)−θbits⁡(M)U(\mathcal{M})-\theta\operatorname{bits}(\mathcal{M}) over all memories formed from the observed frames. The resulting memory M∗(θ)\mathcal{M}^*(\theta) has the highest utility among all memories of at most bits⁡(M∗(θ))\operatorname{bits}(\mathcal{M}^*(\theta)) bits.

Proof. The objective is a sum over frames. A discarded frame contributes zero. A kept frame contributes ∑i[ut,i(ot,i)−θc(ot,i)]−θβ\sum_i [u_{t,i}(o_{t,i})-\theta c(o_{t,i})]-\theta\beta, in which each token term is maximized independently by ot,i∗(θ)o^*_{t,i}(\theta), giving ∑iπt,i(θ)−θβ\sum_i\pi_{t,i}(\theta)-\theta\beta. Keeping the frame is therefore optimal exactly when this value is positive, which is Eq. (6). The second claim follows from Everett’s theorem [12]: a memory with no more bits and a higher utility would also have a higher value of U−θU-\theta bits.

Since e(r)e(r) increases with rr and the cost c(r)=r+btokc(r)=r+b_{\mathrm{tok}} grows linearly, the chosen prefix length is a nondecreasing function of the ratio between the token weight αt,iνt\alpha_{t,i}\nu_t and the price. At any price, important tokens in novel frames keep longer codes, and a higher price can only shorten them.

Raising the Price. The writer never lowers the price, and a price increase never requires the original frames:

Proposition 3 (Price increases only truncate). Let θ′≥θ\theta' \ge\theta, and count ∅\varnothing as the shortest option. (i) For every token, ot,i⋆(θ′)o^\star_{t,i}(\theta') is no longer than ot,i⋆(θ)o^\star_{t,i}(\theta). (ii) Every frame discarded at θ\theta is also discarded at θ′\theta'. (iii) Re-deciding M⋆(θ)\mathcal{M}^\star(\theta) at θ′\theta', with each stored token restricted to prefixes of its stored code, yields M⋆(θ′)\mathcal{M}^\star(\theta').

Proof. (i) Let o=ot,i⋆(θ)o=o^\star_{t,i}(\theta) and o′=ot,i⋆(θ′)o'=o^\star_{t,i}(\theta'), and suppose c(o′)>c(o)c(o')>c(o). Since the tie rule would choose the shorter oo at θ′\theta' on equal surplus, o′o' must be strictly better there: u(o′)−u(o)>θ′(c(o′)−c(o))≥θ(c(o′)−c(o))u(o')-u(o)>\theta'(c(o')-c(o))\ge\theta(c(o')-c(o)). Then o′o' is strictly better than oo at θ\theta as well, which contradicts the choice of oo. (ii) Each surplus πt,i(θ)\pi_{t,i}(\theta) is a maximum of functions that do not increase with θ\theta, so it does not increase, while θβ\theta\beta does not decrease. A frame with ∑iπt,i(θ)≤θβ\sum_i\pi_{t,i}(\theta)\le\theta\beta therefore also satisfies ∑iπt,i(θ′)≤θ′β\sum_i\pi_{t,i}(\theta')\le\theta'\beta. (iii) By (i), the option chosen at θ′\theta' is a prefix of the code stored at θ\theta, so restricting tokens to their stored prefixes changes no decision. By (ii), no discarded frame would be kept.

Because the writer only raises the price, the memory at any time equals M⋆(θ)\mathcal{M}^\star(\theta) at the current price, computed over all frames observed so far, even though discarded frames and truncated bits are never revisited. Every decision after a price increase is a truncation or a removal, which is why stored codes never need to be re-encoded.

Price Updates. The price starts at θ=0\theta=0, so early frames keep their full 4,096-bit codes. Each incoming frame is decided at the current price, and stored frames are left unchanged. If adding the frame makes the serialized memory exceed BB, the writer raises the price to the smallest value at which the memory fits within ηB\eta B, with η=0.9\eta=0.9. By Proposition 3, the memory size does not increase with the price, so this value can be found by search. We start the upper end of the bracket at twice the current price, or at 10−1210^{-12} while the price is zero, and double it until the memory fits. We then run 60 bisection steps on log⁡θ\log\theta between the current price and this upper end, and keep the feasible end of the bracket. All stored frames, including the incoming one, are

Algorithm 1 Online memory writing for one frame.
Require: memory M\mathcal{M} at price θ\theta; tokens VtV_t, embedding gtg_t, time τt\tau_t; budget BB; headroom η\eta
1: αt,i←\alpha_{t,i}\leftarrow normalized last full-attention scores
2: νt←max⁡{νmin⁡,1−max⁡h∈Ht−1gtTh}\nu_t\leftarrow\max\{\nu_{\min},1-\max_{h\in H_{t-1}}g_t^\mathsf{T}h\}; add gtg_t to form HtH_t
3: encode each vt,iv_{t,i} into its full 4,096-bit code
4: decide frame tt at price θ\theta; add it to M\mathcal{M} if kept
5: if size⁡(M)>B\operatorname{size}(\mathcal{M})>B then
6: θ←\theta\leftarrow smallest price at which M\mathcal{M} fits ηB\eta B
7: re-decide all stored frames at θ\theta
8: return M,θ\mathcal{M},\theta

Table 1 (PDF p. 15).

then re-decided at the new price, which only truncates or removes codes. The 10% headroom lets the following frames be added at the same price until it is used up.

Utility Terms. The utility of Eq. (7) combines three quantities. Importance. The vision encoder of Qwen2.5-VL uses windowed attention except in four full-attention layers. We recompute the attention probabilities of the last of these layers, sum the attention each patch receives over all query patches, average over heads, and average over the 2×22\times2 patches merged into each visual token. The importance αt,i\alpha_{t,i} is this value divided by its mean over the frame. It is stored as an 8-bit code at log⁡2αt,i\log_2\alpha_{t,i} over [−8,8][-8,8], and both the writer and the reader use the stored value. Novelty. Eq. (8) compares gtg_t with the stored embeddings of the previous eight frames, whether or not they were kept. These eight embeddings form a small buffer that counts toward BB, and νt\nu_t is stored with 8 bits. Quality floor. A prefix can be retained only when e(r)>e0e(r)>e_0. With e0=0.5e_0=0.5 and the Qwen2.5-VL-7B basis, this excludes the 32- and 64-bit prefixes (Table 5), so no stored code is shorter than 128 bits.

Storage Accounting. Each retained token stores a 24-bit header, holding its 12-bit position in the merged grid, its 8-bit importance, and a 4-bit index of its prefix length, followed by its rr-bit code, so c(r)=r+24c(r)=r+24. Each retained frame stores its retrieval embedding at 8 bits per dimension with a 16-bit scale, a 32-bit timestamp, and its 8-bit novelty, so β=512⋅8+16+32+8=4,152\beta=512\cdot8+16+32+8=4{,}152 bits. Prices use this accounting, given by Eq. (9). The budget BB, however, is enforced on the complete serialized memory, which also holds an 84-byte header, the novelty buffer of eight embeddings (4,112 bytes), and a 29-byte record header per kept frame with its index, grid size, token count, and record length. The reported budgets therefore bound all stored bytes. Propositions 2 and 3 refer to the size of Eq. (9), which leaves out these headers and the novelty buffer.

Query-Conditioned Reading

We detail the readout of § 3.4, summarized in Alg. 2. Reading never modifies the memory, so later questions see the same stored evidence.

Frame Ranking. The LongCLIP text encoder embeds the question together with its answer options, written as the question followed by one line per option, with line breaks replaced by spaces and the text truncated to LongCLIP’s 248-token context. Frame embeddings gtg_t are computed from frames padded to a square with CLIP’s mean color, so no part of a frame is cropped. Stored frames are ranked by the cosine similarity gtTgqg_t^\mathsf{T}g_q between their stored embeddings and the query embedding. The question qq in gq=ϕT(q)g_q = \phi_\mathsf{T}(q) (§ 3.4) therefore always includes the answer options.

Token Selection and Budget. Frames are visited in rank order. Within a frame, stored tokens are sorted by decreasing stored importance, with ties broken by grid position, and the selected set StS_t is the shortest prefix of this order that satisfies Eq. (10). Since αt,i\alpha_{t,i} is normalized attention, ρ\rho is the share of the frame’s retained attention that is read. Each frame also costs ftf_t formatting positions for its timestamp text and two vision delimiters. For Qwen2.5-VL-7B, a timestamp such as “[12:34]” takes seven tokens, so ft=9f_t = 9, or 11 after the first hour. With ℓ\ell positions already used, a frame contributes min⁡(∣St∣,L−ℓ−ft)\min(\lvert S_t\rvert, L - \ell- f_t) tokens, and reading stops once a further frame could not contribute a single token. The last frame read may therefore be cut to fit LL. The question, its options, and the fixed prompt text are not counted in LL.

Context Construction. The selected codes are decoded with Eq. (13), and the frames are placed in chronological order. After the reader’s prompt header and the line “These are frames of a video.”, each frame contributes its timestamp text, a vision-start token, its decoded tokens in grid order, and a vision-end token. The question, its options, and the answer instruction follow. Each token keeps the rotary position of its original row and column in the frame’s merged grid [1], and each frame advances the position index by the larger side of its full grid, as a complete frame would. Sparse frames therefore occupy the same positional extent as full frames, and the reader sees where each retained token came from.

Recent Frames. The +4 recent frames variant of Tab. 1 places the four newest stored frames at the top of the ranking, ahead of the frames ranked by similarity. Token selection, budget accounting, and chronological presentation are unchanged, so the recent frames share the same readout budget LL.

Algorithm 2 Query-conditioned reading.

Require: memory Mtq\mathcal{M}_{t_q}; question qq with options; budget LL; share ρ\rho

  1. gq←ϕT(q with options)g_q \leftarrow\phi_\mathsf{T}(q\text{ with options})

  2. rank stored frames by gtTgqg_t^\mathsf{T}g_q

  3. C←∅\mathcal{C} \leftarrow\varnothing; ℓ←0\ell\leftarrow0

  4. for each stored frame tt in rank order do

  5. &nbsp;&nbsp;if L−ℓ−ft<1L - \ell- f_t < 1 then break

  6. &nbsp;&nbsp;St←S_t \leftarrow top ρ\rho tokens of frame tt covering share ρ\rho

  7. &nbsp;&nbsp;St←S_t \leftarrow first min⁡(∣St∣,L−ℓ−ft)\min(\lvert S_t\rvert, L - \ell- f_t) tokens of StS_t

  8. &nbsp;&nbsp;add frame tt with StS_t to C\mathcal{C}; ℓ←ℓ+ft+∣St∣\ell\leftarrow\ell+ f_t + \lvert S_t\rvert

  9. decode the codes in C\mathcal{C} and sort its frames by time

  10. return C\mathcal{C} with timestamps and original grid positions

Experimental Setup

This section details the implementation, the evaluation protocol, and the choice of hyperparameters for the experiments in § 4.

Implementation Details

Reader and Frames. We use the frozen Qwen2.5-VL-7B-Instruct reader [1] in bfloat16 with scaled dot-product attention. Videos are decoded with PyAV and sampled causally at 1 fps, so each sampled frame is the latest frame at or before its time and no future frame is used. Each frame is resized to an area of 448×448448 \times448 pixels with its aspect ratio preserved and encoded on its own as an image, without merging consecutive frames into one temporal patch. A square frame gives 16×16=25616 \times16 = 256 visual tokens and a 16:9 frame gives 12×21=25212 \times21 = 252, each of dimension D=3,584D = 3{,}584, or 7,168 bytes in bfloat16.

Token Codes. The PCA basis is fitted on visual tokens from 50 short and medium Video-MME videos [14], using 40 evenly spaced frames from each. This gives 2,000 frames and 504,000 tokens, and the d=512d = 512 components retain 90.1% of the token variance. Tokens are then coded as described in Sec. A.1.

Retrieval Embeddings. We use the official LongCLIP-B/16 [90] in fp32. Frames are padded to a square with CLIP’s mean color and resized to 224×224224 \times224, and the 512-dimensional unit-norm image embeddings are stored with 8 bits per dimension (Sec. A.2). The text query contains the question and its options (Sec. A.3).

Memory Settings. All settings follow § 4.1: eight prefix lengths R={32,64,128,…,4,096}\mathcal{R} = \{32, 64, 128, \ldots, 4{,}096\}, ϵ0=0.5\epsilon_0 = 0.5, η=0.9\eta= 0.9, btok=24b_{\mathrm{tok}} = 24, β=4,152\beta= 4{,}152, novelty over the previous eight frames with νmin⁡=0.05\nu_{\min} = 0.05, and ρ=0.8\rho= 0.8. The storage budgets B=7.2B = 7.2, 14.3, and 28.7 MB are exactly 7,168,000, 14,336,000, and 28,672,000 bytes, the size of 1,000, 2,000, and 4,000 full-precision tokens, with 1 MB = 10610^6 bytes. Likewise, the 1.8 MB budget of Table 2 and Table 3 and Sec. D and the 0.9 MB validation budget (Sec. B.3) are 1,792,000 and 896,000 bytes (250 and 125 tokens). The readout budget LL counts visual tokens and per-frame formatting positions (Sec. A.3).

Frame Timestamps and Delimiters. For each kept frame, the memory stores its timestamp τt\tau_t in seconds as a 32-bit float, counted in the per-frame cost β\beta (Sec. A.2). At read time, the selected frames are placed in time order, and each timestamp is rounded to the nearest second and written as text, as [mm:ss] or, from the first hour on, as [h:mm:ss]. Each frame then enters the reader as its timestamp text, the vision-start token, its decoded visual tokens in grid order, and the vision-end token:

[00:12]<|vision_start|>···<|vision_end|>[00:13]···

Consecutive frames follow each other without a separator, and a newline separates the last frame from the question. The Qwen2.5-VL tokenizer splits each digit into its own token, so a timestamp takes 7 tokens, or 9 from the first hour on, and each frame uses 9 or 11 formatting positions of the readout budget LL (Sec. A.3).

Hardware and Software. Our runs use NVIDIA L40S GPUs (48 GB) with PyTorch 2.13.0, Transformers 5.14.1, and PyAV 16.1.0.

Evaluation Protocol

Question Timing. Memories are written without access to questions. For the streaming benchmarks, each question is answered from the memory written up to its timestamp, and questions asked at the same time share the same memory. For the other benchmarks, questions are answered after the full video has been written. Reading does not change the memory (Sec. A.3).

Evidence Oracle. The oracle readout in Table 2 uses the annotated evidence interval of each LVBench question, padded by one second on each side. Stored frames inside the interval are read first, in an order that spreads them over the interval. The remaining stored frames follow by their distance to the interval. Tokens are selected with the default rule (ρ=0.8\rho= 0.8) under the same budget L=1,000L = 1{,}000, and the frames are given to the reader in time order. Two of the 1,549 questions have no annotated interval and use LongCLIP ranking instead.

Hyperparameter Selection

We select the quality floor e0e_0 and readout share ρ\rho using a validation set of 600 questions from 200 short and medium Video-MME videos, with no video overlap with our evaluation sets. We select e0=0.5e_0 = 0.5 as it achieves the highest mean accuracy across memory budgets of 0.9 and 1.8 MB among {0.3,0.4,0.5,0.6,0.7}\{0.3, 0.4, 0.5, 0.6, 0.7\}, with all other values within one point. We select ρ=0.8\rho= 0.8 as it performs best among {0.7,0.8,0.9}\{0.7, 0.8, 0.9\}.

Baselines and Benchmarks

Benchmarks

Table 6 summarizes the evaluation sets. We use the long split of Video-MME [14] without subtitles, all LVBench [68] tasks, the long split of the LongVideoBench [72] validation set (videos of 15 to 60 minutes), the backward-tracing and real-time tasks of OVO-Bench [35], and the real-time visual understanding tasks of StreamingBench [38]. For TimeScope [99], we take the first 15 questions of each task (temporal, QA, and OCR) at four of its ten video lengths (1, 10, 60, and 180 minutes), one question per video.

BenchmarkVideosQuestionsMinutesAsked
Video-MME30090030–60at end
LVBench1031,54930–140at end
LongVideoBench18856415–60at end
TimeScope1801801–180at end
OVO-Bench5121,4680.1–30in stream
StreamingBench5002,5001.5–23in stream

Table 6. Evaluation sets. Number of videos and questions, video length, and whether questions are asked after the full video or at their timestamps within the stream.

Baselines

Shared Protocol. All methods use the same frozen reader, the same 1 fps frames (Sec. B.1), and the same visual tokens, computed once per frame through Qwen’s image path. Every method answers the same question text, including the answer options. For each baseline, we run the authors’ released code, adapted to the shared reader, with the settings of their official scripts; all numbers come from our runs, not from the original papers. Each baseline keeps its own memory, selection rule, prompt, and answer extraction, and decodes greedily. On TimeScope, all methods use the official prompt and scorer.

References. Uniform, our hindsight reference, has access to the full past video at question time. It reads uniformly spaced full-precision frames that fit within BB and LL (up to 3, 7, and 15 frames at the three budgets) and answers exactly as Memryoshka does. The uncapped reference stores all visual tokens and reads them with Memryoshka’s readout.

Visual-Memory Baselines. Each baseline’s full persistent state counts against the storage budget BB.

  • SimpleStream [54] keeps the newest whole frames that fit BB and reads them in time order.

  • CausalMem [56] keeps a question-independent token memory and an online basis, both counted toward BB.

  • KeyRec [9] keeps a cache of recent tokens and a fixed number of key events, sized to fit BB. At question time, it divides its readout between events and recent tokens.

  • SAVEMem [73] keeps short-, mid-, and long-term memories and retrieves from them using the question.

Baselines use their own readout rules, which can read fewer than LL tokens; in Tab. 1, KeyRec’s readout is always shorter than LL. We change these readouts in only two ways: CausalMem’s internal cap on readable tokens is raised so that only LL limits its readout, and a SAVEMem selection longer than LL is cut to fit, keeping its short-term frames and adding retrieved frames by relevance until LL is reached. For Figure 3a, we also remove SAVEMem’s internal storage cap, so that its state is bounded only by the 100 MB budget. At 100 MB, KeyRec’s native readout is 6,412 tokens, longer than LL for L≤4,000L \le4{,}000; it is then cut to LL, keeping whole event segments in KeyRec’s order and filling the rest with the newest recent tokens.

KV-Cache Baselines

We run ReKV [10], StreamingTOM [7], StreamKV [8], MuKV [77], and InfiniPot-V [27] from their official releases on the same reader and frames, keeping their released settings except where Qwen’s larger frames change a token count. ReKV keeps the full KV cache of every frame, and StreamingTOM, StreamKV, and MuKV compress it as frames arrive; none of these four bounds its memory. InfiniPot-V is run at its 1, 2, and 4 GiB budgets (1 GiB = 2302^{30} bytes). Stored memory is every byte a method holds when the questions arrive, including retrieval keys, prompt prefix, and local window for the KV-cache methods, reported as the median over the 103 LVBench videos. Memryoshka uses 7.2, 14.3, and 28.7 MB with L=1,000L = 1{,}000, 2,000, and 4,000.

Adaptive versus Fixed Code Lengths

Memryoshka allocates memory across frames, tokens, and prefix lengths using a shared price per bit (§ 3.3 and A.2). We compare it with fixed-length writers under the same allocation rule across two readers, three benchmarks, and three storage budgets.

Fixed-Length Writers

Fixed-length writers use the same shared-price rule, utility, frame-retention criterion, metadata, storage budget, and readout as Memryoshka, but retain each token at one prefix length rr. Each fixed-length writer values every prefix of at least rr bits at e(r)e(r) and shorter prefixes at zero, so retained tokens always use exactly rr bits. Lengths with e(r)≤e0e(r) \le e_0 cannot be retained. We test 128–4,096 bits for Qwen2.5-VL-7B (excluding 32 and 64 bits; Table 5) and 32–4,096 bits for LLaVA-OneVision-7B [30]. Each reader has its own PCA basis fitted with the same recipe (Sec. B.1). Unless noted, L=1,000L = 1{,}000.

Fixed-Rate PCA Codes. The fixed-rate codes in Table 2 (KK components ×\times bb bits) keep the bb most significant bits of each of the first KK PCA components and no other bits, which gives each kept component a uniform 2b2^b-level quantizer over ±3\pm3 standard deviations. They use the same basis, quantizer, and decoder as the nested code (Eqs. (11)–(13)), and the remaining components decode to zero. They are written by the fixed-length writer with r=Kbr = Kb and valued by Eq. (16) with bk=bb_k = b for the first KK components and bk=0b_k = 0 for the rest. The code with 512 components at 8 bits is the full nested code, so its row equals the fixed 4,096-bit writer.

Linear Prefix Value. The Linear e(r)e(r) variant in Table 3 sets e(r)=r/4,096e(r) = r/4{,}096 and lowers the floor to e0=0.0273e_0 = 0.0273, so that 128 bits remains the shortest length that can be stored, as in the default. The surplus ut,i(r)−θc(r)u_{t,i}(r) - \theta c(r) of a token is then linear in rr, so whenever any length has a positive surplus, the full 4,096-bit code has the largest. Every retained token is therefore stored at full precision. This variant behaves like the fixed 4,096-bit writer, and its accuracies equal that writer’s in all four settings (Table 2 and Table 8). Without prefix values that favor early bits, the writer never shortens a code.

Table 8. Temporal coverage vs. fidelity on Video-MME. Long split without subtitles, L=1,000L = 1{,}000, and LongCLIP retrieval. Frames and Tok. describe stored memory as in Table 2; Acc. is QA accuracy (%). Bold marks the best accuracy per reader and budget.

RepresentationBits/tokenStorage cap: 1.8 MBStorage cap: 7.2 MBStorage cap: 28.7 MB
FramesTok.Acc.FramesTok.Acc.FramesTok.Acc.
LLaVA-OneVision-7B
Fixed r=4,096r = 4{,}0964,09617.4742.271.8640.9100.02044.7
Fixed r=2,048r = 2{,}0482,04825.9840.994.9942.6100.04044.8
Fixed r=1,024r = 1{,}0241,02437.11040.099.91745.1100.07945.4
Fixed r=512r = 51251248.41340.9100.03345.2100.015443.2
Fixed r=256r = 25625659.01841.6100.06345.1100.019644.8
Fixed r=128r = 12812866.12641.0100.011642.6100.019642.0
Fixed r=64r = 646469.93939.7100.017839.7100.019640.2
Fixed r=32r = 323272.15837.9100.019636.1100.019636.1
MEMRYOSHKA (adaptive)169–40356.22843.2100.09045.0100.019645.2
Qwen2.5-VL-7B
Fixed r=4,096r = 4{,}0964,0969.61349.330.51750.085.22448.9
Fixed r=2,048r = 2{,}0482,04811.92050.341.32450.197.24148.7
Fixed r=1,024r = 1{,}0241,02415.03150.356.23350.199.88047.3
Fixed r=512r = 51251219.14550.073.74749.0100.015647.1
Fixed r=256r = 25625624.66447.890.27148.7100.024546.6
Fixed r=128r = 12812831.78543.998.611842.8100.025242.4
MEMRYOSHKA (adaptive)560–67517.34750.265.24950.1100.012048.3

Table 8.

Results across Readers and Benchmarks

Table 2 and Table 7 compare the two readers on LVBench; Table 8 and Table 9 extend the comparison to Video-MME and StreamingBench.

Table 7. Temporal coverage vs. fidelity with LLaVA-OneVision-7B. LVBench with L=1,000L = 1{,}000, following Table 2. Fixed rows retain rr-bit nested codes. Frames is the percentage of frames kept; Tok. is the average tokens per kept frame. Oracle ranks retained frames by annotated evidence timestamps, and LongCLIP uses query similarity; both report QA accuracy (%). For Memryoshka, bits/token gives the range of mean code lengths across budgets. Bold marks the best accuracy per column.

RepresentationBits/tokenStorage cap: 1.8 MBStorage cap: 7.2 MBStorage cap: 28.7 MB
RetainedRetrievalRetainedRetrievalRetainedRetrieval
FramesTok.OracleLongCLIPFramesTok.OracleLongCLIPFramesTok.OracleLongCLIP
Nested codes (fixed and adaptive prefix lengths)
Fixed r=4,096r = 4{,}0964,09611.0630.631.241.9733.833.999.31241.835.2
Fixed r=2,048r = 2{,}0482,04816.1832.832.361.9835.832.9100.02448.841.1
Fixed r=1,024r = 1{,}0241,02422.51034.532.478.91239.535.1100.04753.742.2
Fixed r=512r = 51251229.51336.133.190.02043.640.1100.09157.642.8
Fixed r=256r = 25625636.11839.034.395.43546.440.1100.014656.643.3
Fixed r=128r = 12812840.02636.734.498.16146.838.1100.019052.940.3
Fixed r=64r = 646441.64235.332.999.19840.535.2100.019642.635.3
Fixed r=32r = 323242.26430.230.199.313031.430.0100.019632.329.6
MEMRYOSHKA (adaptive)171–26633.62838.935.394.65049.239.9100.016958.043.9

Table 7.

Table 9. Temporal coverage vs. fidelity on StreamingBench. Real-time visual understanding, L=1,000L = 1{,}000. Frames and Tok. describe stored memory as in Table 2. LongCLIP reports QA accuracy (%); +4 recent adds the four newest stored frames to the readout (Tab. 1). Bold marks the best per reader, budget, and readout.

RepresentationBits/tokenStorage cap: 1.8 MB — FramesTok.LongCLIP+4 recentStorage cap: 7.2 MB — FramesTok.LongCLIP+4 recentStorage cap: 28.7 MB — FramesTok.LongCLIP+4 recent
LLaVA-OneVision-7B
Fixed r=4,096r = 4{,}0964,09686.5762.262.8100.02566.368.5100.010167.773.2
Fixed r=2,048r = 2{,}0482,04898.21164.665.9100.05067.470.7100.017567.973.5
Fixed r=1,024r = 1{,}0241,02499.92265.667.9100.09768.371.7100.019667.472.7
Fixed r=512r = 512512100.04266.169.4100.016866.772.9100.019667.472.8
Fixed r=256r = 256256100.07965.768.7100.019666.970.7100.019666.270.7
Fixed r=128r = 128128100.013663.266.5100.019663.767.0100.019663.767.0
Fixed r=64r = 6464100.018457.558.6100.019657.558.6100.019657.558.6
Fixed r=32r = 3232100.019551.851.8100.019651.851.8100.019651.851.8
MEMRYOSHKA (adaptive)284–2,775100.011366.971.0100.019668.273.3100.019667.773.9
Qwen2.5-VL-7B
Fixed r=4,096r = 4{,}0964,09654.61171.773.097.62671.076.4100.010270.379.9
Fixed r=2,048r = 2{,}0482,04867.91771.574.999.74971.278.4100.019070.280.1
Fixed r=1,024r = 1{,}0241,02481.12771.075.1100.09870.379.1100.024969.579.2
Fixed r=512r = 51251290.94771.375.9100.018070.678.7100.025269.678.8
Fixed r=256r = 25625697.28369.075.3100.024668.176.7100.025268.176.7
Fixed r=128r = 12812899.614263.268.6100.025262.769.3100.025262.769.3
MEMRYOSHKA (adaptive)709–2,33086.84671.776.9100.014270.680.1100.025069.980.2

Table 9.

Long videos. On LVBench, Memryoshka matches or exceeds the best fixed length in nine of twelve settings across both readers, trailing by at most 0.2 points otherwise. On Video-MME, it stays within 0.6 points of the best fixed length and leads at the smallest budget for LLaVA-OneVision. The best fixed length varies across readers, tasks, and budgets.

Streaming. On StreamingBench, the best fixed length also varies by setting. With four recent frames included in the readout, Memryoshka achieves the highest accuracy at every budget for both readers.

Robustness across Settings

Table 10 summarizes 30 settings: two readers, three storage caps, and five evaluation conditions per reader. The reference is the best of six fixed lengths (128–4,096 bits), selected separately for each setting in hindsight. Memryoshka has the highest mean accuracy for both readers and stays within 0.6 points of this reference in all 30 settings. Its overall mean of 57.3% exceeds the strongest single fixed length (512 bits, 56.2%) by 1.1 points.

Table 10. Robustness across settings. Mean accuracy (%) over 15 settings per reader: Video-MME; LVBench with LongCLIP or oracle retrieval; and StreamingBench with or without four recent frames, each at three storage caps. The reference is the best fixed length in each setting. Gap and Worst are the mean and maximum nonnegative shortfalls from that reference; Within 1 counts settings within one point.

MemoryLLaVA-OV — MeanWorstQwen2.5-VL — MeanWorstAll 30 settings — MeanGapWorstWithin 1
Fixed r=4,096r = 4{,}09649.015.856.99.452.94.015.811/30
Fixed r=2,048r = 2{,}04850.811.058.26.654.52.511.014/30
Fixed r=1,024r = 1{,}02452.17.358.92.755.51.57.317/30
Fixed r=512r = 51253.23.259.21.856.20.83.220/30
Fixed r=256r = 25653.32.857.44.855.41.64.812/30
Fixed r=128r = 12851.16.551.613.253.15.613.22/30
MEMRYOSHKA (adaptive)54.60.259.90.657.30.10.630/30

Table 10.

Storage and Readout Budgets

Table 11 varies LL from 500 to 4,000 positions on LVBench across both readers, three storage caps, and two retrieval methods. Memryoshka matches or exceeds the best fixed length in 33 of 48 settings and trails by at most 0.9 points elsewhere. Larger readouts are most helpful with more stored evidence: at 28.7 MB, Qwen2.5-VL rises from 44.4% to 49.7% with LongCLIP and from 58.5% to 61.9% with oracle retrieval. Gains at 1.8 MB are smaller and less consistent. With LL fixed at 1,000, more storage does not always help. On Video-MME, Qwen2.5-VL accuracy is lower at 28.7 MB than at 7.2 MB for Memryoshka and for every fixed length (Table 8). On LVBench, Memryoshka reaches 44.9% with 100 MB (Figure 3a), against 47.1% with 28.7 MB; with 100 MB, it rises to 50.5% as LL grows to 8,000. For LLaVA-OneVision, sparse-frame positions can exceed the reader’s 32,768-position context at large LL, requiring the lowest-ranked frames to be omitted.

MemoryStorage cap: 1.8 MB, 500Storage cap: 1.8 MB, 1,000Storage cap: 1.8 MB, 2,000Storage cap: 1.8 MB, 4,000Storage cap: 7.2 MB, 500Storage cap: 7.2 MB, 1,000Storage cap: 7.2 MB, 2,000Storage cap: 7.2 MB, 4,000Storage cap: 28.7 MB, 500Storage cap: 28.7 MB, 1,000Storage cap: 28.7 MB, 2,000Storage cap: 28.7 MB, 4,000
Qwen2.5-VL-7B, LongCLIP retrieval
Fixed r=4,096r = 4{,}09635.236.837.139.139.641.540.943.442.844.244.646.0
Fixed r=2,048r = 2{,}04836.738.540.140.941.841.844.544.243.446.346.548.0
Fixed r=1,024r = 1{,}02440.940.342.043.543.944.045.146.244.047.047.048.6
Fixed r=512r = 51241.743.043.444.843.744.145.546.842.845.347.548.9
Fixed r=256r = 25639.540.641.042.741.042.743.443.241.942.244.946.7
Fixed r=128r = 12837.437.737.337.936.938.739.339.037.137.038.440.6
MEMRYOSHKA41.143.244.544.344.245.745.446.944.447.147.349.7
Qwen2.5-VL-7B, oracle retrieval
Fixed r=4,096r = 4{,}09637.939.639.138.846.446.746.344.052.453.954.454.6
Fixed r=2,048r = 2{,}04841.042.441.840.949.350.650.549.656.857.558.458.1
Fixed r=1,024r = 1{,}02445.246.645.243.852.753.853.653.057.660.160.759.5
Fixed r=512r = 51248.749.048.547.554.355.856.855.057.159.961.361.4
Fixed r=256r = 25647.747.946.445.752.454.654.052.253.356.658.458.1
Fixed r=128r = 12840.743.242.540.345.445.846.645.745.046.947.348.0
MEMRYOSHKA48.449.447.846.953.955.856.455.158.559.961.361.9
LLaVA-OneVision-7B, LongCLIP retrieval
Fixed r=4,096r = 4{,}09631.331.231.531.532.033.933.332.935.935.236.535.7
Fixed r=2,048r = 2{,}04833.632.331.731.932.932.933.333.039.341.143.841.8
Fixed r=1,024r = 1{,}02433.332.433.432.734.935.135.335.641.342.244.443.7
Fixed r=512r = 51233.533.134.033.437.740.139.339.541.642.843.744.9
Fixed r=256r = 25634.234.333.734.539.140.140.941.142.343.344.445.7
Fixed r=128r = 12834.334.433.935.237.738.139.539.437.940.340.242.7
MEMRYOSHKA34.835.335.535.338.639.942.441.242.543.944.546.4
LLaVA-OneVision-7B, oracle retrieval
Fixed r=4,096r = 4{,}09631.730.632.532.633.233.833.933.740.341.841.241.3
Fixed r=2,048r = 2{,}04834.032.832.533.334.535.835.735.547.548.848.646.9
Fixed r=1,024r = 1{,}02433.934.533.834.139.239.539.838.551.253.754.254.5
Fixed r=512r = 51235.136.135.335.743.443.645.444.255.757.657.855.6
Fixed r=256r = 25638.539.037.636.546.246.449.046.353.456.656.857.0
Fixed r=128r = 12836.636.737.637.745.246.847.845.049.952.951.450.6
MEMRYOSHKA38.838.939.437.947.649.248.648.854.858.057.858.1

Table 11. Table 11. Storage and readout budgets on LVBench. LVBench QA accuracy (%) across storage caps and readout budgets LL (positions). Results at L=1,000L = 1{,}000 repeat the corresponding code-length tables. Bold marks the best accuracy in each column.

Compute and Latency

We measure compute and latency using Qwen2.5-VL-7B in bfloat16 on a single NVIDIA L40S GPU. Our evaluation covers six long Video-MME videos, totaling 13,749 frames at 1 fps and 18 questions. We profile Memryoshka directly and replay the per-frame and per-question operations of the KV-cache baselines from § 4.4, using their released settings on the same model and GPU. Their token-selection overhead is excluded, so the reported latencies are lower bounds. FLOPs are estimated analytically. Table 12 summarizes five findings:

MethodFrameFrameQuestionQuestionStored
msTFLOPsmsTFLOPs
Memryoshka (L=1,000L = 1{,}000)53.51.3712714.57.2 MB
ReKV58.26.131522.252.0 GB
InfiniPot-V (1 GiB)60.06.24641.61.1 GB
InfiniPot-V (4 GiB)115.710.501763.34.3 GB
StreamingTOM22.82.09942.43.1 GB
StreamKV74.98.092082.843.0 GB
MuKV196.311.261132.350.9 GB

Table 12. Compute and latency. Qwen2.5-VL-7B on one L40S GPU at 1 fps, with 252 visual tokens per frame. Frame includes the vision encoder (1.33 TFLOPs, 17.1 ms) shared by all methods. Question measures time to the first answer token. Stored is the memory held after one hour of video, computed for 3,600 frames (the profiled videos average 38 minutes).

  • Streaming compute. Memryoshka requires no LLM computation during streaming, using 1.37 TFLOPs per frame, including 1.33 TFLOPs for the vision encoder shared by all methods. KV-cache methods require 2.09–11.3 TFLOPs per frame. Memryoshka’s per-frame latency (53.5 ms) is lower than that of every KV-cache method except StreamingTOM (22.8 ms), which passes only 50 tokens per frame through the LLM; ReKV (58.2 ms) and InfiniPot-V at 1 GiB (60.0 ms) are close. The KV-cache methods thus take 22.8–196.3 ms per frame, so the “hundreds of milliseconds per frame” in § 4.4 overstates their latency; Memryoshka’s main streaming advantage is in FLOPs and storage.

  • Latency breakdown. For Memryoshka, each frame takes 17.1 ms for vision encoding, 12.2 ms for LongCLIP, 3.0 ms for token importance and coding, and 21.2 ms for memory writing (33.0 ms at 28.7 MB). The CPU-based writer spends most of its time updating stored codes when

memory fills, approximately once every 70–110 frames.

  • Question-time cost. Memryoshka prefills at most LL retrieved positions, requiring 14.5 TFLOPs and 127 ms at L=1,000L = 1{,}000. KV-cache methods reuse previously computed states, requiring 1.6–3.3 TFLOPs and 64–208 ms. Thus, Memryoshka shifts computation from streaming to question time.

  • Total compute. Over one hour of video with L=1,000L = 1{,}000, Memryoshka uses fewer total FLOPs than StreamingTOM, the KV-cache method with the least compute, as long as fewer than about 210 questions are asked, and fewer than every other KV-cache method below about 1,350 questions.

  • Storage. Memryoshka’s memory stays within its 7.2 MB budget regardless of video length, compared with 1.1–52.0 GB for KV-cache methods after one hour. § 4.4 and Figure 3b instead report the median stored memory per LVBench video (1.1–54.6 GB).

Overall, by skipping the LLM until a question arrives, Memryoshka uses 1.5 to 8.2 times fewer FLOPs per frame than the KV-cache methods and about 150 to 7,200 times less storage after one hour, in exchange for a larger prefill at each question. This suits long-running streams with infrequent questions.

Additional Backbones, Benchmarks, and Frame Rates

Additional backbones. Table 13 compares Memryoshka against CausalMem, KeyRec, and SAVEMem on three further vision-language backbones: LLaVA-OneVision-7B [30], Qwen3.5-4B [46], and Gemma 4 E2B [16]. On LVBench, the adaptive variant outperforms the strongest baseline by 6.6, 9.5, and 4.2 points, respectively. On Video-MME, Memryoshka achieves the best accuracy on LLaVA-OneVision-7B (+2.0) and Qwen3.5-4B (+2.0 with recent frames), and is within 0.9 points of SAVEMem on Gemma 4 E2B. On StreamingBench, whose questions concern the moment at which they are asked, the relevance-ordered readout trails the strongest baseline by 5.0–8.3 points. Placing the four newest stored frames first in the readout, within the same budget, narrows this gap to 3.0–3.7 points while changing LVBench accuracy by at most 0.5 points. These results suggest that adaptive-fidelity memory is most beneficial for long-video understanding, while real-time questions also require recent evidence.

MethodLVBenchVideo-MMEStreamingBench
LLaVA-OneVision-7B
CausalMem36.044.176.7
KeyRec27.134.675.1
SAVEMem30.939.876.4
Memryoshka (adaptive)42.646.168.4
Memryoshka + 4 recent43.145.373.0
Qwen3.5-4B
CausalMem38.748.883.0
KeyRec30.041.782.4
SAVEMem33.845.783.2
Memryoshka (adaptive)48.250.374.9
Memryoshka + 4 recent48.450.880.2
Gemma 4 E2B
CausalMem28.637.655.1
KeyRec26.932.859.6
SAVEMem30.340.154.2
Memryoshka (adaptive)34.539.254.6
Memryoshka + 4 recent34.038.056.0

Table 13. Visual-memory baselines on three more backbones. QA accuracy (%) with a storage budget of 2,000 tokens at each backbone’s BF16 token size (14.3 MB for LLaVA-OneVision-7B, 10.2 MB for Qwen3.5-4B, 6.1 MB for Gemma 4 E2B) and L=2,000L = 2{,}000. Video-MME: all 300 long videos. +4 recent: the four newest stored frames are placed first in the readout, within the same read budget. Bold marks the best accuracy per backbone and benchmark.

More benchmarks. Table 14 adds MLVU [98] and Video-MMMU [21] with the Qwen2.5-VL-7B reader. On Video-MMMU, Memryoshka leads at every budget, by 0.9, 3.2, and 2.5 points over the strongest baseline. On MLVU, it leads at 1,000 and 2,000 tokens (+2.9 and +1.0 over CausalMem), while CausalMem is ahead at 4,000 tokens (67.5 vs. 66.3).

MethodMLVU 1,000MLVU 2,000MLVU 4,000Video-MMMU 1,000Video-MMMU 2,000Video-MMMU 4,000
CausalMem60.364.867.538.139.439.4
KeyRec51.652.453.039.642.043.8
SAVEMem48.550.852.741.743.043.9
Memryoshka (adaptive)63.265.866.342.646.246.4

Table 14. Results on MLVU and Video-MMMU. QA accuracy (%) with Qwen2.5-VL-7B at 1 fps, with storage budgets of 1,000, 2,000, and 4,000 tokens (7.2, 14.3, and 28.7 MB) and LL equal to the budget in tokens. MLVU [98] (dev): M-Avg, the mean of the seven task accuracies. Video-MMMU [21]: overall accuracy on all 900 questions (Perception, Comprehension, and Adaptation tracks). Bold marks the best accuracy per column.

Frame sampling rate. Table 15 varies the frame sampling rate at a fixed memory budget. Memryoshka leads all baselines on LVBench at every rate, by 13.4, 13.3, and 11.9 points over CausalMem at 0.5, 1, and 2 fps. Halving the rate leaves its LVBench accuracy nearly unchanged (+0.3), while doubling it costs 1.8 points, possibly because the same budget must cover more frames. On StreamingBench, Memryoshka + 4 recent is comparable to the strongest baseline at every rate (+0.4, +0.5, and −0.5 points).

MethodLVBench 0.5LVBench 1LVBench 2StreamingBench 0.5StreamingBench 1StreamingBench 2
CausalMem35.335.134.778.880.379.0
KeyRec29.527.928.078.378.777.7
SAVEMem32.328.928.378.781.180.9
MEMRYOSHKA (adaptive)48.748.446.673.273.072.5
MEMRYOSHKA + 4 recent48.447.246.279.281.680.4

Table 15. Frame sampling rate. QA accuracy (%) with Qwen2.5-VL-7B at a fixed storage budget of 2,000 tokens (14.3 MB) and L=2,000L = 2{,}000 when frames are sampled at 0.5, 1, or 2 fps; 1 fps is the setting of the main table. Bold marks the best accuracy per column.

References

  1. [1]Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, et al. Qwen2.5-VL Technical Report. arXiv preprint arXiv:2502.13923, 2025. 2, 5, 16arxiv.org/abs/2502.13923
  2. [2]Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. Token Merging: Your ViT But Faster. In ICLR, 2023. 2arxiv.org/abs/2210.09461
  3. [3]Mu Cai, Jianwei Yang, Jianfeng Gao, and Yong Jae Lee. Matryoshka Multimodal Models. arXiv preprint arXiv:2405.17430, 2024. 3arxiv.org/abs/2405.17430
  4. [4]Joya Chen, Zhaoyang Lv, Shiwei Wu, Kevin Qinghong Lin, Chenan Song, Difei Gao, Jia-Wei Liu, Ziteng Gao, Dongxing Mao, and Mike Zheng Shou. VideoLLM-online: Online Video Language Model for Streaming Video. In CVPR, 2024. 1, 2arxiv.org/abs/2406.11816
  5. [5]Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin, Chang Zhou, and Baobao Chang. An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Models. In ECCV, 2024. 2arxiv.org/abs/2403.06764
  6. [6]Tianxiang Chen, Yuran Wang, Mingleyang Li, Yan Qin, Hao Shi, Zixuan Li, et al. RMBench: Memory-Dependent Robotic Manipulation Benchmark with Insights into Policy Design. arXiv preprint arXiv:2603.01229, 2026. 7, 8arxiv.org/abs/2603.01229
  7. [7]Xueyi Chen, Keda Tao, Kele Shao, and Huan Wang. StreamingTOM: Streaming Token Compression for Efficient Video Understanding. In CVPR, 2026. 2, 5, 6, 19arxiv.org/abs/2510.18269
  8. [8]Yilong Chen, Xiang Bai, Zhibin Wang, Chengyu Bai, Yuhan Dai, Ming Lu, and Shanghang Zhang. StreamKV: Streaming Video Question-Answering with Segment-based KV Cache Retrieval and Compression. arXiv preprint arXiv:2511.07278, 2025. 5, 6, 19arxiv.org/abs/2511.07278
  9. [9]Zihan Chen, Xuejian Rong, Xiaojian Wang, Boqing Gong, Adi Zicher, Yael Pritch, and Nikhil Karnad. KeyRec: Bounded Visual Memory for Streaming and Long-Video Understanding. arXiv preprint arXiv:2609.32182, 2026. 2, 5, 6, 18arxiv.org/abs/2609.32182
  10. [10]Shangzhe Di, Zhelun Yu, Guanghao Zhang, Haoyuan Li, Tao Zhong, Hao Cheng, Bolin Li, Wangg u i He, Fangxun Shu, and Hao Jiang. Streaming Video Question-Answering with In-context Video KV-Cache Retrieval. In ICLR, 2025. 2, 3, 5, 6, 19arxiv.org/abs/2503.00540
  11. [11]Gradwell Dzikan y anga, Weihao Yang, Hao Huang, Donglei Wu, Shihao Wang, Wen Xia, et al. TTKV: Temporal-Tiered KV Cache for Long-Context LLM Inference. arXiv preprint arXiv:2604.19769, 2026. 3arxiv.org/abs/2604.19769
  12. [12]Hugh Everett. Generalized Lagrange multiplier method for solving problems of optimum allocation of resources. Operations Research, 11(3):399–417, 1963. 3, 4, 15DOI
  13. [13]Bennett Fox. Discrete optimization via marginal analysis. Management Science, 13(3):210–216, 1966. 4, 14DOI
  14. [14]Chaoyon Fu, Yuhan Dai, Yongdong Luo, Lei Li, Shu hai Ren, Renrui Zhang, et al. Video-MME: The First-Ever Comprehensive Evaluation Benchmark of Multi-modal LLMs in Video Analysis. arXiv preprint arXiv:2405.21075, 2024. 2, 5, 16, 17arxiv.org/abs/2405.21075
  15. [15]Tianyu Fu, Tengxuan Liu, Qinghao Han, Guohao Dai, Shengen Yan, Huazhong Yang, Xuefei Ning, and Yu Wang. FrameFusion: Combining Similarity and Importance for Video Token Reduction on Large Vision Language Models. In ICCV, 2025. 2arxiv.org/abs/2501.01986
  16. [16]Gemma Team. Gemma 4 Technical Report. arXiv preprint arXiv:2607.02770, 2026. 5, 22
  17. [17]Tyler L. Hayes, Kushal Kafle, Robik Shrestha, Manoj Acharya, and Christopher Kanan. REMIND Your Neural Network to Prevent Catastrophic Forgetting. In ECCV, 2020. 3arxiv.org/abs/1910.02509
  18. [18]Bo He, Hengduo Li, Young Kyun Jang, Menglin Jia, Xuefei Cao, Ashish Shah, Abhinav Shrivastava, and Ser-Nam Lim. MA-LMM: Memory-Augmented Large Multimodal Model for Long-Term Video Understanding. In CVPR, 2024. 2, 4arxiv.org/abs/2404.05726
  19. [19]Yefei He, Luoming Zhang, Weijia Wu, Jing Liu, Hong Zhou, and Bohan Zhuang. ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identification. In NeurIPS, 2024. 3arxiv.org/abs/2405.14256
  20. [20]Coleman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W. Mahoney, Yakun Sophia Shao, Kurt Keutzer, et al. KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization. In NeurIPS, 2024. 3
  21. [21]Kairui Hu, Penghao Wu, Fanyi Pu, Wang Xiao, Xiang Yue, Bo Li, Yuanhan Zhang, and Ziwei Liu. Video-MMMU: Evaluating Knowledge Acquisition from Multidisciplinary Professional Videos. In ACL, pages 27798–27828, 2026. 22, 23
  22. [22]Wenbo Hu, Zi-Yi Dou, Liunian Harold Li, Amita Kamath, Nanyun Peng, and Kai-Wei Chang. Matryoshka Query Transformer for Large Vision-Language Models. arXiv preprint arXiv:2405.19315, 2024. 3arxiv.org/abs/2405.19315
  23. [23]Zhenpeng Huang, Xinhao Li, Jiaqi Li, Jing Wang, Xiangyu Zeng, Cheng Liang, et al. Online Video Understanding: OVBench and VideoChat-Online. In CVPR, 2025. 2arxiv.org/abs/2501.00584
  24. [24]Ahmadreza Jeddi, Negin Baghban Zadeh, Elham Dolatabadi, and Babak Taati. Similarity-Aware Token Pruning: Your VLM but Faster. arXiv preprint arXiv:2503.11549, 2025. 2arxiv.org/abs/2503.11549
  25. [25]Ahmadreza Jeddi, Minh Ngoc Le, Amirhossein Kazerouni, Hakki Can Karaimer, Hue Nguyen, Iqbal Mohomed, et al. AVIS: Adaptive Test-Time Scaling for Vision-Language Models. In Advances in Neural Information Processing Systems (NeurIPS), 2026. 2arxiv.org/abs/2606.11576
  26. [26]Ahmadreza Jeddi, Enming Zhang, Jasper Gerigk, Hakki Can Karaimer, Mozhgan Nasr Azadani, Jiayun Luo, et al. SCOPD: Sparse-Context On-Policy Self-Distillation for Efficient Vision-Language Models. arXiv preprint arXiv:2609.34044, 2026. 2arxiv.org/abs/2609.34044
  27. [27]Minsoo Kim, Kyuhyong Shim, Jungwook Choi, and Simyung Chang. InfiniPot-V: Memory-Constrained KV Cache Compression for Streaming Video Understanding. In NeurIPS, 2025. 2, 3, 5, 6, 19arxiv.org/abs/2506.15745
  28. [28]Aditya Kusupati, Gantavya Bhatt, Aniket Rege, Matthew Wallingford, Aditya Sinha, Vivek Ramanujan, et al. Matryoshka Representation Learning. In NeurIPS, 2022. 3arxiv.org/abs/2205.13147
  29. [29]Jae-Han Lee, Seungmin Jeon, Kwang Pyo Choi, Youngo Park, and Chang-Su Kim. DPICT: Deep Progressive Image Compression Using Trit-Planes. In CVPR, 2022. 3arxiv.org/abs/2112.06334
  30. [30]Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, et al. LLaVA-OneVision: Easy visual task transfer. arXiv preprint arXiv:2408.03326, 2024. 5, 20, 22arxiv.org/abs/2408.03326
  31. [31]Kangcong Li, Peng Ye, Lin Zhang, Chao Wang, Huafeng Qin, Jiayuan Fan, et al. FreshMem: Brain-Inspired Frequency-Space Hybrid Memory for Streaming Video Understanding. In NeurIPS, 2026. 2arxiv.org/abs/2602.01683
  32. [32]Runguo Li. Spend Bytes on Breadth: Precision-Count Trade-offs for Decode-Time KV Compression in Long Chain-of-Thought Reasoning. arXiv preprint arXiv:2610.05685, 2026. 3arxiv.org/abs/2610.05685
  33. [33]Yanwei Li, Chengyao Wang, and Jiajia Jia. LLaMA-VID: An Image is Worth 2 Tokens in Large Language Models. arXiv preprint arXiv:2311.17043, 2023. 2arxiv.org/abs/2311.17043
  34. [34]Yuhong Li, Yingbing Huang, Bowen Yang, Bharat Venkitesh, Acyr Locatelli, Hanchen Ye, et al. SnapKV: LLM Knows What You are Looking for Before Generation. In NeurIPS, 2024. 3arxiv.org/abs/2404.14469
  35. [35]Yifei Li, Junbo Niu, Ziyang Miao, Chunjian Ge, Yuanhang Zhou, Qiao He, et al. OVO-Bench: How Far is Your Video-LLMs from Real-World Online Video Understanding? In CVPR, 2025. 2, 5, 17arxiv.org/abs/2501.05510
  36. [36]Zhimin Li, Pan Wang, Jingxian Chen, Yuantao Tang, Qian Lou, and Jingtong Hu. SAGE: Efficient Protected Vision-Language Inference on Smart Glasses. arXiv preprint arXiv:2610.14089, 2026. 3arxiv.org/abs/2610.14089
  37. [37]Bokai Lin, Zihao Zeng, Zipeng Xiao, Siqi Kou, Tianqi Hou, Xiaofeng Gao, et al. MatryoshkaKV: Adaptive KV Compression via Trainable Orthogonal Projection. arXiv preprint arXiv:2410.14731, 2024. 3arxiv.org/abs/2410.14731
  38. [38]Junming Lin, Zheng Fang, Chi Chen, Zihao Wan, Fuwen Luo, Peng Li, Yang Liu, and Maosong Sun. Streaming-Bench: Assessing the Gap for MLLMs to Achieve Streaming Video Understanding. arXiv preprint arXiv:2411.03628, 2024. 2, 5, 17arxiv.org/abs/2411.03628
  39. [39]Shuming Liu, Chen Zhao, Tianqi Xu, and Bernard Ghanem. BOLT: Boost Large Vision-Language Model Without Training for Long-form Video Understanding. In CVPR, 2025. 2arxiv.org/abs/2503.21483
  40. [40]Zirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, et al. KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache. In International Conference on Machine Learning (ICML), 2024. 3DOI
  41. [41]Yadong Lu, Yinhao Zhu, Yang Yang, Amir Said, and Taco S Cohen. Progressive Neural Image Compression with Nested Quantization and Latent Ordering. arXiv preprint arXiv:2102.02913, 2021. 3arxiv.org/abs/2102.02913
  42. [42]Pranav Nair, Puranjay Datta, Jeff Dean, Prateek Jain, and Aditya Kusupati. Matryoshka Quantization. arXiv preprint arXiv:2502.06786, 2025. 3arxiv.org/abs/2502.06786
  43. [43]Luning Pang, Cheng Yuan, Jiawei Shao, Mingtao Huang, and Yuan Shen. Task-Oriented Visual Feature Compression via Residual Vector Quantization for Device-Edge Multimodal Inference. arXiv preprint arXiv:2609.37090, 2026. 3arxiv.org/abs/2609.37090
  44. [44]Rui Qian, Xiaoyi Dong, Pan Zhang, Yuhang Zhang, Shuangrui Ding, Dahua Lin, and Jiaqi Wang. Streaming Long Video Understanding with Large Language Models. arXiv preprint arXiv:2405.16009, 2024. 2arxiv.org/abs/2405.16009
  45. [45]Rui Qian, Shuangrui Ding, Xiaoyi Dong, Pan Zhang, Yuhang Zhang, Yuhang Cao, Dahua Lin, and Jiaqi Wang. Dispider: Enabling Video LLMs with Active Real-Time Interaction via Disentangled Perception, Decision, and Reaction. arXiv preprint arXiv:2501.03218, 2025. 1, 2arxiv.org/abs/2501.03218
  46. [46]Qwen Team. Qwen3.5: Towards Native Multimodal Agents. https://www.alibabacloud.com/blog/qwen3-5-towards-native-multimodal-agents_602894, 2026. 22
  47. [47]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning Transferable Visual Models From Natural Language Supervision. In ICML, 2021. 3arxiv.org/abs/2103.00020
  48. [48]Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, and Timothy P. Lillicrap. Compressive Transformers for Long-Range Sequence Modelling. In ICLR, 2020. 3arxiv.org/abs/1911.05507
  49. [49]Oren Rippel, Michael A. Gelbart, and Ryan P. Adams. Learning Ordered Representations with Nested Dropout. In International Conference on Machine Learning (ICML), 2014. 3arxiv.org/abs/1402.0915
  50. [50]Amir Said and William A. Pearlman. A New, Fast, and Efficient Image Codec Based on Set Partitioning in Hierarchical Trees. IEEE Transactions on Circuits and Systems for Video Technology, 6(3):243–250, 1996. 3
  51. [51]Yuzhang Shang, Mu Cai, Bingxin Xu, Yong Jae Lee, and Yan Yan. LLaVA-PruMerge: Adaptive Token Reduction for Efficient Large Multimodal Models. In ICCV, 2025. 2, 4arxiv.org/abs/2403.15388
  52. [52]Jerome M. Shapiro. Embedded Image Coding Using Zerotrees of Wavelet Coefficients. IEEE Transactions on Signal Processing, 41(12):3445–3462, 1993. 3
  53. [53]Xiaoqian Shen, Yunyong Xiang, Changsheng Zhao, Lemeng Wu, Jun Chen, Chenchen Zhu, et al. LongVU: Spatiotemporal Adaptive Compression for Long Video-Language Understanding. arXiv preprint arXiv:2410.17434, 2024. 2arxiv.org/abs/2410.17434
  54. [54]Yujiao Shen, Shulin Tian, Jingang Yang, and Ziw ei Liu. A Simple Baseline for Streaming Video Understanding. arXiv preprint arXiv:2604.02317, 2026. 2, 5, 6, 18arxiv.org/abs/2604.02317
  55. [55]Yair Shoham and Allen Gersho. Efficient bit allocation for an arbitrary set of quantizers (speech coding). IEEE Transactions on Acoustics, Speech, and Signal Processing, 36(9):1445–1453, 1988. 3, 4, 14DOI
  56. [56]Baiyang Song, Yuli Lin, Qiong Wu, Tao Chen, Jun Peng, Xiao Chen, et al. Towards a Dynamic and Fixed-budget Memory Bank for Efficient Streaming Video Understanding. arXiv preprint arXiv:2606.25658, 2026. 2, 5, 6, 18arxiv.org/abs/2606.25658
  57. [57]Enxin Song, Wenhao Chai, Guanghang Ma, Yucheng Zhang, Haoyang Zhou, Feiyang Wu, et al. MovieChat: From Dense Token to Sparse Memory for Long Video Understanding. In CVPR, 2024. 2, 4arxiv.org/abs/2307.16449
  58. [58]Hui Sun, Shiyin Liu, Huanyu Wang, Qing-Guo Chen, Zhao Xu, Weihua Luo, Kaifu Zhang, and Ming Li. MDP3: A Training-free Approach for List-wise Frame Selection in Video-LLMs. arXiv preprint arXiv:2501.02885, 2025. 2arxiv.org/abs/2501.02885
  59. [59]Jiaming Tang, Yilong Zhao, Kan Zhu, Guanxuan Xiao, Baris Kasikci, and Song Han. Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference. In International Conference on Machine Learning (ICML), 2024. 3arxiv.org/abs/2406.10774
  60. [60]Xi Tang, Jihao Qiu, Lingxi Xie, Yunjie Tian, Jianbin Jiao, and Qixiang Ye. Adaptive Keyframe Sampling for Long Video Understanding. In CVPR, 2025. 2arxiv.org/abs/2502.21271
  61. [61]Keda Tao, Can Qin, Haoxuan You, Yang Sui, and Huan Wang. DyCoke: Dynamic Compression of Tokens for Fast Video Large Language Models. arXiv preprint arXiv:2411.15024, 2024. 2arxiv.org/abs/2411.15024
  62. [62]Keda Tao, Can Qin, Haoxuan You, Yang Sui, Can Qin, and Huan Wang. Plug-and-Play 1.x-Bit KV Cache Quantization for Video Large Language Models. arXiv preprint arXiv:2503.16257, 2025. 3arxiv.org/abs/2503.16257
  63. [63]Keda Tao, Yuhua Zheng, Jia Xu, Wenjie Du, Kele Shao, Hesong Wang, Xueyi Chen, Xin Jin, Junhan Zhu, Bohan Yu, et al. Lvomnibench: Pioneering long audio-video understanding evaluation for omnimodal llms. arXiv preprint arXiv:2603.19217, 2026. 8arxiv.org/abs/2603.19217
  64. [64]David Taubman. High performance scalable image compression with ebct. IEEE Transactions on image processing, 9(7):1158–1170, 2000. 3
  65. [65]George Toderici, Sean M. O’Malley, Sung Jin Hwang, Damien Vincent, David Minnen, Shumeet Baluja, et al. Variable Rate Image Compression with Recurrent Neural Networks. In ICLR, 2016. 3arxiv.org/abs/1511.06085
  66. [66]Haibo Wang, Bo Feng, Zhengfeng Lai, Mingze Xu, Shiyu Li, Weifeng Ge, et al. StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant. In NeurIPS, 2025. 2arxiv.org/abs/2505.05467
  67. [67]Liyuan Wang, Xingxing Zhang, Kuo Yang, Longhui Yu, Chongxuan Li, Lanqing Hong, et al. Memory Replay with Data Compression for Continual Learning. In ICLR, 2022. 3arxiv.org/abs/2202.06592
  68. [68]Weihan Wang, Zehai He, Wenyi Hong, Yean Cheng, Xiao han Zhang, Ji Qi, Xiaotao Gu, Shiyu Huang, Bin Xu, Yuxiao Dong, Ming Ding, and Jie Tang. LVBench: An Extreme Long Video Understanding Benchmark. arXiv preprint arXiv:2406.08035, 2024. 2, 5, 17arxiv.org/abs/2406.08035
  69. [69]Xiaohan Wang, Yuhui Zhang, Orn Zohar, and Serena Yeung-Levy. VideoAgent: Long-form Video Understanding with Large Language Model as Agent. arXiv preprint arXiv:2403.10517, 2024. 2arxiv.org/abs/2403.10517
  70. [70]Yiyu Wang, Xuyang Liu, Xiyan Gui, Xinying Lin, Boxue Yang, Chenfei Liao, et al. Accelerating Streaming Video Large Language Models via Hierarchical Token Compression. arXiv preprint arXiv:2512.00891, 2025. 2arxiv.org/abs/2512.00891
  71. [71]Yuxuan Wang, Yiqi Song, Cihang Xie, Yang Liu, and Zilong Zheng. VideoLLaMB: Long Streaming Video Understanding with Recurrent Memory Bridges. In ICCV, 2025. 2arxiv.org/abs/2409.01071
  72. [72]Haoning Wu, Dongxu Li, Bei Chen, and Junnan Li. LongVideoBench: A Benchmark for Long-context Interleaved Video-Language Understanding. arXiv preprint arXiv:2407.15754, 2024. 2, 5, 17arxiv.org/abs/2407.15754
  73. [73]Hang Wu, Sherin Mary Mathews, Yujun Cai, Ming-Hsuan Yang, and Yiwei Wang. Semantic-Aware Adaptive Visual Memory for Streaming Video Understanding. arXiv preprint arXiv:2605.07897, 2026. 2, 5, 6, 18arxiv.org/abs/2605.07897
  74. [74]Shiwei Wu, Joya Chen, Kevin Qinghong Lin, Qimeng Wang, Yan Gao, Qianli Xu, et al. VideoLLM-MoD: Efficient Video-Language Streaming with Mixture-of-Depths Vision Computation. In NeurIPS, 2024. 2arxiv.org/abs/2408.16730
  75. [75]Chaojun Xiao, Pengle Zhang, Xu Han, Guangxuan Xiao, Yankai Lin, Zhengyan Zhang, et al. InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory. arXiv preprint arXiv:2402.04617, 2024. 3arxiv.org/abs/2402.04617
  76. [76]Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient Streaming Language Models with Attention Sinks. In ICLR, 2024. 3arxiv.org/abs/2309.17453
  77. [77]Junbin Xiao, Jiajun Chen, Tianxiang Sun, Xun Yang, and Angela Yao. MuKV: Multi-Grained KV Cache Compression for Long Streaming Video Question-Answering. In CVPR, 2026. 5, 6, 19arxiv.org/abs/2605.22269
  78. [78]Yiweng Xie, Bo He, Junke Wang, Xiangyu Zheng, Ziyi Ye, and Zuxuan Wu. FluxMem: Adaptive Hierarchical Memory for Streaming Video Understanding. In CVPR, 2026. 2arxiv.org/abs/2603.02096
  79. [79]Jin Xu, Zhifang Guo, Jinzheng He, Hangrui Hu, Ting He, Shuai Bai, Keqin Chen, Jialin Wang, Yang Fan, et al. Owen2.5-Omni Technical Report. arXiv preprint arXiv:2503.20215, 2025. 8arxiv.org/abs/2503.20215
  80. [80]Ruyi Xu, Guangxuan Xiao, Yukang Chen, Liuning He, Yao Lu, and Song Han. StreamingVLM: Real-Time Understanding for Infinite Video Streams. In ICLR, 2026. 2arxiv.org/abs/2510.09608
  81. [81]Jiaqi Yan, Ruilong Ren, Jingren Liu, Shuning Xu, Ling Wang, Yiheng Wang, et al. TeleEgo: Benchmarking Egocentric AI Assistants in the Wild. arXiv preprint arXiv:2510.23981, 2025. 1, 2arxiv.org/abs/2510.23981
  82. [82]June Yong Yang, Byeongwook Kim, Jeongin Bae, Beomseok Kwon, Gunho Park, Eunho Yang, et al. No Token Left Behind: Reliable KV Cache Compression via Importance-Aware Mixed Precision Quantization. arXiv preprint arXiv:2402.18096, 2024. 3arxiv.org/abs/2402.18096
  83. [83]Senqiao Yang, Yukang Chen, Zhuotao Tian, Chengyao Wang, Jingyao Li, Bei Yu, and Jiaya Jia. VisionZip: Longer is Better but Not Necessary in Vision Language Models. arXiv preprint arXiv:2412.04467, 2024. 4arxiv.org/abs/2412.04467
  84. [84]Yanlai Yang, Zhuokai Zhao, Satya Narayan Shukla, Aashu Singh, Shlok Kumar Mishra, Lizhu Zhang, and Mengye Ren. StreamMem: Query-Agnostic KV Cache Memory for Streaming Video Understanding. arXiv preprint arXiv:2508.15717, 2025. 2, 3arxiv.org/abs/2508.15717
  85. [85]Linli Yao, Yicheng Li, Yuan­cheng Wei, Lei Li, Shuhuai Ren, Yuanxin Liu, et al. TimeChat-Online: 80% Visual Tokens are Naturally Redundant in Streaming Videos. arXiv preprint arXiv:2504.17343, 2025. 2arxiv.org/abs/2504.17343
  86. [86]Cheng Yin, Wang Xu, Junpeng Yang, Sik­yuan Tam, Hanyu Liu, Yuan Yao, et al. SimpleMemVLA: A Simple but Effective Native-Video Memory for Vision-Language-Action Models. arXiv preprint arXiv:2609.05533, 2026. 7, 8arxiv.org/abs/2609.05533
  87. [87]Sicheng Yu, Chengkai Jin, Huanyu Wang, Zhenghao Chen, Sheng Jin, Zhongrong Zuo, Xiaolei Xu, Zhenbang Sun, Bingni Zhang, Jiawei Wu, Hao Zhang, and Qianru Sun. Frame-Voyager: Learning to Query Frames for Video Large Language Models. In ICLR, 2025. 2arxiv.org/abs/2410.03226
  88. [88]Cheng Yuan, Zhening Liu, Jiashu Lv, Jiawei Shao, Yufei Jiang, Jun Zhang, et al. Task-Oriented Feature Compression for Multimodal Understanding via Device-Edge Co-Inference. IEEE Transactions on Mobile Computing, 2025. 3DOI
  89. [89]Xiangyu Zeng, Kefan Qiu, Qingyu Zhang, Xinhao Li, Jing Wang, Jiaxin Li, et al. StreamForest: Efficient Online Video Understanding with Persistent Event Memory. In NeurIPS, 2025. 2arxiv.org/abs/2509.24871
  90. [90]Beichen Zhang, Pan Zhang, Xiaoyi Dong, Yuhang Zhang, and Jiaqi Wang. Long-CLIP: Unlocking the long-text capability of CLIP. In European Conference on Computer Vision (ECCV), 2024. 3, 5, 16arxiv.org/abs/2403.15378
  91. [91]Haoji Zhang, Yiqin Wang, Yansong Tang, Yong Liu, Jiashi Feng, Jifeng Dai, and Xiaojie Jin. Flash-VStream: Memory-Based Real-Time Understanding for Long Video Streams. arXiv preprint arXiv:2406.08085, 2024. 2arxiv.org/abs/2406.08085
  92. [92]Hongbo Zhang, Zihao Yang, Liuyang Song, Daqian Yang, Haoyang Yao, Yan Wen, et al. Query Independent Variable Rate Visual Token Coding. arXiv preprint arXiv:2610.00204, 2026. 3arxiv.org/abs/2610.00204
  93. [93]Junkai Zhang, Hang Guo, Luca Benini, and Yawei Li. RDKV: Rate-Distortion Bit Allocation for Joint Eviction and Quantization of the KV Cache. arXiv preprint arXiv:2605.08317, 2026. 3arxiv.org/abs/2605.08317
  94. [94]Shaojie Zhang, Jiahui Yang, Jianqin Yin, Zhenbo Luo, and Jian Luan. Q-Frame: Query-aware Frame Selection and Multi-Resolution Adaptation for Video-LLMs. In ICCV, 2025. 2, 3, 5arxiv.org/abs/2506.22139
  95. [95]Xichen Zhang, Guankai Li, Yinghao Zhu, Shijian Wang, Sitong Wu, Shaozuo Yu, Meng Chu, Yuan Lu, and Jiaya Jia. StreamArena: Toward Continuous, Interactive, and Long-Horizon Agentic Streaming Video Understanding. arXiv preprint arXiv:2608.05703, 2026. 2arxiv.org/abs/2608.05703
  96. [96]Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, et al. H₂O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models. In NeurIPS, 2023. 2, 3arxiv.org/abs/2306.14048
  97. [97]Siru Zhong, Qiongya Wang, Xiaohui Lv, Yuzheng Zhuang, Shuai Tao, Wulong Liu, et al. PReM: Prefix-Steered Recurrent Memory for Long-Video Understanding. arXiv preprint arXiv:2609.23601, 2026. 2arxiv.org/abs/2609.23601
  98. [98]Junjie Zhou, Yan Shu, Bo Zhao, Boya Wu, Zhengyang Liang, Shitao Xiao, Minghao Qin, Xi Yang, Yongping Xiong, Bo Zhang, Tiejun Huang, and Zheng Liu. MLVU: Benchmarking Multi-task Long Video Understanding. arXiv preprint arXiv:2406.04264, 2024. 2, 22, 23arxiv.org/abs/2406.04264
  99. [99]Orr Zohar, Rui Li, Andres Marafioti, and Xiaohan Wang. TimeScope: How Long Can Your Video Large Multimodal Model Go? https://huggingface.co/blog/timescope-video-llm-benchmark, 2025. 5, 17

Paper details

vlnc:W_mgvcv4t4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT, Claude

View statement
Looking for related papers…
Contents