Improving SAM for Camouflaged Object Detection via Dual Stream Adapters
Jiaming Liu, Linghe Kong, Guihai Chen
TL;DR
The paper addresses camouflaged object detection by extending Segment Anything Model (SAM) with dual-stream adapters for RGB-D inputs, enabling complementary semantic and structural cues to guide segmentation. It introduces bidirectional knowledge distillation and mixed prompt embedding to harmonize RGB and depth representations and prompts while keeping the SAM backbone largely intact. The approach achieves state-of-the-art or competitive results on four COD benchmarks, demonstrating strong gains in both RGB-only and RGB-D settings and showing the value of task-specific adapters within a visual foundation model. This has practical implications for robust COD in challenging environments and suggests adaptable pathways for multimodal extensions of foundation models.
Abstract
Segment anything model (SAM) has shown impressive general-purpose segmentation performance on natural images, but its performance on camouflaged object detection (COD) is unsatisfactory. In this paper, we propose SAM-COD that performs camouflaged object detection for RGB-D inputs. While keeping the SAM architecture intact, dual stream adapters are expanded on the image encoder to learn potential complementary information from RGB images and depth images, and fine-tune the mask decoder and its depth replica to perform dual-stream mask prediction. In practice, the dual stream adapters are embedded into the attention block of the image encoder in a parallel manner to facilitate the refinement and correction of the two types of image embeddings. To mitigate channel discrepancies arising from dual stream embeddings that do not directly interact with each other, we augment the association of dual stream embeddings using bidirectional knowledge distillation including a model distiller and a modal distiller. In addition, to predict the masks for RGB and depth attention maps, we hybridize the two types of image embeddings which are jointly learned with the prompt embeddings to update the initial prompt, and then feed them into the mask decoders to synchronize the consistency of image embeddings and prompt embeddings. Experimental results on four COD benchmarks show that our SAM-COD achieves excellent detection performance gains over SAM and achieves state-of-the-art results with a given fine-tuning paradigm.
