Skip to content
AI.info

Research

A Mixed Diet Makes DINO An Omnivorous Vision Encoder

Overview Research area: Computer vision representation learning — cross-modal alignment of frozen vision foundation models (DINOv2) for RGB, depth, and segmentation inputs. Technical level: Advanced (

arXiv
2602.24181
Published
2026-02-27
Authors
Rishabh Kabra, Maks Ovsjanikov, Drew A. Hudson, Ye Xia, Skanda Koppula, Andre Araujo, Joao Carreira, Niloy J. Mitra

AI summary

Overview

  • Research area: Computer vision representation learning — cross-modal alignment of frozen vision foundation models (DINOv2) for RGB, depth, and segmentation inputs.
  • Technical level: Advanced (assumes familiarity with Vision Transformers, InfoNCE/contrastive learning, knowledge distillation, and parameter-efficient fine-tuning).
  • Scope: The paper diagnoses poor cross-modal feature alignment in off-the-shelf encoders and proposes a post-training, parameter-efficient recipe — the "Omnivorous Vision Encoder" — that aligns RGB, depth, and segmentation into a shared feature space without retraining the backbone.

What This Paper Is About

Pre-trained vision encoders such as DINOv2 perform strongly on unimodal tasks, but their features are poorly aligned across visual modalities: for the same scene, the cosine similarity between an RGB image embedding and its corresponding depth map embedding is nearly identical to that of two random, unrelated images. The authors introduce a post-training framework that fine-tunes only a small part of a frozen DINOv2 backbone so that one scene maps to nearly the same point in feature space regardless of whether the input is RGB, Depth, or Segmentation — while retaining the original model's discriminative semantics.

Key Contributions

  1. A parameter-efficient, post-hoc alignment recipe. A teacher-student framework where the student shares the frozen backbone f* with the teacher and only the final high-level processing blocks (the adapter g) are updated — 12 blocks total in the ViT-Base model, with the first L = 8 frozen and the subsequent 4 fine-tuned. Distillation from the frozen teacher head g* prevents catastrophic forgetting.
  2. A dual training objective. A symmetric InfoNCE alignment loss over all three modality pairs ((h^aug_r, h^mixup_s), (h^mixup_s, h^mixup_d), (h^mixup_d, h^aug_r)) combined with a cosine-distance anchoring loss L_anchor that keeps student outputs close to teacher outputs of the same modality (default λ_anchor = 10), preventing representational drift or collapse.
  3. Two data-centric strategies that prevent shortcut solutions. (i) Natural colorization: depth and segmentation maps are re-rendered using a natural color palette derived from the corresponding RGB image (pixel values quantized into 64 bins, with palette smoothing), creating "hard positives" that deny the network superficial color-histogram cues. (ii) Modality mixup: RGB, depth, and segmentation are blended with stochastically sampled α values to span a continuous space of modalities (Depth ↔ RGB ↔ Seg).
  4. Release of model weights for the Omnivorous encoder at https://github.com/google-deepmind/representations4d.

Main Findings

  • Off-the-shelf encoders are badly misaligned across modalities. On ScanNet, DINOv2 features yield a Median Rank of 401.8 (GAP) and 382.5 (TOK) for cross-modal retrieval, indicating embeddings of different views of the same scene are far apart.
  • The adapter dramatically improves cross-modal retrieval without fine-tuning the backbone. On ScanNet (GAP), R@1 rises from 4.6% (DINOv2) to 46.1% (Omnivorous) and Median Rank drops to 2.0. On MOVi, R@1 rises from 15.5% to 86.2%; on TartanAir, from 46.6% to 90.6%. Retrieval is averaged over all 6 directed modality pairs, with 1 frame sampled per test video (MOVi N=128, ScanNet N=3072, TartanAir N=128).
  • Classification improves with alignment. Linear-probe top-1 ImageNet accuracy reaches 83.8% for the Omnivorous encoder versus 80.4% for DINOv2 when using both CLS token and GAP features (0.838 vs 0.804); token-only accuracy is 0.835 vs 0.801.
  • k-NN results confirm the anchoring loss limits drift. On ImageNet soft voting, k-NN stays at parity (81.97% Omnivorous vs 81.94% DINOv2). Results on transfer datasets are mixed: gains on RP2K (70.48 vs 66.83, a +3.65% improvement) and Food2k (52.14 vs 51.90), but slight regressions on iNaturalist (77.49 vs 78.53) and Google Landmarks v2 (50.13 vs 51.90), which the authors attribute to a training mix containing significant simulated multi-object data.
  • Geometric and semantic tasks are preserved or slightly improved. With a Linear readout on NYUv2 depth, RMSE improves from 0.405 to 0.377 and δ1 from 0.875 to 0.896. With a DPT decoder, depth performance is at parity (0.297 RMSE on NYUv2). Segmentation mIoU improves on ADE20k Linear (0.463 → 0.475) and Cityscapes Linear (0.622 → 0.632).
  • Zero-shot cross-modal transfer is the standout result. A depth head trained on NYUv2 RGB images and tested on PACE with segmentation inputs fails catastrophically for DINOv2 (Linear RMSE 1.536, effectively random guessing) but works for Omnivorous (RMSE 0.532). On NOCS maps — unseen by both models — the Omnivorous encoder still outperforms (RMSE 1.075 vs 1.996).
  • λ_anchor is an explicit trade-off knob. Frozen DINOv2 shows high cross-scene discernibility (0.80) but poor alignment (0.28) on ScanNet. Low λ_anchor (e.g., 1.0) yields alignment approaching 0.70 but reduced discriminative power; higher values (10.0, 100.0) recover discernibility at the cost of alignment. The λ_anchor = 0 datapoint was omitted from the plot for clarity, located at (x = 0.732, y = 0.356).
  • Modality mixup ablation. Increasing α_max generally improves classification, segmentation, and 3D correspondence — up to 0.835 accuracy, 0.632 mIoU, and 29.03% correct keypoints at α_max = 1.0 — while depth is an outlier (0.899 at α_max = 0 down to 0.891 at α_max = 1.0). The default α_max = 0.5 balances across tasks.
  • Qualitative PCA visualization shows frozen DINOv2 feature maps for RGB, Depth, and Segmentation occupying disjoint subspaces, while adapted features share consistent colors and structural detail across modalities.

Methodology in Plain English

The authors start from a strong pre-trained encoder (DINOv2 ViT-B/14, 173M parameters) and keep most of it frozen. Two copies exist: a teacher whose head is frozen and serves as a stable semantic anchor, and a student whose final four transformer blocks (the "adapter") are trained. Only the very last blocks change, so the model keeps nearly all of its pre-trained knowledge.

Training uses paired images of the same scene in three modalities: RGB, depth, and segmentation. Two tricks make the task hard in a productive way. First, instead of rendering depth and segmentation with standard grayscale or jet colormaps, they recolor those maps using a 64-bin natural palette sampled from the paired RGB image, so a network cannot cheat by matching color histograms — it must match geometry. Second, they randomly blend depth and segmentation images with up to 50% of the RGB image (α sampled independently per datapoint per modality, range restricted to [0, 0.5] during training, set to 0 at evaluation), which creates a smooth continuum between modalities and yields more negatives for contrastive learning.

The loss has two terms. The alignment term is a symmetric InfoNCE loss (learned temperature τ, clipped to [0., 100.]) averaged over the three modality pairs, pulling same-scene embeddings together and pushing different-scene embeddings apart. The anchoring term is the cosine distance between the student's output and the teacher's output for the same modality, keeping the student in the teacher's semantic space. Losses are computed separately for the class token and for dense tokens (with 64 dense tokens subsampled per image, and a mask preventing intra-image dense tokens from serving as negatives).

Training uses AdamW at learning rate 1e-4, global batch size 512, 224x224 resolution, TPU v4 (4x4x4) for 20,000 steps, with a total runtime of 1 hour 14 minutes. Training data spans six datasets: ScanNet, TartanAir, Hypersim, MOVi, PointOdyssey, and DynamicReplica. Photometric augmentation of RGB uses brightness delta in [-0.1, 0.1], saturation in [0.8, 1.2], hue in [-0.03, 0.03], and contrast in [0.8, 1.2].

Why This Matters

The paper shows a lightweight, post-hoc route to a modality-agnostic vision representation that keeps the deployment benefits of a strong unimodal encoder like DINOv2 without full-model fine-tuning — a one-hour, 74-minute single training run on a TPU v4 pod. It matters because many structure-rich modalities (depth, segmentation, and beyond) are far less abundant than RGB, so aligning them into an existing RGB-pretrained space is more practical than co-training a unified backbone from scratch, as Omnivore, ImageBind, or Unified-IO do.

Real-world applications:

  • Robotics and embodied agents, where a policy or perception module trained on RGB can be deployed on depth or segmentation streams without retraining heads.
  • 3D reconstruction and scene understanding, where the paper reports improvements on 3D-relevant tasks in the Probe3D framework and on NAVI 3D correspondence.
  • Autonomous driving and mapping, where Cityscapes segmentation and cross-modal retrieval benefit from consistent scene embeddings across sensors.
  • Label-scarce fine-grained retrieval, where aligned embeddings support k-NN search over image collections (gains on RP2K and Food2k are reported; regressions on iNaturalist and GLDv2 are also reported).

Industry relevance: the recipe is cheap, parameter-efficient, and distills into an already widely deployed foundation model, which lowers the barrier to adding structural modalities to existing production vision stacks without recollecting large balanced multimodal datasets.

Future Directions

  • Align modalities during pre-training rather than post-hoc. The authors suggest this may unlock deeper benefits than fine-tuning the final layers of an existing model.
  • Generative downstream uses. Having shown benefits for cross-modal retrieval and depth prediction, the authors expect monocular image-to-depth and similar generative applications to benefit from conditioning on Omnivorous representations.
  • Resolve the high-resolution fine-tuning question. DINOv2 undergoes a high-resolution fine-tuning step at the end of its training; it is unclear whether that step would be required after training Omnivorous DINO.
  • Improve beyond DINOv2 with alternative teachers and adapter placements. The appendix reports ablations on using TIPS as the teacher, learning an adapter on top of the teacher rather than adapting its final layers, and how many layers to freeze.

Target Audience

Researchers and practitioners in computer vision and multimodal representation learning, particularly those working with frozen foundation models, parameter-efficient adapters, and cross-modal retrieval or dense prediction. It is also relevant to robotics, autonomous driving, and 3D perception engineers who need depth or segmentation inputs to work with models trained primarily on RGB, and to anyone studying knowledge distillation as a tool for preserving pre-trained semantics during adaptation.

Authors’ abstract

Pre-trained vision encoders like DINOv2 have demonstrated exceptional performance on unimodal tasks. However, we observe that their feature representations are poorly aligned across different modalities. For instance, the feature embedding for an RGB image and its corresponding depth map of the same scene exhibit a cosine similarity that is nearly identical to that of two random, unrelated images. To address this, we propose the Omnivorous Vision Encoder, a novel framework that learns a modality-agnostic feature space. We train the encoder with a dual objective: first, to maximize the feature alignment between different modalities of the same scene; and second, a distillation objective that anchors the learned representations to the output of a fully frozen teacher such as DINOv2. The resulting student encoder becomes "omnivorous" by producing a consistent, powerful embedding for a given scene, regardless of the input modality (RGB, Depth, Segmentation, etc.). This approach enables robust cross-modal understanding while retaining the discriminative semantics of the original foundation model.

Read the original paper