EvolvingLMMs-Lab/OneVision-Encoder
Codec-Aligned Sparsity as a Foundational Principle for Multimodal Intelligence
What it solves
Modern vision models treat all pixels equally, wasting compute on redundant parts of an image or video. This project argues that visual information is sparse: most of a scene is static background, while the surprising, motion-rich regions carry the meaning. OneVision-Encoder solves this by aligning its architecture with video-codec principles: it skips uniform dense computation and focuses only on the patches that actually carry signal.
How it works
The encoder uses something called Codec Patchification. Instead of sampling a few frames densely (taking all patches from a handful of frames), it samples many frames sparsely — it pulls out the 3.1% to 25% of patches that are richest in temporal information, following a zigzag order like a video codec. This achieves 75–98% compression while preserving critical dynamics. To handle these irregular token layouts across space and time, the model uses a shared 3D rotary position embedding (RoPE) with a 4:6:6 split for temporal, height, and width dimensions. It also supports native resolution without tiling or cropping. Training uses a global contrastive learning objective over a 2M concept bank, which gives a richer set of negatives than batch-limited methods like CLIP, leading to better-separated semantic clusters.
Who it’s for
This is for researchers and developers building large multimodal models that need to handle images, videos, and documents (OCR) efficiently. It is designed as a drop-in vision backbone that can replace existing encoders like Qwen3-ViT or SigLIP2 to cut token count and compute while improving accuracy.
Highlights
- Single base model works across images, videos, and OCR tasks without task-specific patches.
- Codec-style patch selection: instead of dense frames, it uses sparse patches from many frames, achieving 75–98% compression.
- 3D RoPE with 4:6:6 temporal/height/width split captures spatiotemporal relationships; native resolution input is supported.
- Global contrastive learning over 2M concept centers produces more discriminative embeddings than batch-limited CLIP-style training.
- Outperforms Qwen3-ViT and SigLIP2 on 16 image, video, and document benchmarks despite using fewer visual tokens and less pretraining data; e.g., average 4.1% improvement on video understanding over Qwen3-ViT.
- On Diving-48 under same patch budget, achieves 17.1% and 8.1% Top-1 accuracy improvements over SigLIP2 and DINOv3 respectively.
- Reproducible recipes for LLaVA-NeXT fine-tuning and evaluation are included.
Related
- Project
- Project
- Project
- Project