arXiv:2609.39924cs.CVSep 2026

Manuscript Offprint

arXiv:2609.39924

CoVisco: Codec-Native Vision Encoder with Native Token Compression for Unified Image-Video Understanding

Yulong Liu, Xiaotian Han, Junyuan Shang, Yuchen Ding, Zhenyu Zhang, Shuohuan Wang, Guibo Zhu, Sirui Han, Dianhai Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Vision-language models face a fundamental scaling bottleneck: the number of visual tokens grows with both temporal duration and spatial resolution, making long-video understanding expensive for the vision encoder and the language model. Existing methods often compress visual tokens after dense encoding, creating a mismatch between the representation used during training and the compact interface required at deployment. We present CoVisco, a codec-native vision encoder with native token compression for unified image-video understanding. By combining codec-native input support with segmented attention, CoVisco can encode long visual inputs in a single forward pass without forming dense patch-to-patch interactions across all frames. Each temporal segment is equipped with learnable abstract tokens that learn a compact segment-level representation, while fine-grained patch tokens remain available throughout the encoder. Alternating intra-segment and abstract-communication layers preserve video-level context through the abstract-token channel. A lightweight selector further exposes either abstract tokens alone or abstract tokens augmented with a runtime-selected subset of patch tokens, yielding a compact visual interface that reduces the visual context and prefill burden of downstream MLLMs while retaining fine-grained evidence when needed. Pretrained with contrastive objectives on 565M image-text pairs and 6.4M videos, CoVisco shows competitive performance on video-oriented embedding and multimodal understanding benchmarks. In the

∗^{*}Project Lead

†^{\dagger}Corresponding Author evaluated four-segment, 64-frame setting, abstract-only inference uses only 400 visual tokens while achieving video-understanding performance close to, and on some benchmarks exceeding, OneVision-Encoder. Selected patch tokens further improve fine-grained video reasoning. Project URL: https://github.com/ernie-research/CoVisco.git

1 Introduction

Unified vision-language models must process images and videos through a common visual interface, but video token counts grow with both duration and spatial resolution. A 256-frame video at 448×448448 \times 448 already corresponds to roughly 262K patch tokens, creating a bottleneck for both visual encoding and LLM prefill. The central challenge is therefore not only how to sample frames, but how to learn a visual representation whose bandwidth can adapt to the downstream task [14, 1].

Most existing methods address this bottleneck after dense visual encoding, by pruning, merging, or summarizing patch tokens before they reach the LLM [4, 2, 14, 16]. Such post-hoc compression can create a train–deploy mismatch: the encoder is trained with dense patch flow, but the deployed interface must preserve information after many tokens have been removed. This is especially problematic for video, where brief actions, small objects, or text may occupy only a few patches in a few frames. Encoder-internal compression improves this alignment, but methods that retain only a compressed trace can permanently remove evidence needed for OCR, spatial reasoning, or fine-grained temporal understanding.

Recent codec-native encoders use motion and residual signals to reduce the visual input before or during encoding, including OneVision-Encoder [24] and Mage-VL [30]. CoVisco combines this codec-native input capability with a segmented vision architecture designed for long visual inputs. Its segmented attention avoids dense patch-to-patch interaction across the full temporal sequence, while abstract-mediated global attention preserves video-level communication through a compact channel. As a result, CoVisco can encode longer videos, including 256-frame inputs, in a single forward pass and expose only a compact visual interface to the downstream MLLM, reducing the visual context and prefill burden it must process. In codec mode, codec-based selection first reduces the input, after which abstract tokens and the selector determine which encoded tokens are exposed to the LLM. The same abstract-token interface and segmented attention also handle uniformly sampled and frame-collage inputs. Unlike methods that equate compression with permanent deletion, CoVisco preserves fine-grained patch tokens inside the encoder and exposes them on demand.

We present CoVisco (COdec-native VISion encoder with native token COmpression), a unified image-video encoder built around three ideas. First, each segment contains learnable abstract tokens that are directly pooled by complementary image-text, image-image, and video-text objectives, providing a compact segment representation. Second, alternating intra-segment and abstract-communication layers restrict cross-segment interaction to the abstract-token channel, enabling long visual inputs to be encoded without dense patch-to-patch attention across all frames. Third, a lightweight selector exposes abstract-only or abstract-plus-top-K outputs to the LLM, providing a compact visual interface that reduces the visual context and prefill burden of downstream MLLMs while preserving fine-grained evidence for detail-sensitive tasks. The same encoder supports both codec-native input and uniformly sampled or frame-collage input.

Across the reported evaluations, CoVisco provides a compact unified interface: it supports codec-native and uniform visual inputs, encodes long videos with segmented abstract-mediated attention, and exposes as few as 400 visual tokens to the downstream LLM in the evaluated 64-frame setting. It is competitive with selected larger models on video-oriented representation and understanding tasks, while image and visual-document performance remains weaker, particularly for OCR-heavy benchmarks. Our contributions are threefold:

  1. Native compact representation with preserved fine-grained flow. Abstract tokens learn a compact representation inside the ViT, while patch tokens remain available for full-token or top-K downstream use.

  2. Abstract-mediated segmented video encoding. Alternating attention layers restrict cross-segment interaction to abstract tokens, avoiding dense patch-to-patch attention while retaining a global communication path.

  3. Dynamic unified image-video interface. A selector supports abstract-only and abstract-plus-top-K deployment across codec, uniform, and collage inputs, and a unified multi-resolution pretraining recipe transfers across retrieval and language-conditioned understanding tasks.

References (34)