TL;DR
dinov3.seg is a dedicated open-vocabulary semantic segmentation framework built on top of the dinov3.txt vision-language foundation model. By introducing dual-stage feature refinement and ensembling global and local text embeddings, it overcomes the spatial blurring common in CLIP-based models to achieve state-of-the-art pixel-level classification accuracy across complex, cluttered scenes.
What Problem Does This Paper Address?
Open-Vocabulary Semantic Segmentation (OVSS) requires models to segment objects belonging to arbitrary, unseen categories defined only by text prompts at inference time. Most existing OVSS methods rely on CLIP-style vision-language models (VLMs). However, CLIP is trained using a global contrastive objective (matching whole images to text descriptions), which inherently discards fine-grained spatial details and local boundaries.
Consequently, CLIP-based segmentation models often produce noisy, blurry boundaries and struggle in cluttered scenes. While self-supervised models like DINO preserve excellent spatial structure, adapting them to open-vocabulary text alignment without losing their dense spatial precision remains a major challenge.
Methods
The authors introduce dinov3.seg, a task-specific segmentation architecture tailored to the dinov3.txt backbone (which aligns a text encoder to a frozen DINOv3 visual model).
Its novel architecture consists of three key components:
- Text Embedding Ensemble: Instead of using only local text embeddings, the model extracts and ensembles both global text embeddings (aligned with the VLM's
[CLS]token) and local text embeddings (aligned with patch features) to capture both scene-level context and fine-grained object details. - Dual-Stage Refinement:
- Early Refinement: Uses a transformer-based module (AnyUp) to clean up and enhance dense visual features before they interact with text embeddings, preserving original VLM alignment while sharpening boundaries.
- Late Refinement: Refines the resulting image-text correlation maps using a Swin Transformer-based Spatial Refinement block (guided by a Segment Anything Model (SAM) semantic prior encoder) and a Class Refinement block to resolve inter-class ambiguities.
- Local-Global Aggregation (LGA) Inference: A sliding-window strategy that processes overlapping high-resolution sub-images alongside the full image, merging them to retain both local detail and global coherence.
Datasets
- Training: COCO-Stuff (118K images).
- Evaluation: Evaluated across five standard OVSS benchmarks: ADE20K (150-class and 847-class variants), Pascal Context (59-class and 459-class variants), and Pascal VOC (20 classes).
Key Insights and Ideas
- Global + Local Text Matters: Combining global and local text embeddings provides complementary visual-semantic information. Global text embeddings capture structural parts and scene context, while local text embeddings focus on object-level appearance.
- Refine Early, Refine Late: Most prior works only refine the final similarity maps (late refinement). The authors show that cleaning up the raw visual features before cross-modal interaction (early refinement) prevents noise from propagating through the text-matching phase.
- DINO over CLIP for Dense Tasks: Leveraging a backbone explicitly optimized for local correspondence (DINOv3) provides a fundamentally better starting point for pixel-level tasks than globally contrastive models like CLIP.
Key Results
dinov3.segachieved the highest average mIoU (50.44) across all five benchmarks, outperforming top CLIP-based methods like CAT-Seg (47.60) and ESCNet (50.16).- The performance gains were most pronounced on massive, fine-grained vocabularies: it scored 20.09 mIoU on ADE20K-847 (+3.59 over SOTA) and 27.80 mIoU on Pascal Context-459.
- On unseen classes,
dinov3.segdemonstrated superior generalization, outperforming CAT-Seg by up to +4.87 mIoU on PC-459 and +5.90 mIoU on A-150 (based on textual similarity splits).
Limitations and Future Work
- Computational Overhead: Due to the large
dinov3.txtbackbone and the inclusion of the SAM Semantic Prior Encoder, the model has a high parameter count (1,178.2M parameters). - Inference Speed: While its GFLOPs (4,500.4) are lower than heavy diffusion-based models, its inference time (0.37s) is slightly slower than lighter architectures like CAT-Seg (0.22s).
- Future Direction: The authors suggest exploring knowledge distillation from the heavy Semantic Prior Encoder into a lighter module to reduce the overall computational footprint without sacrificing boundary precision.
Summary updated