Vision-language models (VLMs) represent videos as thousands of visual tokens, creating a large key-value cache whose memory grows with video length. At the same time, small VLMs that fit on limited hardware understand video far worse than large models. Existing compression methods shorten visual tokens into a brief prompt to save memory, yet the small model still processes them through fixed weights and cannot close this capability gap. To address both challenges, we introduce Video-as-Weights (VaW), which compiles a video once without seeing any question into the parametric and token memory of a frozen interpreter VLM. Specifically, a compiler VLM watches the video, and a single weight decoder jointly generates the interpreter's LoRA weights and optional prefix tokens from every compiler layer, enabling both same-model compilation and strong-to-weak transfer across model sizes and depths. Across six video QA benchmarks, a 0.8B interpreter beats full in-context reading by 1.7 points when compiled by itself and by 4.3 points with a 9B compiler, reducing context from up to 8,192 visual tokens to 64 prefix tokens while using 5.5x less memory than the video's key-value cache. Generated weights add 3.9 points over token compression alone, and all-layer decoding outperforms layer-wise generation by 2.9 points. Mechanistic analysis shows that with prefix tokens, the weights mainly alter attention queries and MLP down projections to guide retrieval and store a baseline summary, whereas without tokens, they shift to attention output projections to write video content directly into the residual stream.
Figures & tables
Figure 2: VaW architecture. (a) Video compiler: a frozen vision encoder and LoRA-adapted LLM read the video with K readout tokens, outputting readout states H across all L layers. (b) Weight decoder: N blocks refine learned LoRA and optional prefix queries by cross-attending to H . (c) LoRA & prefix heads: decoder states map to rank- r updates ΔW=BA and optional prefix tokens. (d) Interpreter: the frozen model applies ΔW across layers and reads any prefix tokens before the query. Panels (a)–(c) never see the query, so compilation runs once per video; flame marks trained parts and snowflake marks frozen parts.
Benchmark
Split
#Videos
#Q
Dur.
EgoSchema
500 subset
500
500
180
NExT-QA
test
1,000
8,564
40
LongVideoBench
val
753
1,337
732
Video-MME
full
900
2,700
1,021
MLVU
dev, 7 MC tasks
1,122
2,174
651
MVBench
20 tasks
3,871
4,000
14
Table 1: Evaluation benchmarks. All are multiple choice. Dur. is the mean video length in seconds.
Method
#Tokens
EgoSchema
NExT-QA
LongVideoBench
Video-MME
MLVU
MVBench
Avg.
References
SFT (0.8B)
full
66.0
75.3
52.4
57.5
63.2
58.8
62.2
In-context (0.8B)
full
48.6
69.4
52.2
53.9
61.5
54.7
56.7
In-context (9B)
full
72.0
84.8
64.8
69.4
76.7
71.4
73.2
Blind (0.8B)
0
22.0
32.0
32.1
32.7
35.8
31.5
31.0
Token only
Table 2: Main results (accuracy, %). Methods are grouped by how the video reaches the interpreter. #Tokens is the number of tokens read in place of the video (full: up to 8,192 visual tokens). Among non-references, bold is the best and underline the second best.
Setting
EgoSchema
NExT-QA
LongVideoBench
Video-MME
MLVU
MVBench
Avg.
Δ
Channels at test time (9B → 0.8B, r=16 )
Both ( Table 2 )
66.4
75.7
45.8
54.9
61.2
62.1
61.0
–
Tokens left out
58.0
69.0
39.9
46.2
55.0
55.9
54.0
− 7.0
LoRA left out
40.2
59.2
39.1
46.0
50.2
48.7
47.2
− 13.8
Another video’s LoRA
60.8
72.0
44.9
52.4
58.5
59.4
58.0
− 3.0
Another video’s tokens
52.6
62.1
40.9
44.8
52.7
47.9
50.2
− 10.8
Table 3: Ablations of VaW (accuracy, %). Each group compares against its gray row, and Δ is the change in average accuracy from it. Groups differ slightly in training recipe ( Appendix D ). † Trained with the recipe of the tokens-only model, so the gray row differs from Table 2 . ‡ The design of Doc-to-LoRA, with 24 of the 32 compiler layers matched to the 24 interpreter layers.
Figure 3: Compiler layers read by the weights , for VaW (9B → 0.8B) with P=64 (weights + tokens) and P=0 (weights only) on Video-MME. Each cell shows the share of an interpreter layer’s video-specific update attributable to a compiler layer ( Appendix G ), and each row sums to one. The “emb” row is the prefix tokens.
Figure 4: Scaling VaW (average accuracy over the six benchmarks). (a) Compilers of different sizes writing for the same 0.8B interpreter, against that interpreter reading the full video in context. (b) Interpreters of different sizes, with VaW reading 64 tokens and in-context reading up to 8,192. Labels give the gap. (c) Storage of a compiled video as the LoRA rank r varies (top axis), with P=64 prefix tokens unless noted. Gray marks read the video in context and keep its KV cache (112.4 MB, Appendix E ), and the shaded region beats in-context reading with less memory.
Figure 5: Interpreter modules changed by the weights , for VaW (9B → 0.8B) with P=64 (weights + tokens) and P=0 (weights only) on Video-MME. Each cell shows the relative output change rs induced by the generated LoRA ( Appendix G ). Gray cells mark modules that the layer does not have.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Architecture
Compiler layers L
24 / 32
Interpreter hidden size d
1024
Readout tokens K
32 to 512
Readout ratio ρ
8
Decoder dh , N , heads
1024, 6, 8
LoRA rank r , scale α
16, 32
Appendix
Table 4: VaW hyperparameters. Pairs separated by “/” are for the 0.8B / 9B compiler.
Task family
Modality (%)
Total (%)
Example prompt
Pre-training: Video descriptions (FineVideo, 50.0% of corpus)
People and objects
16.1
8.1
List the people and objects that appear in this video, and when each is on screen.
Dense description
14.3
7.2
Describe this video in detail, covering what is shown from beginning to end. Do not use timestamps.
Dense chronology
14.1
7.1
Walk through the video in order, one line per moment you can actually see. Start each line with its time in seconds in square brackets, like [142.5s].
Summary
13.4
6.7
Summarise this video: what it is, what it covers, and how it is put together.
Action detail
11.1
5.6
Describe the actions in this video in detail: what is done, and how.
Appendix
Table 5: Task families, sampling proportions, and example prompts for pre-training and fine-tuning. “Modality (%)” is the sampling share within video or text during pre-training, and “Total (%)” is the share of the 1.0M pre-training corpus.
SFT (0.8B)
Compressor (9B → 0.8B)
Doc2LoRA
Pre-training
Fine-tuning
Trained parameters
interpreter LoRA
compiler LoRA, MLP
compiler LoRA, decoder
Initialization
Qwen3.5-0.8B
earlier pre-training
Qwen3.5-0.8B
its pre-training
Data
fine-tuning mix
fine-tuning mix
video–text mix
fine-tuning mix
Steps
14,287
14,000
9,252
14,287
Peak learning rate
1.1×10−4
1.1×10−4
1×10−4
1.1×10−4
Appendix
Table 6: Training hyperparameters of the trained baselines. All use AdamW with β=(0.9,0.95) , weight decay 0.01, bf16, a linear warmup with cosine decay, and 32 micro-batches per step.
Table 8: Per-video memory with the video kept across questions (bf16, 128 frames / 8,307 visual tokens).
0.8B → 0.8B
9B → 0.8B
Category
P=0
P=64
Δ
P=0
P=64
Δ
Task type
Attribute perception
52.3
59.9
+7.6
58.6
67.6
+9.0
Object recognition
42.4
59.9
+17.5
47.5
61.3
+13.8
OCR
43.2
64.7
+21.5
38.8
59.7
+20.9
Information synopsis
62.5
67.2
+4.7
65.3
70.0
+4.7
Appendix
Table 9: Video-MME accuracy (%) of VaW with weights only ( P=0 ) and with weights and tokens ( P=64 ), on selected task types and on each video length. Δ is the gain from the prefix tokens. All task types, with confidence intervals, are in Table 10 .
VaW (0.8B → 0.8B)
VaW (9B → 0.8B)
Category
#Q
Blind
P=0
P=64
Δ
CI
P=0
P=64
Δ
CI
Task type
OCR
139
25.9
43.2
64.7
+21.5
[+10.1, +32.9]
38.8
59.7
+20.9
[+9.4, +32.4]
Object recognition
354
28.5
42.4
59.9
+17.5
[+10.2, +24.8]
47.5
61.3
+13.8
[+6.5, +21.1]
Temporal perception †
55
40.0
40.0
63.6
+23.6
[+5.5, +41.7]
60.0
56.4
− 3.6
[ − 22.0, +14.8]
Attribute perception
222
31.1
52.3
59.9
+7.6
[ − 1.6, +16.8]
58.6
67.6
+9.0
[+0.1, +17.9]
Appendix
Table 10: Video-MME accuracy (%) by task type and video length, for VaW with weights only ( P=0 ) and with weights and tokens ( P=64 ). Δ is the gain from the prefix tokens, and CI is its 95% confidence interval from a normal approximation over questions. Δ is in bold when the interval excludes zero. Blind is the interpreter without the video. Task types are ordered by their average Δ , and † marks those with fewer than 100 questions. Runs match Table 2 : r=16 .