TL;DR
Vision-language models like CLIP excel at understanding whole images, but their local, pixel-level features tend to drift when an object's background or context shifts. This paper introduces Semantic Spatial Consistency Learning (SSCL), a training-only adaptation framework that teaches CLIP to keep local object representations stable across changing scenes while sharpening how text prompts map onto physical object boundaries. The result is a drop-in visual encoder that boosts open-vocabulary detection, segmentation, and video tracking—with zero extra compute at inference time.
What Problem Does This Paper Address?
Open-vocabulary dense perception is the challenge of finding and outlining any concept described in natural language (like "a wine glass" or "a walking panda") at the pixel or region level, without being restricted to a fixed list of categories.
Because CLIP is trained to match entire images with captions, it looks at the holistic picture rather than fine-grained local regions. Recent methods adapt CLIP for dense tasks using self-distillation and visual foundation models (VFMs) like DINOv2. However, two subtle problems remain:
- Context-induced semantic drift: Vision Transformers use global self-attention, meaning every image patch talks to every other patch. If a panda walks from a lush green forest onto a bare dirt log, the background tokens change—causing the panda’s own local features to shift and lose their identity across frames.
- Noisy text-to-region alignment: Matching text embeddings directly to image patches often produces fragmented, noisy heatmaps that spill into visually related backgrounds. While VFMs know which pixels belong together structurally, they are "blind" to text queries and don't inherently tell CLIP which coherent region matches the prompt.
Methods
The authors build upon a standard asymmetric self-distillation baseline, where a frozen teacher CLIP encodes tight image crops to supervise a trainable student CLIP's pooled regional features. To fix drift and noisy alignment, they introduce two novel training objectives:
- Context-Invariant Spatiotemporal Consistency (CISC): Instead of relying on real videos—which suffer from motion blur, deformation, and tracking errors—the authors synthesize "pseudo-temporal" views from static images. They take a tight crop of an "anchor" region (e.g., a dog) for the frozen teacher, and feed several larger, shifted crops containing that same dog—surrounded by different amounts of background—to the student. Because the crop coordinates are known, they trace the exact anchor patches and apply a point-to-point contrastive (InfoNCE) loss, forcing the student's local features to remain identical regardless of the surrounding context.
- Structure-Guided Semantic Refinement (SGSR): Using only image-level category labels, SGSR takes the student's raw, noisy text-patch similarity map as a "semantic seed." It then passes the image through a frozen VFM (DINOv2) to compute patch-to-patch structural affinities. By propagating CLIP's text responses across DINOv2's structural connections, it generates a clean, stop-gradient target heatmap that teaches the student where the queried object actually begins and ends.
Datasets
No new benchmarks are introduced. While the exact pre-adaptation training dataset is deferred to the paper's appendix, downstream models use standard task-specific training sets (like LVIS and COCO-Stuff) and are evaluated across four open-vocabulary tasks:
- Video Instance Segmentation: LV-VIS (val/test), OVIS, and YouTube-VIS 2019/2021.
- Region Classification: COCO-Panoptic validation set (boxes, thing masks, and stuff masks).
- Semantic Segmentation: ADE20K (ADE150 and expanded ADE847), PASCAL-Context (Context59 and Context459), and PASCAL VOC (VOC20/VOC21).
- Object Detection: OV-COCO and OV-LVIS.
Key Insights and Ideas
- Global attention is a double-edged sword: The very mechanism that makes ViTs brilliant at holistic scene understanding actively sabotages local feature stability when scenes change. Isolating local features from global context shifts is essential for dense video and image tasks.
- Synthetic views beat messy video for patch alignment: Generating controlled crop-and-resize views from static images gives exact, noise-free patch correspondences, teaching spatiotemporal stability without needing video annotations or optical flow.
- VFMs work best as semantic amplifiers, not just regularizers: Rather than merely forcing CLIP features to mimic VFM correlations visually, using VFM structure to diffuse text-conditioned seeds directly bridges language concepts and spatial boundaries.
- Free lunch at inference: Because CISC, SGSR, and the frozen VFM are only active during training, the resulting student encoder drops into existing pipelines with zero extra parameters or latency.
Key Results
Across all four tasks and multiple backbones (ViT-B/16 and ViT-L/14), swapping in the SSCL-adapted encoder consistently outperforms prior dense CLIP adaptations like CLIPSelf and DeCLIP:
- Video Instance Segmentation: Paired with CLIP-VIS (ViT-L/14), SSCL hits 39.5 AP on LV-VIS val (+1.8 over DeCLIP) and 31.0 AP on OVIS (+1.7).
- Region Classification: On COCO-Panoptic (ViT-L/14), top-1 accuracy reaches 81.2% on boxes, 82.8% on thing masks, and 58.3% on stuff masks (up from 54.6% with DeCLIP).
- Semantic Segmentation: Paired with H-CLIP (ViT-L/14), it achieves 42.5 mIoU on ADE150, 19.1 mIoU on the massive 847-class ADE847 benchmark, and 64.7 mIoU on Context59.
- Object Detection: With F-ViT (ViT-L/14), it reaches 47.1 $\text{AP}_{50}^{\text{novel}}$ on OV-COCO and 38.6 $\text{AP}_r$ (rare categories) on OV-LVIS.
- Ablations: Adding CISC and SGSR individually to the base self-distillation model (ViT-B/16) boosts stuff-mask classification from 47.6% to 57.8% and 50.9%, respectively, while combining them reaches 57.9% (and pushes ADE150 mIoU from 34.5 to 37.9).
Limitations and Future Work
The authors note that synthesizing pseudo-temporal views via cropping and resizing static images is ultimately only an approximation of the complex visual dynamics found in the real world—such as 3D viewpoint changes, lighting shifts, and non-rigid object deformations. Future work will explore richer context modeling to further harden local representations against genuine dynamic video conditions.
Summary updated