AdaCodec: A Predictive Visual Code
for Video MLLMs

Haowen Hou1,2,3*   Zhen Huang2   Zheming Liang2   Qingyi Si3   Chenglin Li2
Shuai Dong2   Kele Shao2   Ruilin Li2   Dianyi Wang2   Nan Duan3   Jiaqi Wang3,2†
1Shanghai Jiao Tong University   2Shanghai Innovation Institute   3JD.com
*Work done during an internship at JD.com   Corresponding author
AdaCodec teaser comparing adaptive GOP coding, compact P-tokens, token reduction, latency, and benchmark accuracy.
AdaCodec forms adaptive GOPs, encodes I-frames with full visual tokens, and encodes intermediate frames with compact P-tokens derived from motion and residual signals.

Video is temporally redundant: adjacent frames usually share most objects, background, and layout. Yet existing video multimodal large language models (video MLLMs) usually encode each sampled frame as an independent RGB image, causing visual tokens to repeat content already present in earlier frames. This suggests a more direct video interface: send a full reference frame only when the scene cannot be predicted well from prior context, and otherwise transmit a compact description of inter-frame changes. We call this interface a predictive visual code, and instantiate it for video MLLMs as AdaCodec. AdaCodec spends full visual tokens on a reference frame only when its conditional predictive cost is high; otherwise, it encodes inter-frame changes, including motion and prediction residuals, as compact P-tokens. Across all eleven benchmarks, AdaCodec improves over the Qwen3-VL-8B per-frame RGB baseline at a matched visual-token budget. Even at 1/7 the budget, AdaCodec with 32k tokens surpasses the 224k baseline on all long-video benchmarks; on five general-video benchmarks, it raises the average score while substantially cutting time-to-first-token from 9.26s to 1.62s.

Why Predictive Coding?

Adjacent video frames usually share objects, background, and layout. Per-frame RGB encoding repeats this evidence in the LLM context, causing token cost and latency to grow with sampling density.

1/7 visual-token budget still surpasses the 224k RGB baseline on all long-video benchmarks.
84.7% average visual-token reduction over 11,347 evaluation videos.
5.7x lower time-to-first-token before charging the 0.12s codec-build step.
11 benchmarks spanning long-video, temporal, and general video understanding.

Method

AdaCodec first redesigns predictive coding for MLLM tokenization, then uses predictive cost to place I-frames adaptively. The resulting visual code is inserted through a dual-branch tokenization architecture and aligned in two training stages.

01

Redesign for MLLM Tokenization

AdaCodec changes playback-oriented predictive coding into a visual-token interface: ViT-aligned macroblocks, previous-frame motion reference, a larger search window for low-FPS sampling, and pcost reused for GOP scheduling.

02

Adaptive GOP Construction

Motion search produces a frame-level predictive cost, pcost. AdaCodec starts a new I-frame when pcost crosses a threshold and keeps predictable frames as compact P-frames.

03

Architecture and Training

I-frames use the native visual encoder, while P-frames use a P-tokenizer over residual and motion inputs. Stage 1 aligns P-tokens to frozen visual teacher features; Stage 2 aligns the full visual code with the language model.

AdaCodec method overview showing motion and residual computation for P-frames and deployable I-frame and P-frame token pipelines.
I-frames use the native visual encoder; P-frames use a P-tokenizer matched to the MLLM visual interface.

Main Results

At comparable token budget, AdaCodec improves over the Qwen3-VL-8B per-frame RGB baseline on every reported benchmark. At about one seventh of the token budget, it preserves accuracy across the benchmark groups.

