Abstract
Contrastive Language-Image Pre-training (CLIP) has established itself as a cornerstone for vision-language tasks. However, its global alignment objective often results in a lack of spatial precision, which is critical for dense prediction tasks like object detection and semantic segmentation. While existing Region-Language Alignment (RLA) techniques attempt to bridge this gap, they frequently degrade the inherent visual-centric structural integrity of CLIP's features. This paper introduces the Spatial Correlation Distillation (SCD) framework and a lightweight Refiner module designed to mitigate "semantic contamination" from global context. By preserving spatial relationships and filtering contextual noise, the proposed approach achieves state-of-the-art performance in open-vocabulary dense prediction while maintaining high-quality, localized feature representations.
Introduction
The success of CLIP in zero-shot classification and image retrieval is undeniable. Yet, when applied to dense tasks that require localized understanding, CLIP often "loses its way." The root of this issue lies in its training objective: aligning a single vector representing an entire image with a single vector representing a text prompt. Consequently, the resulting feature maps are often blurry, with object boundaries bleeding into the background.
To address this, researchers typically employ Region-Language Alignment (RLA), fine-tuning CLIP to match specific image regions with corresponding words. However, the authors of this study identify a significant drawback: RLA can degrade the "visual-centric" quality of CLIP’s features. By over-prioritizing text alignment, the model’s inherent understanding of an image's physical structure is compromised. The model may learn to name an object more accurately, but it becomes less precise at identifying where that object begins and ends.
Methodology
The proposed framework introduces two primary innovations to refine CLIP’s spatial awareness while maintaining its structural "common sense."
1. Spatial Correlation Distillation (SCD)
Traditional distillation methods often focus on raw feature values, which can be noisy and domain-specific. SCD shifts this focus to the relationships between different spatial locations within an image. By enforcing consistency between the spatial correlation matrices of the original CLIP (acting as a teacher) and the fine-tuned model (the student), the framework ensures that the structural backbone of the image is preserved during the alignment process.
2. The Refiner Module
A key insight of this work is that CLIP already contains high-quality spatial information, but it is obscured by "semantic contamination"—distortion caused by the global context. For instance, the feature representation of a "car" might change significantly depending on whether it is parked on a street or in a forest. The Refiner is a lightweight module, initialized from the final layers of CLIP’s image encoder, designed to filter out this contextual noise. It employs a global-to-local dynamic to extract crisp, dense features that are more faithful to the actual object boundaries.
3. R-SC-RLA Framework
By integrating the Refiner with SCD, the authors create the R-SC-RLA framework. This system balances the need for visual-language alignment with the necessity of visual-centric structural preservation, resulting in a model that is both semantically accurate and spatially precise.
Experimental Results
The framework was evaluated on several rigorous benchmarks for open-vocabulary dense prediction, including OV-COCO, OV-LVIS, and ADE-20K.
Object Detection and Segmentation
The proposed model, R-SC-CLIPSelf, demonstrated superior performance over existing state-of-the-art (SOTA) methods:
- OV-COCO: Utilizing a ViT-L/14 backbone, the model achieved 48.1 AP50, a marked improvement over the standard CLIPSelf baseline of 44.3.
- Semantic Segmentation: When paired with the Cat-Seg architecture, the method reached 38.4 mIoU on the ADE-150 benchmark, establishing a new SOTA.
Feature Quality and Visualization
Qualitative analysis via t-SNE and affinity maps confirmed that the refined features align much more closely with physical object boundaries. Unlike previous RLA methods, which often produced "leaky" or scattered feature maps, the R-SC-CLIPSelf features remained localized and distinct, proving that the Refiner effectively mitigates semantic contamination.
Discussion and Key Insights
The findings of this paper suggest that CLIP’s spatial limitations are not necessarily due to a lack of information, but rather a lack of access to that information. The "semantic contamination" caused by global context acts as a mask that the Refiner successfully removes. Furthermore, the success of Spatial Correlation Distillation highlights that the structure of data (how parts relate to the whole) is often more important than the specific feature values when bridging the gap between vision and language.
Limitations and Future Work
While effective, the current approach typically involves a two-stage training process—training the Refiner first, followed by CLIP fine-tuning—to ensure maximum stability. This adds complexity compared to end-to-end methods. Additionally, the system still relies on a Region Proposal Network (RPN) to identify candidate areas for alignment. Future research may explore applying these visual-centric principles to even larger foundational models, such as DINOv2, to further enhance fine-grained detail and overcome global context artifacts.
Conclusion
By shifting the focus back to a visual-centric perspective, this work provides a robust solution to CLIP’s spatial awareness problem. The combination of Spatial Correlation Distillation and the Refiner module allows for the extraction of dense, precise features that excel in open-vocabulary tasks without losing the structural integrity that makes CLIP a powerful visual encoder.
Summary updated