NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CLIP-DINOiser: Teaching CLIP a few DINO tricks

Monika Wysoczanska, Oriane Siméoni, Michaël Ramamonjisoa, Andrei Bursuc, Tomasz Trzcinski, Patrick PérezarXiv 2023 · DOI

Abstract

Contrastive Language-Image Pre-training (CLIP) models have revolutionized open-vocabulary computer vision but often struggle with precise spatial localization, leading to noisy semantic segmentation. Conversely, self-supervised models like DINO exhibit superior spatial awareness but lack linguistic grounding. This paper introduces CLIP-DINOiser, a method that bridges this gap by teaching CLIP to extract its own latent spatial knowledge using DINO as a guide. By training lightweight convolutional heads on just 1,000 unannotated images, the model produces high-quality semantic masks without sacrificing CLIP's open-vocabulary capabilities.

Introduction

The computer vision community faces a "Goldilocks" problem regarding foundation models. CLIP is a linguistic expert capable of recognizing diverse objects from text prompts, yet it is spatially imprecise, often producing "hallucinatory" results in dense tasks like pixel-level labeling. Self-supervised models like DINO are spatial experts that can outline objects with high precision but cannot associate those outlines with semantic labels from text.

Existing solutions typically involve heavy fine-tuning on labeled datasets, which often degrades CLIP’s ability to recognize rare objects. CLIP-DINOiser proposes a training-efficient, label-free alternative: using DINO's affinity maps to "denoise" CLIP's dense feature maps, thereby unlocking the spatial potential already latent within CLIP's architecture.

Methodology

CLIP-DINOiser employs a three-step "DINOising" process to refine spatial features:

  1. MaskCLIP Baseline: The process begins with MaskCLIP, which converts CLIP’s global attention mechanism into a dense feature map. While functional, this baseline is inherently noisy.
  2. Guided Pooling: The model utilizes affinity maps—which quantify the relationships between pixels—derived from DINO to smooth CLIP’s features. This concept-aware pooling ensures that pixels belonging to the same semantic object are assigned similar feature vectors.
  3. Lightweight Adaptation: To ensure efficiency, the authors train two small convolutional heads (3x3 and 1x1) to predict DINO-like correlations and "objectness" (foreground vs. background) directly from CLIP’s internal features.
Overview of the CLIP-DINOiser architecture, illustrating the guided-pooling process using affinity maps to refine dense CLIP features.

Notably, the massive CLIP backbone remains frozen. The small adapter heads are trained on only 1,000 random images from ImageNet for approximately three hours on a single GPU. At inference time, the model requires only a single forward pass, maintaining high computational efficiency.

Experiments and Results

The model was evaluated across a diverse battery of standard benchmarks, including PASCAL VOC, PASCAL Context, COCO Object/Stuff, Cityscapes, and ADE20k.

Quantitative Performance

CLIP-DINOiser achieved state-of-the-art results on four major datasets (VOC20, C59, Stuff, and Cityscapes), outperforming significantly more complex models that utilize millions of additional training images. Compared to the MaskCLIP baseline, the method improved mean Intersection over Union (mIoU) by +2.2 to +6.7 points across various benchmarks.

Qualitative Robustness

Qualitatively, the model demonstrates superior ability in ignoring "distractor" text prompts. While baseline models might hallucinate a "cat" within the textures of a "van" if prompted, CLIP-DINOiser correctly identifies the absence of the irrelevant object, producing much cleaner and more accurate masks.

Qualitative comparison between MaskCLIP and CLIP-DINOiser across various scenes, demonstrating cleaner segmentation and robustness to irrelevant prompts.

Key Insights

  • Latent Localization: A core finding is that CLIP already contains significant localization properties that are simply "buried." Lightweight adapters can extract these properties without expensive retraining.
  • Value Embeddings: The authors discovered that CLIP’s value embeddings (from its Transformer blocks) possess finer spatial correlation than the query or key embeddings often targeted in prior research.
  • Objectness and Background: Distinguishing between actual objects and background "stuff" is a major challenge in open-vocabulary tasks. By incorporating a dedicated objectness module, CLIP-DINOiser significantly reduces false positives in complex scenes.

Limitations and Future Work

Despite its successes, CLIP-DINOiser is constrained by the base CLIP model's resolution, occasionally struggling with very small or distant objects. It also faces semantic ambiguity common to CLIP models, such as confusing closely related labels like "house" and "building." Future research may explore stronger base models or apply this spatial distillation technique to other modalities, such as 3D point clouds.

Summary updated

BibTeX
@misc{wysoczanska2023clip,
  author = {Monika Wysoczanska and Oriane Siméoni and Michaël Ramamonjisoa and Andrei Bursuc and Tomasz Trzcinski and Patrick Pérez},
  title = {{CLIP-DINOiser: Teaching CLIP a few DINO tricks}},
  year = {2023},
  eprint = {2312.12359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.12359},
}
Figure