mlsanityData to 14 Oct 2026

First RAG, Second SEG: A Training-Free Paradigm for Camouflaged Object Detection

arXiv 2508.15313 ↗First posted 21 Aug 2025cs.CV cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Camouflaged object detection (COD) poses a significant challenge in computer vision due to the high similarity between objects and their backgrounds. Existing approaches often rely on heavy training and large computational resources. While foundation models such as the Segment Anything Model (SAM) offer strong generalization, they still struggle to handle COD tasks without fine-tuning and require high-quality prompts to yield good performance. However, generating such prompts manually is costly and inefficient. To address these challenges, we propose First RAG, Second SEG (RAG-SEG), a training-free paradigm that decouples COD into two stages: Retrieval-Augmented Generation (RAG) for generating coarse masks as prompts, followed by SAM-based segmentation (SEG) for refinement. RAG-SEG constructs a compact retrieval database via unsupervised clustering, enabling fast and effective feature retrieval. During inference, the retrieved features produce pseudo-labels that guide precise mask generation using SAM2. Our method eliminates the need for conventional training while maintaining competitive performance. Extensive experiments on benchmark COD datasets demonstrate that RAG-SEG performs on par with or surpasses state-of-the-art methods. Notably, all experiments are conducted on a personal laptop, highlighting the computational efficiency and practicality of our approach. We present further analysis in the Appendix, covering limitations, salient object detection extension, and possible improvements. textcolorblue Code: https://github.com/Lwt-diamond/RAG-SEG.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 43 references that are in the map. First posted on arXiv 21 Aug 2025.

Builds on

19 of 43 references.

References · 19

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2023Segment Anythingcited by 8,234
  5. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  6. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
  7. 2017Structure-measure: A New Way to Evaluate Foreground Mapscited by 480
  8. 2021Anabranch Network for Camouflaged Object Segmentationcited by 227
  9. 2014The Secrets of Salient Object Segmentationcited by 200
  10. 2021Simultaneously Localize, Segment and Rank the Camouflaged Objectscited by 198
  11. 2021Camouflaged Object Segmentation with Distraction Miningcited by 151
  12. 2023Feature Shrinkage Pyramid for Camouflaged Object Detection with Transformerscited by 87
7 more
  1. 2021Context-aware Cross-level Fusion Network for Camouflaged Object Detectioncited by 86
  2. 2022Source-free Depth for Object Pop-outcited by 52
  3. 2023Advances in Deep Concealed Scene Understandingcited by 47
  4. 2021Fast Camouflaged Object Detection via Edge-based Reversible Re-calibration Networkcited by 42
  5. 2022Boosting Camouflaged Object Detection with Dual-Task Interactive Transformercited by 24
  6. 2023CamoDiffusion: Camouflaged Object Detection via Conditional Diffusion Modelscited by 21
  7. 2024Leveraging Hallucinations to Reduce Manual Prompt Dependency in Promptable Segmentationcited by 20

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024SAM-COD: SAM-guided Unified Framework for Weakly-Supervised Camouflaged Object Detection
  2. 2026Discover, Segment, and Select: A Progressive Mechanism for Zero-shot Camouflaged Object Segmentation
  3. 2024When SAM2 Meets Video Camouflaged Object Segmentation: A Comprehensive Evaluation and Adaptation
  4. 2025ST-SAM: SAM-Driven Self-Training Framework for Semi-Supervised Camouflaged Object Detection
  5. 2025An Instance-Aware Prompting Framework for Training-free Camouflaged Object Segmentation
  6. 2026LAD-COD: Language-Aligned Dense Perception for Camouflaged Object Detection
  7. 2025Improving SAM for Camouflaged Object Detection via Dual Stream Adapters
  8. 2025Debate-Enhanced Pseudo Labeling and Frequency-Aware Progressive Debiasing for Weakly-Supervised Camouflaged Object Detection with Scribble Annotations