Skip to content

Video-as-Weights: Compiling a Video Once into Parametric and Token Memory

Wentao Zhang, Ian Miao, Chen Qu, Bill Bi, Donna Schut, Yuntian Deng, Yale Song

cs.CV

Abstract

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.

Create a lesson