TL;DR
While foundation models like DINOv2 excel at unimodal visual tasks, they fail to recognize that an RGB image, a depth map, and a segmentation mask of the exact same scene represent the same underlying reality. This paper introduces the Omnivorous Vision Encoder, a parameter-efficient framework that aligns disparate visual modalities into a single, shared semantic space without sacrificing the original model's discriminative power. By training a lightweight adapter with a dual alignment-and-distillation objective, the authors create an "omnivorous" model capable of robust zero-shot cross-modal transfer.
What Problem Does This Paper Address?
Human perception is remarkably stable; whether we see a room in full color, through a thermal lens, or as a simplified sketch, our brain maps it to the same internal concept. Ideally, computer vision foundation models should do the same.
However, popular off-the-shelf encoders fall short. The authors reveal a striking flaw in models like DINOv2: their feature maps for paired RGB images and depth maps are poorly aligned. In fact, the cosine similarity between an RGB image and its corresponding depth map is roughly 0.26—nearly identical to the similarity between two completely random, unrelated images (0.24).
Forcing a model to bridge this gap from scratch can be computationally prohibitive and often leads to "representation collapse," where the model achieves alignment by destroying its fine-grained discriminative abilities. This paper tackles the challenge of post-hoc cross-modal alignment: how to unify heterogeneous visual modalities into a shared space while preserving rich pretrained priors.
Methods
The authors propose a parameter-efficient teacher-student framework that updates only the final high-level processing blocks of a pretrained Vision Transformer (ViT), leaving the early layers frozen.
The framework relies on a dual-objective loss function:
- Symmetric Cross-Modal Alignment ($\mathcal{L}_{\text{InfoNCE}}$): An InfoNCE contrastive loss that pulls student embeddings of different modalities from the same scene closer together, while pushing embeddings from different scenes apart.
- Anchoring Loss ($\mathcal{L}_{\text{anchor}}$): A distillation mechanism that forces the student's outputs to remain close to the frozen teacher's original feature space, preventing representational drift or collapse.
Smart Data Tricks to Prevent "Cheating"
A naive contrastive setup allows networks to find shortcuts. For example, if depth maps are always rendered in grayscale or a specific "jet" colormap, the network will align images based on low-level color histograms rather than structural content. To counter this, the authors introduce two data-centric innovations:
- Natural Colorization: Depth and segmentation maps are colorized using a palette derived directly from the corresponding RGB image, creating "hard positives" that force the network to focus on structural layout.
- Modality Mixup: During training, RGB, depth, and segmentation images are stochastically blended together. This forces the encoder to learn invariance across a continuous spectrum of modalities.
Datasets
The model was trained and evaluated across a diverse suite of datasets:
- Multi-Modal Training & Retrieval: MOVi, ScanNet, and TartanAir.
- Downstream Evaluation: NYUv2 and NAVI (for monocular depth estimation); ADE20k, Cityscapes, and Pascal VOC (for semantic segmentation); ImageNet-1k, iNaturalist, SOP, GLDv2, RP2K, and Food2k (for classification).
- Zero-Shot Cross-Modal Transfer: Evaluated on the PACE dataset using Segmentation maps and out-of-distribution Normalized Object Coordinate Space (NOCS) maps.
Key Insights and Ideas
- Alignment vs. Discernibility Trade-off: The anchoring loss hyperparameter ($\lambda_{\text{anchor}}$) acts as a crucial dial. Without it ($\lambda = 0$), the model collapses into a trivial alignment solution. A balanced $\lambda$ allows the model to achieve high cross-modal alignment while retaining the teacher's original scene-discriminating power.
- Cross-Modal Generalization to Unseen Modalities: By learning to align RGB, depth, and segmentation, the model develops a generalized structural understanding. This allows it to perform well even on modalities it never saw during training, such as NOCS maps or X-ray images of artwork.
- Superficial Signals are Obstacles: Standard colormaps act as a crutch for deep networks. Forcing structural alignment requires explicitly stripping away these low-level statistical shortcuts via natural colorization.
Key Results
- Inter-Modal Retrieval: On the ScanNet dataset, the Omnivorous adapter boosted the image retrieval Recall@1 (R@1) from a dismal 4.6% (DINOv2 baseline) to 46.1%, while dropping the Median Rank from 401.8 down to 2.0.
- Downstream Performance: Aligning modalities actually enriched the semantic space. On ImageNet-1k, a linear probe on the Omnivorous encoder achieved a top-1 accuracy of 83.8%, outperforming the baseline DINOv2's 80.4%.
- Zero-Shot Cross-Modal Transfer: The authors trained a depth prediction head using only RGB images and then tested it directly on segmentation maps. The baseline DINOv2 failed completely (1.536 RMSE, equivalent to random guessing), whereas the Omnivorous encoder achieved an RMSE of 0.532, proving that its segmentation embeddings reside in the same semantic space as its RGB embeddings.
Limitations and Future Work
- High-Resolution Fine-Tuning: DINOv2 typically undergoes a final high-resolution fine-tuning step. The authors note it remains unclear whether this step must be repeated after training the Omnivorous adapter.
- Post-Hoc vs. Native Alignment: This work focuses on adapting a pre-existing feature space. The authors suggest that integrating explicit cross-modality alignment objectives directly during the initial foundation model pre-training phase could unlock even deeper geometric and semantic representations.
Summary updated