NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CGCOD: Class-Guided Camouflaged Object Detection

Chenxi Zhang, Qing Zhang, Jiayun Wu, Youwei Pang · DOI

TL;DR

This paper introduces "Class-Guided Camouflaged Object Detection" (CGCOD), a new task that leverages textual class information to improve the detection of objects that blend seamlessly into their surroundings. They propose a novel framework, CGNet, which uses a class prompt generator and a class-guided detector, and introduce a new dataset, CamoClass, to facilitate this research.

What Problem Does This Paper Address?

Camouflaged Object Detection (COD) is a challenging task because the objects of interest have very low contrast with their backgrounds, making them difficult to distinguish. Existing methods primarily rely on visual features, which are often insufficient to handle the variability and intricacy of camouflaged objects, leading to unstable perception and ambiguous segmentation results. This is exacerbated by factors like low contrast, diverse textures, and subtle appearance variations. The authors argue that current COD datasets lack explicit information beyond visual cues, hindering the development of more robust models. They propose that incorporating class-level textual information can provide a crucial semantic anchor to guide the detection process, improving accuracy and robustness.

Methods

The core of the paper is the CGNet framework, designed for the new CGCOD task. CGNet consists of two main components:

  • Class Prompt Generator (CPG): This module takes both image and class-level textual information as input. It uses a frozen CLIP visual encoder to extract multi-level visual features and a CLIP textual encoder to generate textual embeddings. These are then fused and aligned using a cross-modal multi-head attention (CMA) mechanism and a multi-level visual collaboration module (MVCM). The MVCM enriches features by aligning and enhancing them across different levels, ultimately producing a class-semantic prompt feature ($G_c$).
  • Class-Guided Detector (CGD): This component takes the image features and the class-semantic prompt feature ($G_c$) from the CPG. It employs a Semantics Consistency Module (SCM) to reduce false positives and negatives. The SCM uses a two-stage process: spatial localization to capture spatial information related to the prompt, and channel refinement to adaptively select channel information aligned with class semantics, thereby suppressing noise. This module aims to produce accurate segmentation by focusing on class-relevant information.

The authors also introduce a class-semantic guidance mechanism that acts as a bridge between the CPG and CGD, helping to reduce domain differences between visual and textual features.

Datasets

  • CamoClass: This is a newly introduced dataset specifically for the CGCOD task. It integrates samples from existing COD datasets (CAMO, COD10K, CHAMELEON, NC4K) and annotates each image with its corresponding class label. The dataset aims to provide rich visual and textual information for training and evaluating class-guided COD models. The class distribution is uneven, reflecting real-world scenarios.
  • Existing COD Datasets: CAMO, COD10K, CHAMELEON, and NC4K are used for evaluation.

Key Insights and Ideas

  • Textual Class Information is Crucial for COD: The paper strongly advocates that relying solely on visual features is insufficient for robust camouflaged object detection. Explicit textual class information acts as a powerful semantic anchor, guiding the model to focus on relevant features and suppress background noise.
  • CGCOD as a New Paradigm: The introduction of the CGCOD task itself is a significant contribution, shifting the focus from purely visual analysis to a multi-modal approach that leverages semantic knowledge.
  • Plug-and-Play CPG: The Class Prompt Generator (CPG) is designed to be plug-and-play, meaning it can be used to enhance existing COD detectors, demonstrating its versatility and the value of class-guided features.
  • Multi-level Feature Fusion is Key: The MVCM highlights the importance of integrating information from different feature levels (low-level and high-level) to achieve fine-grained segmentation.

Key Results

  • Superior Performance: CGNet consistently outperforms state-of-the-art COD and RIS methods across four benchmark datasets, achieving significant performance advantages. On average, CGNet is 5.5% better than the second-best method.
  • CPG Enhances Existing Detectors: When used with existing detectors, the CPG improves their performance by substantial margins (e.g., 19.73% for SINet, 13.3% for BGNet).
  • Generalization Capability: The model shows promising generalization ability, particularly on the "unseen classes" subset of CamoClass, indicating its potential for zero-shot learning.
  • Qualitative Improvements: Visual comparisons demonstrate CGNet's ability to accurately segment challenging camouflaged objects in various difficult scenarios, including heavy occlusion, structural degradation, and edge similarity, where other methods struggle.

Limitations and Future Work

  • Parameter Count: The addition of the CLIP encoder (component "D") significantly increases the model's parameter count.
  • Computational Load: While the CLIP model is frozen, the overall framework might still have a higher computational demand compared to purely visual models.
  • Future Work: The authors suggest that their CGCOD research provides valuable insights and aims to inspire further deep COD studies incorporating multi-modal auxiliary information. The plug-and-play nature of the CPG also opens avenues for exploring its integration with a wider range of COD architectures.

Summary updated

BibTeX
@inproceedings{zhang2024cgcod,
  author = {Chenxi Zhang and Qing Zhang and Jiayun Wu and Youwei Pang},
  title = {{CGCOD: Class-Guided Camouflaged Object Detection}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3746027.3755408},
}
Figure