OneVision-Encoder: Codec-Aligned Sparsity as a Foundational Principle for Multimodal Intelligence

Feilong Tang, Xiang An, Yunyao Yan, Yin Xie, Kaicheng Yang, Yifei Shen, Yuanhan Zhang, Shikun Feng, Chunyuan Li, Changrui Chen, Huajie Tan, Ming Hu, Manyuan Zhang, Bo Li, Ziyong Feng, Ziwei Liu, Zongyuan Ge, Jiankang DengNeurIPS 2026

TL;DR

Why do AI models stare equally hard at an unchanging living room wall as they do at a diver mid-somersault? OneVision-Encoder (OV-Encoder) borrows a decades-old trick from video compression (like H.265/HEVC) to ignore predictable, static backgrounds and focus compute strictly on the 3.1%–25% of video patches where motion and surprises actually happen. Under fixed compute budgets, this lets a model "watch" much denser stretches of time, boosting accuracy on fast-moving video tasks while processing up to 87.5% fewer tokens than dense video grids.

Figure 1: Visual intelligence as codec-aligned predictive compression. Video exemplifies this principle: most visual content is redundant and predictable, while meaningful information arises sparsely as motion and residual change. Video codecs make this structure explicit by decomposing visual signals into stable spatial context and sparse temporal updates. Grounded in this codec principle, OV-Encoder reframes visual modeling as predictive compression, serving as a scalable engine for universal multimodal intelligence that sees, updates, and reasons over time.

What Problem Does This Paper Address?

Natural video is overwhelmingly redundant. From one millisecond to the next, the sky stays blue and the stadium bleachers stay put; real information lives in the surprises—localized movement and lighting shifts.

Yet, standard Vision Transformers (ViTs) treat video like a flipbook of independent paintings. Because encoding every pixel of every frame blows up memory, standard pipelines sample just a few frames (say, 8 or 16) and chop each one into a uniform grid of patches. This creates a painful trade-off: you waste precious compute re-reading static backgrounds frame after frame, while completely missing rapid motion that happens between your sparsely sampled frames. Previous work tried learning auxiliary neural networks to prune or merge tokens after reading the frames, but OV-Encoder asks a simpler question: what if we let standard video codecs tell us where the action is before the Transformer even wakes up?

Methods

