TL;DR
This paper introduces Referring Camouflaged Object Detection (Ref-COD), a novel computer vision task that uses easily obtainable, prominent ("salient") images of an object to locate and segment its hidden, camouflaged counterparts. To support this task, the authors introduce the large-scale R2C7K dataset and propose R2CNet, a dual-branch framework that leverages common target representations to guide the segmentation process, significantly outperforming standard, target-agnostic camouflage detection models.
What Problem Does This Paper Address?
Standard Camouflaged Object Detection (COD) algorithms aim to find all objects blended into a background. However, in real-world scenarios—such as an explorer searching for a specific rare animal or a drone hunting for a particular vehicle—we only care about finding a specified target.
While reference-based segmentation exists in other domains (like Few-Shot Segmentation or Referring Expression Segmentation), applying them to camouflaged scenes is bottlenecked by data collection. Annotating pixel-level masks for rare camouflaged images or writing highly detailed textual descriptions is incredibly labor-intensive.
This paper addresses this bottleneck by asking a clever question: Can we use readily available, clean internet photos where the target object stands out clearly (salient images) to teach a model what to look for in a completely different, camouflaged setting?
Methods
The authors develop R2CNet, a dual-branch network designed to turn an aimless background-filtering task into an explicit target-matching task.
- The Reference Branch: This branch takes a small set of salient reference images containing the target object class. It passes them through a pre-trained Salient Object Detection (SOD) network (specifically, ICON) and applies a Masked Average Pooling (MAP) function. This filters out the reference backgrounds, leaving a clean, category-specific embedding vector ($E$) representing the target's common visual traits.
- The Segmentation Branch: This branch processes the query camouflaged image through a standard backbone (ResNet-50) to extract multi-scale visual features.
- Referring Mask Generation (RMG) Module: Because a salient object looks very different from a camouflaged one, the RMG module injects spatial coordinates and uses an affine transformation to align the reference embedding with the query features. It then uses a Convolutional LSTM to fuse features across scales and applies dynamic convolution (Target Matching) to generate a pixel-level prior heatmap mask ($H^m$).
- Referring Feature Enrichment (RFE) Module: This module uses the prior mask to guide multi-scale feature interaction via a cross-scale path, highlighting the target object while suppressing background distractors before the final convolutional decoder outputs the binary segmentation mask.
Datasets
The authors assembled a new large-scale benchmark dataset named R2C7K, which contains 6,615 images covering 64 object categories. It is split into two distinct subsets:
- Camo-subset (5,015 images): Contains camouflaged objects, primarily adapted from the popular COD10K and NC4K datasets. Images containing multiple types of camouflaged objects were re-annotated to isolate only the specified category.
- Ref-subset (1,600 images): Contains clean, high-contrast, salient examples of the same 64 categories (exactly 25 images per category), sourced from copyright-free platforms like Flickr and Unsplash.
Key Insights and Ideas
- Bridging SOD and COD: The core "aha!" moment is realizing that Salient Object Detection and Camouflaged Object Detection are two sides of the same visual perception coin. Advanced SOD models can act as excellent, zero-cost feature extractors to define what an object looks like, which can then directly guide a COD model on where to look.
- Mitigating Domain Shift: Salient objects and camouflaged objects of the same category have massive variances in appearance, lighting, and texture. The RMG module successfully bridges this gap by treating the reference embedding as a dynamic kernel, transforming the problem into a cross-domain matching game.
- Plug-and-Play Generality: The Ref-COD paradigm is architecture-agnostic. The authors successfully retrofitted the reference branch onto 7 different state-of-the-art COD models, proving that target-awareness consistently boosts the performance of any underlying camouflage detector.
Key Results
- Baseline Comparison: R2CNet significantly outperformed its standard COD baseline on the R2C7K dataset. It improved the weighted F-measure ($wF$) from 0.604 to 0.669 and reduced the Mean Absolute Error ($M$) from 0.044 to 0.036.
- SOTA Enhancement: When integrated into 7 top-tier COD models (including PFNet, SINetV2, and DGNet), the Ref-COD variants consistently beat their original counterparts across all metrics.
- Reference Scaling: Ablation studies demonstrated that increasing the number of reference images ($K$) from 1 to 5 steadily improves performance (see Figure 10 in the paper). More reference images allow the model to extract a more robust, generalized representation that is less affected by individual sample differences.
Limitations and Future Work
- The Presence Assumption: The current framework assumes that the object type shown in the reference images is always present in the camouflaged query image. The model is not currently trained to output an empty mask if the referred object is entirely absent from the scene.
- Expanding Reference Modalities: While using salient images is highly efficient, future work could explore multi-modal references, combining text prompts (e.g., CLIP embeddings) or speech with image references to give users more flexibility.
- Task Extension: The authors suggest extending Ref-COD to simpler downstream tasks like visual question answering (VQA), where a user might only need a quick decision or confirmation rather than a computationally heavy pixel-level mask.
Summary updated