Method Long-video Temporal General
MLVU LVB LVBench TempComp. MotionB. TOMATO V-MME MVBench NExT-QA PercTest EgoSchema
Closed-source models
GPT-577.772.665.280.465.453.086.974.186.379.475.6
GPT-5 mini69.169.754.774.959.944.182.366.583.272.070.9
Gemini 3 Pro75.775.977.082.862.648.387.570.484.377.668.9
Gemini 2.5 Pro81.576.875.781.962.048.687.870.685.378.472.2
Gemini 2.5 Flash75.173.164.980.259.339.184.267.081.874.770.2
Claude Sonnet 4.564.065.150.572.858.539.680.562.179.264.373.1
Open-source models
InternVL3.5-8B53.262.143.470.356.624.668.672.181.772.758.6
Keye-VL-1.5-8B53.866.042.875.555.133.076.256.975.864.256.3
GLM-4.1V-9B56.665.744.072.359.030.075.668.481.374.262.6
MiniCPM-V-4.5-8B60.663.950.472.759.729.873.560.578.870.949.6
Eagle2.5-8B60.466.450.974.455.731.075.774.885.081.072.2
PLM-8B52.656.944.572.761.433.265.477.184.182.768.8
LLaVA-Video-7B52.858.244.266.654.224.969.758.683.268.857.3
VideoChat-Flash-7B56.064.748.269.460.632.569.774.085.576.551.3
Molmo2-8B60.267.552.873.462.239.675.875.986.282.162.0
Molmo2-O-7B55.263.749.673.060.636.269.274.884.379.656.8
Codec-aware video MLLMs
CoPE-VideoLM-7B-56.946.468.9-28.369.461.982.170.3-
ReMoRa-7B-60.8----64.4-84.267.7-
Ours: AdaCodec on Qwen3-VL-8B
Qwen3-VL-8B62.262.458.074.356.935.775.268.783.472.769.8
AdaCodec (1/7 token budget) 62.7 +0.5 63.2 +0.8 58.2 +0.2 75.8 +1.5 58.8 +1.9 39.8 +4.1 75.0 -0.2 75.3 +6.6 83.1 -0.3 75.1 +2.4 70.2 +0.4
AdaCodec (comparable token budget) 65.3 +3.1 67.8 +5.4 58.4 +0.4 75.9 +1.6 59.9 +3.0 40.0 +4.3 75.5 +0.3 76.6 +7.9 84.2 +0.8 80.5 +7.8 70.4 +0.6

Higher is better. Bold and underlined values mark the best and second-best results among open-source models. LVB denotes LongVideoBench, and V-MME denotes Video-MME. Deltas compare AdaCodec against the Qwen3-VL-8B per-frame RGB baseline.

Efficiency

The latency evaluation uses matched hardware, batch size 1, the same prompt template, identical decoding settings, 64 generated tokens, and the same input resolution.

Method Visual Tokens Codec Build TTFT E2EL Peak Memory Score
Per-frame RGB baseline 55,893.2 -- 9.26s 11.18s 34.6 GB 74.0
AdaCodec 8,550.4 0.12s 1.62s 3.20s 36.5 GB 75.7

Token Budget Scaling

On long-video benchmarks, AdaCodec dominates the per-frame RGB baseline from 32k to 224k visual tokens. The low-budget setting already exceeds the high-budget RGB baseline.

MLVU accuracy under visual-token budget sweeps.
LongVideoBench accuracy under visual-token budget sweeps.
LVBench accuracy under visual-token budget sweeps.

Adaptive Behavior

AdaCodec does not apply a fixed compression schedule. It allocates longer GOPs to stable videos and refreshes I-frames more often when camera motion, scene changes, or residuals increase.

Adaptive GOP analysis across MLVU categories and case studies.
Stable MLVU anomaly videos sustain longer GOPs, helping AdaCodec preserve more of the original timeline under the same context budget.

Cite

@article{hou2026adacodec,
  title={AdaCodec: A Predictive Visual Code for Video MLLMs},
  author={Hou, Haowen and Huang, Zhen and Liang, Zheming and Si, Qingyi and Li, Chenglin and Dong, Shuai and Shao, Kele and Li, Ruilin and Wang, Dianyi and Duan, Nan and Wang, Jiaqi},
  journal={arXiv preprint arXiv:2606.02569},
  year={2026}
}