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 YuarXiv 2026

TL;DR

CoVisco is a novel vision encoder that solves the "token explosion" problem in long-video understanding by using learnable abstract tokens and segmented attention. It achieves competitive performance on video benchmarks using as few as 400 tokens for a 64-frame video—a massive reduction compared to standard methods—while maintaining the ability to "zoom in" on fine-grained details when needed.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) face a fundamental scaling bottleneck: as videos get longer or resolutions get higher, the number of visual tokens grows quadratically. A 256-frame video can easily generate over 260,000 tokens, which is prohibitively expensive for both the vision encoder and the downstream Large Language Model (LLM).

Existing solutions usually compress tokens after dense encoding, which creates a "train-deploy mismatch"—the encoder is trained on dense data but forced to provide a sparse interface at runtime. Furthermore, many compression methods permanently delete information, making it impossible for the model to perform tasks requiring fine-grained evidence, like OCR or small object detection.

Methods

CoVisco (COdec-native VISion encoder with native token COmpression) introduces a unified architecture for images and videos built on three core pillars:

  1. Codec-Native Input: It leverages motion and residual signals from standard video codecs (like H.265/HEVC) to select important patches before they even enter the encoder, providing initial sparsity.
  2. Segmented Attention: Instead of performing full patch-to-patch attention across all frames (which is $O(N^2)$), CoVisco divides the video into temporal segments. It alternates between intra-segment layers (where tokens only look at their neighbors) and abstract-communication layers.
  3. Abstract Tokens: Each segment is prepended with a small set of learnable "abstract tokens" ($Q=100$). In the communication layers, these tokens act as the exclusive channel for cross-segment information flow. During contrastive pretraining, only these abstract tokens are supervised, forcing them to learn a highly compressed, semantic summary of the segment.
Figure 1: Framework of CoVisco. (1) The input video is divided into temporal segments and converted into visual tokens using codec-based, uniform, or collage sampling. (2) Inside the ViT, alternating attention blocks perform full attention within each segment and abstract-mediated communication across segments. The central attention maps make this distinction explicit. Each segment contains learnable abstract tokens and fine-grained patch tokens. (3) The ViT outputs both token types: abstract tokens are pooled and supervised by image–text, image–image, and video–text contrastive objectives, whereas fine-grained tokens are preserved throughout the encoder and remain available to a lightweight selector. At inference, the two outputs support abstract-only, abstract-plus-top- K, and full-token modes.

For tasks requiring more detail, a lightweight token selector can be used at inference to augment the abstract tokens with a "top-K" subset of original patch tokens.

Datasets

The model was trained in three stages:

  • Contrastive Pretraining: 480M LAION-2B image-caption pairs, 85M image-text pairs from LLaVA-OneVision, and 6.4M videos.
  • Selector Training: 1M images and 1M videos to train the token selector and projector.
  • Instruction Tuning: 740K image instructions and 800K video samples from the LLaVA-Next suite.

Evaluation was performed across a wide range of benchmarks, including ImageNet-1k, COCO/Flickr retrieval, MMEB-V2 (for embeddings), and video-specific benchmarks like MVBench, VideoMME, and LongVideoBench.

Key Insights and Ideas

  • Native Compression as an Inductive Bias: By supervising only the abstract tokens during pretraining, compression isn't just a post-processing step; it's baked into the model's representation learning.
  • Preservation over Deletion: CoVisco maintains a "dual-path" output. The abstract path provides a global summary for efficiency, while the patch path preserves fine-grained evidence. This allows the model to adapt its "bandwidth" to the task—using few tokens for general summaries and more tokens for detail-heavy questions.
  • Temporal Robustness: One of the most interesting findings is that the model is remarkably stable across different segment configurations. You can change the number of segments or frames at inference time without retraining the LLM, and the performance remains consistent.

Key Results

  • Efficiency: In a 64-frame setting, CoVisco's "abstract-only" mode uses just 400 tokens but achieves video-understanding performance close to (and sometimes exceeding) the OneVision-Encoder, which uses over 10,000 tokens.
  • Fine-Grained Boost: On the VideoMME benchmark, adding a small subset of patch tokens (a 0.2 retention ratio) improved the score from 53.5 to 57.0, proving that the selector successfully identifies task-relevant details.
  • Unified Embedding: Despite having only 0.3B parameters, the vision tower outperformed several 2B and 8B baselines on video classification and retrieval tasks within the MMEB-V2 benchmark.

Limitations and Future Work

The authors note that CoVisco currently lags behind state-of-the-art models on OCR-heavy and document-centric tasks. This is likely because the model lacks OCR-specific pretraining and the abstract tokens (fixed at $Q=100$) may not have enough capacity for dense text environments.

Future work will focus on improving OCR-oriented transfer, exploring dynamic budget policies for the token selector, and extending the architecture to support streaming video understanding, where incremental updates to the abstract tokens could enable real-time processing of infinite video feeds.

Summary updated

BibTeX
@misc{liu2026covisco,
  author = {Yulong Liu and Xiaotian Han and Junyuan Shang and Yuchen Ding and Zhenyu Zhang and Shuohuan Wang and Guibo Zhu and Sirui Han and Dianhai Yu},
  title = {{CoVisco: Codec-Native Vision Encoder with Native Token Compression for Unified Image-Video Understanding}},
  year = {2026},
  eprint = {2609.39924},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.39924},
}
Figure