UniViT: Unifying Image and Video Understanding in One Vision Encoder

Feilong Tang, Xiang An, Haolin Yang, Yin Xie, Kaicheng Yang, Ming Hu, Zheng Cheng, Xingyu Zhou, Zimin Ran, Imran Razzak, Ziyong Feng, Behzad Bozorgtabar, Jiankang Deng, Zongyuan GeNeurIPS 2025

TL;DR

UniViT is a unified vision encoder that bridges the gap between static image understanding and dynamic video modeling. By leveraging a cluster-driven self-supervised learning framework and a novel frequency-aware position embedding, it creates a single representation space that excels at capturing both fine-grained spatial details and complex temporal dynamics.

The Modality Bias in Vision Models

In computer vision, models have traditionally exhibited a "modality bias." Architectures like CLIP are highly effective at spatial modeling—identifying objects and details in static photos—but struggle to comprehend the temporal "flow" of a video. Conversely, video-centric models like V-JEPA excel at capturing motion but often lack the fine-grained spatial resolution required to distinguish small objects or intricate textures.

The underlying challenge is that "what" an object is and "how" it moves are inextricably linked. A model that understands the action of "grabbing a cup" should ideally rely on the same semantic foundation as a model analyzing a still photo of a cup. UniViT addresses this by building a single vision encoder designed to capture these "structured semantics" across both modalities simultaneously.

How UniViT Works

UniViT employs a two-stage, cluster-driven training paradigm to unify these modalities:

  1. Offline Clustering: The model uses a pre-trained encoder to group visual features into "semantic centroids."
  2. For Images: It performs object-level clustering to capture fine-grained spatial details.
  3. For Videos: It utilizes "multi-granularity event-level clustering." By analyzing video segments at different scales—from a single action to a sequence of events—it captures coarse-to-fine temporal logic.
  4. Discrimination (The Training): These clusters act as pseudo-labels. The model is trained using a contrastive objective to predict which cluster a visual input belongs to. Crucially, this enforces structural constraints, teaching the model that certain objects co-occur in space and specific events follow each other in time.
UniViT Discrimination Framework

To make this unified processing effective, the authors introduced two key architectural innovations:

  • Unified Rotary Position Embedding (U-RoPE): Standard position embeddings often struggle with the "jitter" of video frames. U-RoPE uses a frequency-aware allocation strategy, assigning "smooth" low-frequency components to temporal structures and high-frequency components to local spatial details.
  • Variable Spatiotemporal Streams (VS²): Instead of forcing every video into a fixed number of frames, VS² allows the model to adapt to varying frame lengths (e.g., 1, 2, 4, 8, or 16 frames), making it highly flexible and robust.
UniViT Architecture and U-RoPE

Training Data and Evaluation

The model was pre-trained at a massive scale using standard large-scale datasets:

  • Images: LAION400M and COYO700M.
  • Videos: InternVid (approximately 60M samples).

For evaluation, UniViT was tested on a diverse battery of benchmarks, including ImageNet (classification), Kinetics-400/600/700 (action recognition), Something-Something v2 (SSV2) (complex temporal interactions), and several Multimodal Large Language Model (MLLM) benchmarks like MMBench and VideoMME.

Key Insights

  • Beyond Categories: By using clusters as pseudo-labels rather than fixed text categories, the model learns "structured semantics." It goes beyond recognizing a "cat" to understanding the relationship between a cat and the act of jumping.
  • The Frequency Trick: The U-RoPE mechanism is a standout insight. By decoupling spatial and temporal dimensions and treating time as a "smoother" (lower frequency) signal, the model achieves significantly better training stability compared to traditional 3D position embeddings.
  • A Unified Space: The paper demonstrates that image and video representations can be mapped into a shared space where a "still frame" of an action is semantically close to the "video segment" of that same action.

State-of-the-Art Results

UniViT achieves state-of-the-art (SOTA) performance across multiple domains:

  • Linear & Attentive Probing: On 14 standard benchmarks, UniViT consistently outperformed specialized models like CLIP, DINOv2, and V-JEPA.
  • Temporal Prowess: On the notoriously difficult SSV2 dataset—which requires understanding temporal order (e.g., distinguishing "pushing something from left to right" vs. right to left)—UniViT showed significant gains over image-centric models.
  • MLLM Integration: When utilized as the vision backbone for a Large Multimodal Model (like LLaVA), UniViT surpassed CLIP on 17 out of 18 benchmarks, proving its versatility for general-purpose AI assistants.
  • Efficiency: Remarkably, UniViT retains the standard Vision Transformer (ViT) architecture, delivering these improvements without adding extra computational overhead during inference.

Limitations and Future Work

The authors identify a few areas for future improvement:

  • Initial Bias: Because the framework relies on offline clustering using a pre-trained model, any biases present in that initial model might carry over into the UniViT clusters.
  • Computational Intensity: While inference is efficient, the pre-training process is massive, requiring significant compute (e.g., 80 H800 GPUs) and billions of image/video samples.
  • Scaling to Ultra-Long Sequences: While VS² handles varying lengths, extremely long video sequences or ultra-high-resolution inputs still pose memory and computational challenges in resource-constrained environments.

Future work may explore "online" clustering—updating clusters dynamically during training—to further refine the semantic space without relying entirely on offline pre-computations.

Summary updated

BibTeX
@inproceedings{tang2025univit,
  author = {Feilong Tang and Xiang An and Haolin Yang and Yin Xie and Kaicheng Yang and Ming Hu and Zheng Cheng and Xingyu Zhou and Zimin Ran and Imran Razzak and Ziyong Feng and Behzad Bozorgtabar and Jiankang Deng and Zongyuan Ge},
  title = {{UniViT: Unifying Image and Video Understanding in One Vision Encoder}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=NABGO9Bful},
}
Figure