Manuscript Offprint

arXiv:2610.12959

Video Codec-Guided Training-Free Token Compression for Video Large Language Models

Xihua Sheng, Ruijie Liu, Chang Wen Chen

Xihua Sheng, Member, IEEE, Ruijie Liu, Chang Wen Chen, Life Fellow, IEEE

Abstract—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. Loacl 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.

Index Terms—Video large language models, visual token compression, video coding, motion vector, residual.

I. INTRODUCTION

Video large language models (VLLMs) have shown strong perception and reasoning abilities on video understanding tasks [1]–[5], and have become an important direction in multimodal understanding. They typically encode video frames into visual tokens and feed them, together with text tokens, into a large language model. To handle long videos, complex events, and fine-grained temporal relations, the model needs to process longer visual contexts. However, longer contexts introduce more visual tokens, which substantially increase attention computation, prefilling latency, and KV-cache storage. Therefore, visual token compression is important for improving the inference efficiency of video large language models while preserving their understanding performance. Existing VLLM visual token compression methods [6]–[13] reduce the number

Figure

Fig. 1. Illustration of video codec information extraction and codec-guided local token matching. (a) Video codec information extraction. (b) Global visual token matching and codec-guided local token matching.

of tokens entering the language model by pruning or merging tokens. They mainly target the length of the compressed token sequence, but the compression decisions themselves also have a computational cost. This issue is particularly important for video. Intra-frame selection must decide which tokens should be retained, while temporal merging must decide whether a token in the current sampled frame has already been represented by other sampled frames. If these decisions rely on global comparisons among visual features, the compression module can introduce many similarity computations. In other words, the efficiency of video token compression depends not only on the final token retention ratio, but also on the number of visual token comparisons required to make the compression decisions.

The cost of these visual feature comparisons is closely related to the structure of video redundancy. Intra-frame redundancy often comes from repeated textures, background regions, or locally similar content, whereas inter-frame redundancy comes from the repeated appearance of the same object or region over time. These two types of redundancy require different token compression decisions: intra-frame token selection needs to identify distinctive or informative tokens, while temporal token merging needs to locate where the same content moves across sampled frames. Fixed-position matching may miss moving objects, whereas global cross-frame search introduces a quadratic number of comparisons. This motivates the use of a low-cost prior to construct a smaller and more reliable candidate region before computing visual feature similarity.

Date of current version October 12, 2026.

X. Sheng and C. Chen are with the Department of Computing, The Hong Kong Polytechnic University, Hong Kong SAR, China (e-mail: xihua.sheng@polyu.edu.hk, changwen.chen@polyu.edu.hk).

R. Liu is with the Department of Informatics, Imaging and Data Sciences, The University of Manchester, Manchester, U.K. (e-mail: liuruijie744@gmail.com).

Xihua Sheng and Ruijie Liu contributed equally to this work.

Corresponding Author: Chang Wen Chen.

JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021

Our key observation is that compressed video already contains rich prior information about motion and local changes. As illustrated in Fig. 1, to remove pixel redundancy, a video codec selects reference frames for coding blocks, estimates motion vectors, and encodes residuals after motion compensation. The reference relation indicates which frame a block depends on, the motion vector indicates where it is predicted from in the reference frame, and the residual reflects the local prediction error that remains unexplained by this prediction. These signals are not designed for downstream semantic tasks, but they describe how redundancy is removed during video coding [14]–[20]. Therefore, they can serve as a low-cost search prior that helps visual token compression avoid unnecessary global comparisons.

However, these coding signals cannot be used directly. Coding blocks and visual tokens have different spatial granularities. A single token may cover multiple coding blocks, and these blocks may have different motion directions and reference frames. A region with a large residual is also not necessarily semantically important, since texture, compression noise, or coding errors may produce similar responses. Thus, coding information is more suitable for generating candidate sets than for directly deciding which tokens should be kept or merged. The final compression decision should still rely on visual feature similarity comparison. Another important challenge comes from sparse frame sampling in VLLMs. A VLLM visually encodes only a small number of sampled frames [1]–[4], while coding references are defined over the complete video [21], [22]. The frame referenced by a current sampled frame is often not the preceding sampled frame, but an intermediate frame between them. Therefore, a single-step motion vector cannot directly describe token correspondence between two sampled frames. Ignoring intermediate frames breaks the actual reference path, while globally matching all tokens between sampled frames loses the efficiency benefit. To address this issue, motion information should be propagated along the reference-frame dependencies in the complete video, so that multiple short coding dependencies can be combined into long-range candidate positions between sampled frames.

Based on these observations, we propose a video codec-guided training-free token compression method for video large language models. The method does not modify the base VLLM, nor does it retrain the vision encoder or the language model. It extracts reference-frame dependencies, motion vectors, and residuals from the complete compressed video, and maps these block-level signals to the visual token grid. Based on the aligned coding information, residual-guided token protection first forms a compact candidate pool for visual token selection, while motion-guided temporal merging uses reference-chain propagation to construct localized cross-frame candidates.

The central principle is to use coding information for candidate generation and local visual feature comparisons for verification. Coding signals are cheap, dense, and available from the video bitstreams, but they are noisy and not task-aware. Visual feature comparisons provides stronger semantic evidence, but global comparison among visual tokens is expensive. By assigning different roles to these two sources of

Figure

Fig. 2. Comparison of the performance and feature-comparison costs of our method and the state-of-the-art baseline FlashVID [13].

information, as shown in Fig. 1, our method converts costly global token matching into codec-guided local matching, reducing comparison cost while preserving compression quality. Our contributions are as follows:

• We propose a video codec-guided training-free token compression framework for video large language models. The framework exploits reference-frame dependencies, motion vectors, and residuals already available in compressed videos to enable low-cost visual token compression without modifying the base model.

• We develop a residual-guided token protection strategy that uses residual information to form a compact candidate pool, reducing the comparison cost of token protection while preserving informative visual evidence.

• We design a motion-guided temporal merging method based on reference-chain propagation. By following reference-frame dependencies and motion vectors through intermediate coded frames, it connects sparsely sampled frames and produces localized candidates for cross-frame token merging, thereby reducing temporal visual-similarity comparisons.

We evaluate the proposed method on three representative video large language models and four video understanding benchmarks. As shown in Fig. 2, our method achieves performance comparable to, and in some cases better than, the state-of-the-art baseline FlashVID [13], while substantially reducing the feature comparisons required for token protection and cross-frame temporal merging. These results show that codec information already present in compressed videos can serve as an effective search prior for improving the accuracy-complexity tradeoff of video token compression without changing the base model.

References (36)