Abstract
Foreground segmentation tasks, such as salient object detection, camouflaged object detection, and forgery detection, are traditionally treated as isolated problems requiring specialized, bespoke architectures. We present FOCUS (Foreground ObjeCts Universal Segmentation), a unified framework designed to handle five distinct foreground segmentation tasks using a single architecture. By integrating structural edge information and a novel CLIP-based distillation strategy, FOCUS outperforms specialized models across 13 different datasets. Our approach leverages the inherent object-awareness of self-supervised backbones and introduces a multi-modal refinement process to achieve superior boundary accuracy.
Introduction
In computer vision, "foreground segmentation" is often fragmented into siloed problems. Researchers typically design specific architectures for Salient Object Detection (SOD), Camouflaged Object Detection (COD), Shadow Detection (SD), Defocus Blur Detection (DBD), and Forgery Detection (FD). This fragmentation leads to a lack of unification and often neglects the critical relationship between an object and its background—a context essential for tasks like camouflage detection where the two are intentionally similar.
Methods
FOCUS moves away from task-specific "hacks" in favor of a robust, generalized architecture that utilizes multi-scale and multi-modal features.
Core Components
- DINOv2 Backbone: The model utilizes DINOv2, whose self-supervised features provide a powerful localization prior and strong "object-awareness" even without explicit labels.
- Ground Queries (GQ): Following the philosophy of DETR and Mask2Former, FOCUS employs two distinct learned tensors representing the foreground and background. These queries interact with image features via masked attention to delineate the "Mask of Interest" (MoI).
- Edge Enhancer: To preserve fine structural details, a ResNet-based STEM and Canny edge detection extract edge features. These are injected back into the main feature stream using a deformable attention mechanism to ensure sharp object boundaries.
- CLIP Refiner: This novel component uses the multi-modal power of CLIP during training. The model overlays the predicted mask onto the image and compares it against text prompts (e.g., "It's an image of salient objects without background") in CLIP’s feature space. This contrastive strategy distills semantic knowledge into the segmentation head. Notably, the CLIP module is discarded during inference to maintain efficiency.
Key Insights and Ideas
- Joint Foreground-Background Prediction: Instead of simple binary classification, FOCUS treats foreground and background segmentation as independent tasks. Combining their probability maps during inference significantly reduces false positives.
- Zero-Shot Priors: Visualizing backbone features via PCA reveals that DINOv2 identifies object shapes early in training. Initializing attention masks with these features provides a superior starting point compared to random initialization.
- Semantic Refinement: The CLIP Refiner demonstrates that high-level semantic descriptions can improve low-level pixel boundaries by pruning misclassified pixels near edges.
Experimental Results
FOCUS was evaluated on 13 datasets across 5 tasks, consistently achieving state-of-the-art (SOTA) results:
- Shadow Detection: On the ISTD dataset, FOCUS achieved a 0.98 Balanced Error Rate (BER), surpassing the previous SOTA of 1.11.
- Forgery Detection: In the CASIA-1.0 dataset, it reached an F1 score of 0.892, a massive leap from the previous best of 0.654.
- Camouflage Detection: FOCUS outperformed specialized models like BiRefNet on the challenging CAMO dataset ($S_m$ of .912 vs .904).
Conclusion
FOCUS establishes a new benchmark for universal foreground segmentation. While it currently requires task-specific training, its unified architecture proves that a single model can excel across diverse visual domains. Future work will explore extending this framework to video segmentation and optimizing the model for mobile-friendly backbones without sacrificing the accuracy provided by large-scale self-supervised models.
Summary updated