Modality-Agnostic Prompt Learning for Multi-Modal Camouflaged Object Detection

Hao Wang, Jiqing Zhang, Xin Yang, Baocai Yin, Lu Jiang, Zetian Mi, Huibing WangarXiv 2026

TL;DR

This paper introduces a modality-agnostic prompt learning framework that adapts the Segment Anything Model (SAM) for multi-modal camouflaged object detection (COD) using arbitrary auxiliary inputs like depth, thermal, or polarization data. By shifting the focus from custom fusion architectures to a unified content-prompt interaction space, the method achieves state-of-the-art accuracy across multiple modalities with a fraction of the trainable parameters (just 2.73M) required by existing approaches.

What Problem Does This Paper Address?

Camouflaged Object Detection (COD) aims to segment objects that blend seamlessly into their backgrounds. While RGB-only models frequently fail in highly challenging environments, incorporating auxiliary visual modalities—such as depth (3D layout), thermal (heat signatures), or polarization (material properties)—can drastically improve robustness.

However, existing multi-modal COD methods typically rely on modality-specific architectures or heavily customized fusion strategies. This makes them rigid, difficult to scale to new sensor types, and poor at cross-modal generalization. The authors address this limitation by asking a fundamental question: Can we design a single, parameter-efficient framework that converts arbitrary auxiliary modalities into SAM-compatible prompt representations without structural redesign?

Methods

The authors propose a lightweight, parameter-efficient fine-tuning framework that keeps the heavy foundation models frozen while learning how to prompt them effectively.

Fig. 2: Overview of our proposed framework. The framework adopts a dual-stream architecture where RGB and auxiliary modalities are processed via a frozen SAM image encoder and a PVT encoder, respectively, to construct the content domain through feature summation. In Content-Prompt Interaction Module (CPIM), a set of learnable parameters serves as the prompt domain prototype, interacting with the content domain to achieve synergy between data-driven and knowledge-driven representations. Finally, the enhanced content features, along with learnable auxi-tokens and SAM’s original tokens, are fed into the mask decoder, followed by a Mask Refine Module (MRM) to produce the final precise segmentation.

The architecture consists of several key innovations:

  1. Content Domain Construction: Features from a frozen SAM image encoder (RGB) and a frozen Pyramid Vision Transformer (PVT) encoder (auxiliary modality) are combined via simple element-wise addition to capture target-related spatial and semantic cues.
  2. Content-Prompt Interaction Module (CPIM): Instead of complex fusion networks, the model initializes a set of learnable "prompt prototypes" that act as a global knowledge base for camouflaged objects. A symmetric cross-attention mechanism drives bidirectional synergy between the data-driven content domain and this knowledge-driven prompt domain.
  3. Auxi-tokens: Learnable auxiliary tokens are introduced and concatenated with SAM's original tokens to increase representational flexibility.
  4. Mask Refine Module (MRM): To overcome SAM's inherent limitations in low-contrast environments, the MRM uses refined prompt features to modulate internal token-to-image attention and transposed convolution features, sharpening the final object boundaries.

Datasets

The model was independently and jointly evaluated across three distinct multi-modal settings:

  • RGB-Depth (RGB-D): Evaluated using standard benchmarks including CAMO, COD10K, NC4K, and CHAMELEON.
  • RGB-Polarization (RGB-P): Evaluated on the PCOD-1200 dataset, the largest real-world camouflage dataset containing polarization information.
  • RGB-Thermal (RGB-T): Evaluated on the VIAC dataset, which features 1,500 high-quality image pairs of diverse camouflage types (e.g., plant camouflage, nets, suits).
  • Cross-Task Generalization: The framework was also tested on multi-modal Salient Object Detection (SOD) datasets (VT5000, VT1000, VT821).

Key Insights and Ideas

  • Abstraction Over Fusion: Instead of engineering specific network branches for depth versus thermal data, treating auxiliary inputs as contextual modulators for a global "prompt prototype" space makes the network inherently modality-agnostic.
  • Extreme Parameter Efficiency: By keeping the core SAM and PVT backbones frozen, the framework achieves state-of-the-art results with only 2.73M trainable parameters.
  • Zero-Shot Cross-Modality Transfer: Because the prompt space is unified, a model trained on RGB-D can be evaluated directly on RGB-P or RGB-T data with minimal performance degradation, proving that the learned prompt mechanics are not tightly coupled to a single sensor type.

Key Results

  • State-of-the-Art Performance: The proposed method outperforms 15 general SOTA methods and 13 SAM-based fine-tuning approaches. On the massive COD10K (RGB-D) benchmark, it achieves top-tier metrics ($S_\alpha = 0.901$, $F_\beta^\omega = 0.863$). On PCOD-1200 (RGB-P), it reaches an $S_\alpha$ of 0.945 and $F_\beta^\omega$ of 0.924.
  • Efficiency vs. Performance: As illustrated below, the model achieves the highest $F_\beta^\omega$ scores across multiple datasets while maintaining the lowest trainable parameter footprint compared to alternatives like DSAM (121.93M) or HQSAM (5.10M).
Performance vs. Trainable Parameters across different datasets
  • Qualitative Boundary Adherence: Visual evaluations demonstrate that the Mask Refine Module successfully extracts sharp, highly accurate boundaries even when objects share extreme textural similarities with their surroundings.
Fig. 3: Qualitative comparison of detection results on RGB-D and RGB-P camouflaged object detection datasets.

Limitations and Future Work

The primary limitation of the framework is its dependency on the quality of the auxiliary data. If an environment causes both the RGB sensor and the auxiliary sensor to fail simultaneously (e.g., a low-contrast scene where the auxiliary modality provides insufficient or noisy data), the model's performance degrades.

For future work, the authors plan to extend this modality-agnostic prompting mechanism into a unified multi-modal foreground segmentation framework that handles a broader array of tasks, including salient object detection (SOD) and shadow separation.

Summary updated

BibTeX
@misc{wang2026modality,
  author = {Hao Wang and Jiqing Zhang and Xin Yang and Baocai Yin and Lu Jiang and Zetian Mi and Huibing Wang},
  title = {{Modality-Agnostic Prompt Learning for Multi-Modal Camouflaged Object Detection}},
  year = {2026},
  eprint = {2604.12380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.12380},
}
Figure