Abstract
Open-Vocabulary Semantic Segmentation (OVSS) aims to segment arbitrary objects based on natural language prompts. While Vision-Language Models (VLMs) like CLIP excel at global image-text alignment, they often fail to capture local object structures, resulting in fragmented segmentation masks. We present CASS (Context-Aware Semantic Segmentation), a training-free approach that distills structural knowledge from Vision Foundation Models (VFMs) into CLIP. By leveraging spectral graph matching and object-presence priors, CASS achieves state-of-the-art performance across eight benchmarks without requiring additional training or fine-tuning.
Introduction
The "holy grail" of image understanding is the ability to segment any object in a scene using arbitrary natural language descriptions. Recent advancements in Vision-Language Models (VLMs), particularly CLIP, have brought us closer to this goal. However, CLIP's training on global image-text pairs makes it "context-blind" at the local level. It can identify the presence of a "truck" but struggles to group its constituent parts—wheels, windows, and chassis—into a single, semantically consistent mask. Existing training-free methods often produce noisy, fragmented results where different parts of the same object are assigned to different classes.
Methodology
CASS addresses the context gap through two primary mechanisms: Spectral Object-Level Context Distillation and Object Presence-Driven Context.
1. Spectral Object-Level Context Distillation
This module transfers structural awareness from a Vision Foundation Model (VFM), such as DINO, to CLIP. Unlike simple feature distillation, CASS treats the self-attention maps of both models as graphs.
- Complementary Spectral Graph Matching: The system performs eigendecomposition on the attention graphs. It identifies "complementary" heads where the VFM provides the structural detail that CLIP lacks, matching DINO’s structural "heads" to CLIP’s semantic "heads."
- Low-rank Dynamic Eigenscaling: To isolate the essential object structure, the model employs a low-rank approximation. It then dynamically scales eigenvalues to amplify object-level features while suppressing background noise.
2. Object Presence-Driven Context
To further refine the segmentation, CASS incorporates scene-specific priors:
- Object-Guided Text Embedding Adjustment (OTA): The model uses CLIP’s zero-shot capabilities to identify likely objects in the scene and "nudges" text embeddings toward the observed visual features.
- Object Perspective Patch-Text Similarity (OPS): Final similarity scores are weighted by a global "presence prior," preventing the hallucination of classes not actually present in the image.
Experimental Results
CASS was evaluated on a comprehensive suite of eight major datasets, including PASCAL VOC 2012, PASCAL Context, COCO Stuff/Object, ADE20K, and Cityscapes.
- Quantitative Performance: CASS achieved an average improvement of 3.0 mIoU points across all benchmarks. Notably, on the PASCAL VOC 2012 (V20) dataset, it outperformed the previous state-of-the-art by a significant 5.3 mIoU points.
- Comparison to Supervised Models: Despite being training-free, CASS outperformed CLIP-DINOiser—a model that utilizes additional training data and fine-tuning—by 4.1 mIoU points.
- Qualitative Analysis: Visualizations demonstrate that CASS produces significantly cleaner and more unified masks compared to baselines like NACLIP and ProxyCLIP. It effectively respects physical object boundaries, ensuring that complex objects like trucks or animals are segmented as single entities rather than disconnected patches.
Conclusion
CASS demonstrates that the limitations of CLIP in local spatial understanding can be overcome through intelligent, training-free distillation of structural priors from foundation models. By treating attention as a spectral graph, CASS provides a scalable and robust solution for open-vocabulary semantic segmentation that avoids the pitfalls of fine-tuning and catastrophic forgetting. This approach sets a new high bar for training-free methods in the field.
Summary updated