FCL-COD: Weakly Supervised Camouflaged Object Detection with Frequency-Aware and Contrastive Learning

Jingchen Ni, Quan Zhang, Dan Jiang, Keyu Lv, Ke Zhang, Chun Yuan

TL;DR

FCL-COD introduces a novel weakly supervised framework for camouflaged object detection (COD) that leverages frequency-domain features and contrastive learning to overcome the limitations of foundation models like SAM. By integrating frequency-aware adaptation and gradient-guided contrastive learning, it generates high-quality pseudo-labels from bounding box prompts to train a lightweight, boundary-sensitive detector. Remarkably, this weakly supervised approach outperforms existing state-of-the-art weak methods and even surpasses some fully supervised models.

What Problem Does This Paper Address?

Camouflaged Object Detection (COD) aims to identify and segment objects that seamlessly blend into their surroundings, such as insects, sea creatures, or predators. While fully supervised deep learning models excel at this, they require labor-intensive, pixel-level mask annotations. Weakly Supervised COD (WSCOD) uses cheaper annotations like bounding boxes, but typically suffers from severe performance drops.

Even the powerful Segment Anything Model (SAM) struggles in camouflage scenarios. As shown in Figure 1, standard SAM-based approaches frequently suffer from false positives on non-camouflaged objects, partial/localized activations, extreme over-segmentation, or blurry boundaries due to the high visual similarity between the foreground and background.

Figure 1. Comparison with the baseline,where (a) previous SAM- based method and (b) shows our proposed FCL-COD. By in- corporating frequency awareness and contrastive learning, FCL- COD avoids the baseline’s drawbacks of a1) responses to non- camouflaged objects, a2) localized responses, a3) extreme re- sponses, and a4) coarse boundaries.

Methods

The authors propose FCL-COD, a two-stage framework designed to inject camouflage-specific knowledge into foundation models and extract refined object boundaries.

Figure 2. FCL-COD Pipeline Overview. Within a triadic teacher–student architecture, frequency-aware low-rank adaptation and gradient- aware contrastive learning jointly suppress the localized and extreme activations that plague earlier approaches. In the subsequent re- training phase, multi-scale frequency-aware attention is injected to excavate crisper, more delicate camouflaged boundaries.

Stage 1: Pseudo-Label Generation via Triadic Teacher-Student Self-training

The model adapts SAM using three encoders (anchor, student, and teacher). To fix SAM's blind spots in camouflage scenes, they introduce two key components:

  • Frequency-aware Low-rank Adaptation (FoRA): Standard LoRA struggles to capture subtle camouflage textures. FoRA extends LoRA by passing low-rank features through a spatial enhancement layer (multi-scale convolutions) and a frequency modulation layer (Fourier Transform), injecting critical frequency-domain texture priors directly into SAM.
  • Gradient-aware Contrastive Learning (GCL): To prevent partial or extreme responses, the authors use Grad-CAM on the teacher network to identify ambiguous background regions (hard negatives). A contrastive loss then pushes these easily confused background representations away from the foreground representations in high-dimensional space.

Stage 2: Lightweight Detector Training

Using the high-quality pseudo-labels generated in Stage 1, they train a lightweight encoder-decoder model for efficient, real-time inference. This detector is equipped with a Multi-Scale Frequency-aware Attention (MSFA) module, which uses a Tri-Channel Attention mechanism to cross-gate multi-scale spatial and frequency features, ensuring sharp and accurate object boundaries.

Datasets

The framework was evaluated on four widely recognized COD benchmarks:

  • CAMO: 1,250 camouflaged and 1,250 non-camouflaged images.
  • CHAMELEON: 76 finely annotated images.
  • COD10K: A large-scale dataset containing 5,066 camouflaged, 3,000 background, and 1,934 non-camouflaged images.
  • NC4K: 4,121 camouflaged images collected from online sources.

To demonstrate generalization, the authors also tested FCL-COD on Salient Object Detection (SOD) datasets, including ECSSD, DUT-O, HKU-IS, and DUTS-TE.

Key Insights and Ideas

  • Frequency Domain is Essential for Camouflage: Standard spatial features fail when an object perfectly matches its background's color and pattern. Explicitly modeling mid-to-high frequency components (via FoRA and MSFA) allows the model to detect the subtle boundary discontinuities that break camouflage.
  • Hard Negative Mining via Gradients: Instead of treating all background pixels equally, using Grad-CAM to weight the background mask forces the contrastive learning objective to focus strictly on the background regions most prone to being confused with the object.
  • Foundation Models Need Domain-Specific Tuning: While SAM is an excellent general segmenter, its zero-shot performance on camouflaged objects is poor. Lightweight, frequency-aware parameter-efficient fine-tuning (PEFT) is highly effective at unlocking its potential for specialized tasks.

Key Results

  • Surpassing Fully Supervised Methods: On the CAMO dataset, FCL-COD achieved a Mean Absolute Error (MAE) of 0.050, outperforming fully supervised methods like ZoomNet (0.066) and CamoFormer-R (0.067).
  • State-of-the-Art in WSCOD: It consistently beat the previous best weakly supervised method, SAM-COD, across all datasets (e.g., boosting the E-measure ($E_m$) from 0.914 to 0.934 on COD10K).
  • Ablation Validation: Qualitative ablation results (Figure 6) demonstrate how progressively adding FoRA and GCL eliminates false positives and refines incomplete object structures into complete, well-defined masks.
Figure 6. Qualitative ablation study of each component.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{ni2026fcl,
  author = {Jingchen Ni and Quan Zhang and Dan Jiang and Keyu Lv and Ke Zhang and Chun Yuan},
  title = {{FCL-COD: Weakly Supervised Camouflaged Object Detection with Frequency-Aware and Contrastive Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=w60ni0LGer},
}
Figure