Learning Semantic Consistency for Open-Vocabulary Dense Perception

Li Ding, Junjie Wang, Jingjun Yang, Jiaze Wang, Libo Qin, Li Jiang, Zhuotao TianNeurIPS 2026

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:

  1. 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.
  2. 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.
Figure 1: Qualitative and quantitative overview of SSCL. (a) Given an anchor point (•) initialized on the target in the first frame, baseline dense CLIP responses become diffuse and drift under context changes, whereas SSCL maintains spatially concentrated and coherent responses. (b) Performance summary on open-vocabulary dense perception benchmarks, including video instance segmentation, region classification, semantic segmentation, and object detection. SSCL consistently improves over dense CLIP adaptation baselines under comparable evaluation settings.

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:

Figure 3: Overview of SSCL. SSCL extends self-distillation with two complementary objectives for open-vocabulary dense perception. CISC learns context-invariant anchor representations by aligning spatially corresponding dense features of the same anchor across controlled pseudo-temporal views. SGSR refines noisy CLIP text-patch responses with VFM-induced feature correlations, providing structure-aware semantic supervision for more coherent region-level text-visual alignment.
  • 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.
Figure 2: Visualization of under-constrained text-conditioned region alignment. From top to bottom, we show the queried text prompts, input images, raw CLIP text-patch responses, and SGSR-refined responses. The raw text-patch responses provide concept-conditioned semantic cues, but they are often spatially noisy, fragmented, or mixed with visually related background regions. SGSR refines these responses by propagating the text-conditioned cues through VFM-derived region affinities, producing responses that are more spatially coherent and better aligned with the queried object regions.

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

Abstract

Open-vocabulary dense perception requires grounding language-specified concepts in local regions for recognition, localization, and segmentation beyond closed category sets. CLIP learns image-level vision-language alignment, whereas dense prediction requires spatially precise and semantically reliable local features. Although recent dense CLIP adaptation methods reduce this gap through region-level semantic transfer and spatial correlation guidance, maintaining stable local semantics under contextual variation remains challenging. Specifically, the global contextual modeling in CLIP may introduce undesirable dependencies into local features. Changes in background, scale, viewpoint, or scene layout may cause identical object regions to yield inconsistent dense representations, leading to unstable correspondences and semantic drift. Moreover, spatial correlation guidance from visual foundation models captures visual relatedness between patches, but not whether coherent regions correspond to the queried textual concept, leaving concept-level dense alignment under-constrained. To address these issues, we introduce Semantic Spatial Consistency Learning $\textbf{(SSCL)}$, an adaptation method with two complementary objectives: 1) Context-Invariant Spatiotemporal Consistency (CISC) enforces semantic consistency for the same anchor region under varying contexts to mitigate context-induced feature drift; 2) Structure-Guided Semantic Refinement (SGSR) leverages spatial affinities from a frozen visual foundation model to refine CLIP text-patch responses, producing text-conditioned dense supervision with improved spatial coherence and concept-level alignment. Experiments on video instance segmentation, region classification, semantic segmentation, and object detection show consistent gains over the baseline methods, demonstrating the effectiveness and generalization capability of the proposed SSCL. Code is available at https://github.com/LiWithDream/sscl.
BibTeX
@inproceedings{ding2026learning,
  author = {Li Ding and Junjie Wang and Jingjun Yang and Jiaze Wang and Libo Qin and Li Jiang and Zhuotao Tian},
  title = {{Learning Semantic Consistency for Open-Vocabulary Dense Perception}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pk1bEKqimS},
}
Figure