DAVID
Dynamic Adaptive Video Inference and Decoding — coarse-to-fine video tokens for VLMs
Course project, CMU 11-777 Multimodal Machine Learning.
Video-language models spend a fixed, large token budget on every video, whether the question needs a glance or every detail. DAVID re-encodes a video as a prefix-ordered sequence of semantic tokens: the first few tokens carry a coarse summary of the whole clip, and every additional token adds refinement. Any prefix is a valid representation, so the token budget can adapt to the question at inference time.
Method
- Frozen backbone. Only the Qwen3-VL vision encoder is kept (the LLM weights are discarded). Videos are sampled at 1 fps into a flat token sequence.
- Prefix VAE. A self-attention encoder maps the tokens to a latent sequence. During training a prefix length m ~ U(1, N) is sampled and every latent after position m is zeroed before decoding, so early tokens are forced to hold coarse information and later tokens refinements.
- Adaptive reconstruction loss. The loss smoothly moves from L1 (short prefix, coarse reconstruction) to L2 (full prefix, precise reconstruction), plus an annealed KL term to avoid posterior collapse.
Results
On a stratified 100-question PerceptionTest subset, answering from DAVID-reconstructed tokens reaches 63% accuracy, compared with 65% for the original Qwen3-VL tokens: the compressed, reordered representation keeps most of the information the VLM needs.