Visual Token Coding for Video Multimodal Large Language Models
Authors: Chenxin Fang, Tao Chen, JunChao You, Jun Peng, Yiyi Zhou, Rongrong Ji
Organizations: Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University, 361005, P.R. China
In this paper, we propose a new token compression paradigm for video Multimodal Large Language Models (MLLMs), termed Visual Token Coding (VTC). Inspired by classical video coding principles, e.g., HEVC, VTC performs structured compression by predicting the I/P frames of a video and measuring their frame-wise residuals to estimate token redundancy. Based on this baseline framework, we also enhance VTC with a set of novel dynamic designs, such as Dynamic Resolution Input (DyRSO), Dynamic Token Allocation (DyTA), and Spatial Coverage Top-K (SC-TopK), and term this new approach VTCDy. To validate VTC, we apply it to three MLLMs and conduct experiments on multiple video understanding benchmarks. The experimental results show that VTCDy achieves an average performance retention of 100.1% with a 50% token budget for Qwen3-VL, while still retaining 97.8% of the average performance when the token budget is reduced to 25%. Moreover, as a plug-and-play design, VTC requires no additional tuning of MLLMs for token coding. Our code is available at https://github.com/Msr233/VTC.
Figures & tables
Figure 1: Motivation of VTC. Video coding represents a current frame using a reference frame and its residual, and allocates different bit budgets across I/P frames. VTC transfers these principles to the visual feature space through reference prediction, semantic residual representation, dynamic token allocation, and semantic I/P frames.
Figure 2: Illustration of the proposed Visual Token Coding (VTC). (a) The baseline VTC constructs semantic I/P frames from inter-frame feature residuals and selects P-frame tokens under a uniform budget. (b) and (c) show how VTC Dy extends VTC with dynamic budget allocation: dynamic-resolution GOPs expand temporal coverage, while codec bitcost redistributes P-frame budgets according to temporal complexity. (d) Spatial Coverage Top-K performs joint regional and global token selection.
Method
Retention Rate
LVB
Video-MME
MLVU
LVBench
Avg. Retain
Acc.
Retain
Acc.
Retain
Acc.
Retain
Acc.
Retain
Qwen3-VL-8B
1.00
62.2
100.0%
67.2
100.0%
70.3
100.0%
43.6
100.0%
100.0%
VTC
0.50
61.9
99.5%
66.7
99.3%
69.3
98.6%
42.0
96.3%
98.4%
VTC Dy
0.50
63.1
101.4%
66.8
99.4%
70.0
99.6%
43.6
100.1%
100.1%
VTC
0.25
61.3
98.6%
65.3
97.2%
67.3
95.7%
40.1
92.0%
95.9%
VTC Dy
0.25
62.5
100.5%
66.0
98.2%
69.2
98.2%
41.2
94.5%
97.8%
Table 1: Results on three video MLLMs. Retain is relative to the uncompressed backbone; Avg. Retain averages four benchmarks. Bold marks the better result at each retention rate. DyRSO comparisons match pre-pruning visual encoding cost.
Retention Rate
Method
LVB
Video-MME
MLVU
LVBench
Avg. Retain
Acc.
Retain
Acc.
Retain
Acc.
Retain
Acc.
Retain
1.00
Qwen3-VL-8B
62.2
100.0%
67.2
100.0%
70.3
100.0%
43.6
100.0%
100.0%
0.50
FastV
60.7
97.5%
66.6
99.1%
67.7
96.3%
43.0
98.6%
97.9%
VisionZip
61.7
99.2%
66.7
99.3%
68.9
98.0%
43.3
99.2%
98.9%
HoliTom
61.4
98.7%
66.6
99.1%
68.7
97.7%
42.2
96.8%
98.1%
FlashVID
62.1
99.8%
67.0
99.7%
68.0
96.8%
42.9
98.5%
98.7%
Table 2: Comparison with token compression methods on Qwen3-VL-8B. Retain is relative to the uncompressed backbone, and Avg. Retain averages four benchmarks. Bold and underline mark the best and second-best compressed results. DyRSO comparisons match pre-pruning visual encoding cost.
Figure 3: Model-side latency on Qwen3-VL-8B at 25% retention under a 64-frame-equivalent visual encoding budget, measured on one RTX 3090.
Figure 4: Token allocation under the same budget. VTC uses 16.8% per P frame, whereas VTC Dy assigns 7.7%–29.6% and detects the scene cut as a new semantic I frame. Faded patches are pruned tokens.
Choices
MLVU
LVBench
S-Det.
M-Det.
Hol.
M-avg
Module Ablation
VTC
69.8
46.2
81.6
67.3
40.1
+ DyRSO
70.9
46.2
81.4
68.2
40.9
+ DyTA
70.9
50.8
81.6
68.9
41.1
+ SC-Top-K
71.4
50.8
82.1
69.2
41.2
Table 3: Ablation on Qwen3-VL-8B under matched final-token and pre-pruning encoding budgets. † marks the default.
Video large language models (VLLMs) rely on long visual token sequences to understand complex temporal content, which makes visual token compression important for efficient inference. Existing training-free compression methods mainly reduce the number of tokens sent to the language model, but the compression process itself can still require many visual feature comparisons, especially for intra-frame token protection and inter-frame temporal token merging. This paper proposes a video codec-guided training-free token compression method for VLLMs that uses coding information already available in compressed video as a low-cost search prior. The method aligns reference-frame dependencies, motion vectors, and residuals with the visual token grid. Residual information forms compact candidate pools for token protection, while motion information is propagated along reference-frame chains to construct localized candidates for temporal token merging between sparsely sampled frames. Local visual feature similarity comparison is then used within these candidates to make the final compression decisions, without modifying the base VLLM. Experiments on three representative VLLMs and four video-understanding benchmarks show that the proposed method achieves performance comparable to the state-of-the-art training-free baseline FlashVID, and in some settings surpasses it, while substantially reducing the feature comparisons required by token protection and temporal matching. These results demonstrate that codec information can effectively improve the accuracy-complexity tradeoff of video token compression.
Xihua Sheng, Ruijie Liu, Chang Wen Chen
Department of Computing, The Hong Kong Polytechnic University, Hong Kong SAR, China
Video large language models (Video-LLMs) have demonstrated strong capabilities in video understanding tasks. However, their practical deployment is still hindered by the inefficiency introduced by processing massive amounts of visual tokens. Although recent approaches achieve extremely low token retention ratios while maintaining accuracy comparable to full-token baselines, most of them perform compression only at the late stage of prefilling, leaving the efficiency of the vision encoder unoptimized. In this paper, we first show that vision encoding contributes a large portion to the time-to-first-token (TTFT). Therefore, instead of compressing visual tokens only after the vision encoder, performing compression inside the encoder still leaves substantial room for exploration. Based on this insight, we propose EarlyTom, a training-free token compression framework that performs early-stage visual token compression inside the vision encoder, enabling significantly better TTFT reduction and higher throughput. In addition, we introduce a decoupled spatial token selection strategy that improves the overall compression effectiveness. EarlyTom reduces TTFT by up to 2.65x and FLOPs by up to 61% on a single NVIDIA A100 GPU for the LLaVA-OneVision-7B model, while maintaining accuracy comparable to the full-token baseline. These improvements substantially enhance the practicality of deploying Video-LLMs in real-world production scenarios.
Hesong Wang, Xin Jin, Lu Lu +4
Zhejiang University · Westlake University · Alibaba Cloud Computing
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.
Haowen Hou, Zhen Huang, Zheming Liang +8
Shanghai Jiao Tong University · Shanghai Innovation Institute