Video codecs like HEVC already separate video into I-frames (full reference images) and P-frames (which only store block-level motion vectors and residual errors—the pixels that couldn't be predicted from motion alone). OV-Encoder uses these exact codec signals as a free mathematical proxy for "visual surprise" inside a standard ViT architecture:

  • Codec Patchification: Instead of feeding raw, dense frame grids into the ViT, OV-Encoder keeps full I-frames for stable context, and for P-frames, aggregates motion magnitude and luma residual energy to score every patch. It then cherry-picks only a fixed fraction (3.1%–25%) of the highest-scoring RGB patches. Crucially, the ViT still reads decoded RGB pixels—the codec just acts as the spotlight. To make one shared backbone handle everything, it unifies this sparse video mode with Chunk-wise Patchification (stratified frame sampling) and Single-Image Spatial Patchification.
  • Shared 3D-RoPE: Dropping 75%+ of patches leaves a jagged, irregularswiss-cheese layout in space and time. To keep its bearings, the ViT uses a 3D Rotary Position Embedding (3D-RoPE) that tracks exact relative offsets $(\Delta t, \Delta x, \Delta y)$ between surviving patches—seamless whether comparing sparse P-frame patches across time or static patches on a single page.
  • Million-Scale Cluster Discrimination: Rather than standard CLIP-style contrastive learning (which only pushes apart items that happen to land in the same training batch), OV-Encoder aligns embeddings against an offline global bank of over one million semantic centroids covering both static objects and video motion.
Figure 2: Overview of the OneVision-Encoder framework. Left: Input formulation. The frame- work integrates three Codec Patchification strategies: Dense Video-Codec Patchification, Chunk-wise Patchification, and (Single-Image/Frame) Spatial Patchification. All inputs are processed by a shared- parameter OneVision-Encoder. Right: Unified cluster discrimination objective. Image and video embeddings are aligned through contrastive learning against a global set of class centers, jointly optimizing object-level and action-level representations within a single encoder.

Datasets

  • Training & Multimodal Adaptation: Pretrained in two stages on image, OCR, and video datasets (full mix in the paper's appendix). For Large Multimodal Model (LMM) integration, it is aligned and instruction-tuned on ~1.5M samples (740K LLaVA-Next image samples + 800K LLaVA-Next-Video samples), plus LLaVA-OV-1.5 adaptation for the language-aligned OV-Encoder-Lang variant. No new benchmarks are introduced.
  • Evaluation (16 LMM Benchmarks):
    • Video: MVBench, MLVU-dev, NExT-QA, VideoMME, PerceptionTest, TOMATO, LongVideoBench-Val-Video.
  • Image & Document: ChartQA, DocVQA, InfoVQA, AI2D, MMBench-EN, OCRBench, OCRBench v2, MMStar, RealWorldQA.
  • Evaluation (Frozen Attentive Probing): SSV2, Diving48, Perception Test, CharadesEgo, Epic-Kitchens-100 (Verb & Noun), Kinetics-400, and HMDB51.

Key Insights and Ideas

  • Compression is saliency: You don't need a heavy neural router to find important tokens. Decades of signal-processing engineering inside H.265 already isolate entropy; high motion vectors and residuals naturally pinpoint where new visual evidence enters a scene.
  • Spend tokens across time, not static space: Under a strict budget of 2,048 tokens, a standard ViT can only afford to look at 8 full frames ($8 \times 256$ patches). With Codec Patchification, OV-Encoder stretches that exact same 2,048-token budget across 64 frames (an 87.5% token reduction compared to dense 64-frame processing). On tasks like competitive diving, seeing the entire twist sparsely beats seeing 8 crystal-clear snapshots of the pool deck.
  • Data efficiency via structural priors: When plugged into a Qwen3-4B LMM, OV-Encoder outperforms Qwen3-ViT despite being pretrained on roughly 100B vision-language tokens versus Qwen3-ViT's >2.1T tokens.

Key Results

  • Motion-Sensitive Video Probing (Frozen Backbone): At a matched 2,048-patch budget, OV-Encoder (Codec) hits 60.2% average Top-1 accuracy across 8 video benchmarks, beating DINOv3 (58.0%) and SigLIP2 (53.1%). On the fine-grained motion benchmark Diving48, it reaches 67.2%—leaping +17.1 percentage points over SigLIP2 (50.1%) and +8.1 points over DINOv3 (58.6%).
  • Multimodal LLM Reasoning: Paired with Qwen3-4B-Instruct, OV-Encoder achieves a 4.1-point average gain on video benchmarks over Qwen3-ViT (e.g., 53.4 vs. 47.2 on VideoMME; 75.6 vs. 70.1 on NExT-QA, rising to 54.1 and 76.1 with OV-Encoder-Lang) while staying competitive on dense OCR and chart reading.
  • Extreme Sparsity Scaling: Even when squeezed down to just 512 tokens per 64-frame clip (a 96.9% patch reduction), OV-Encoder maintains 50.1% average probing accuracy, outperforming SigLIP2 by 6.7 points overall and by 18.4 points on Diving48 (46.5% vs. 28.1%).

Limitations and Future Work

Not discussed in the main text of the paper. (Note: One practical constraint visible in the method's design is that the patch sparsity ratio $r$ is held fixed throughout training and inference rather than adapting dynamically to whether a clip is a static lecture or an action movie, and extracting P-frames still requires decoding pixel patches at selected locations.)

Summary updated

Abstract

Visual signals, especially videos, are highly redundant: most regions are temporally predictable, while informative changes are sparse. We hypothesize that vision encoders should allocate computation according to this non-uniform information density rather than process dense pixel grids uniformly. From this perspective, codec-derived motion and residual signals provide a natural basis for identifying informative regions. OneVision-Encoder instantiates this idea through Codec Patchification, which replaces uniform dense computation with selective processing of only 3.1\%-25\% of regions that carry high signal entropy. To support irregular spatiotemporal token layouts, OneVision-Encoder employs a shared 3D RoPE and is pretrained with a large-scale cluster discrimination objective over more than one million semantic concepts, enabling unified representation learning for appearance and motion. Empirically, OneVision-Encoder improves both efficiency and accuracy under fixed token budgets. When integrated into large multimodal models, it achieves a 4.1\% average improvement over Qwen3-ViT on video understanding benchmarks while remaining competitive on image and document understanding. Under attentive probing, it further yields substantial gains on motion-sensitive benchmarks, improving Top-1 accuracy on Diving48 by 17.1 and 8.1 percentage points over SigLIP2 and DINOv3, respectively, at matched patch budgets. These results suggest that codec-guided patch sparsity is an effective design principle for scalable visual representation learning.
BibTeX
@inproceedings{tang2026onevision,
  author = {Feilong Tang and Xiang An and Yunyao Yan and Yin Xie and Kaicheng Yang and Yifei Shen and Yuanhan Zhang and Shikun Feng and Chunyuan Li and Changrui Chen and Huajie Tan and Ming Hu and Manyuan Zhang and Bo Li and Ziyong Feng and Ziwei Liu and Zongyuan Ge and Jiankang Deng},
  title = {{OneVision-Encoder: Codec-Aligned Sparsity as a Foundational Principle for Multimodal Intelligence}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PhUCpeOqyR},
}
Figure