Pre-train, Adapt and Detect: Multi-Task Adapter Tuning for Camouflaged Object Detection

Yinghui Xing, Dexuan Kong, Shizhou Zhang, Geng Chen, Lingyan Ran, Peng Wang, Yanning ZhangarXiv 2023

Abstract

Camouflaged object detection (COD), aiming to segment camouflaged objects which exhibit similar patterns with the background, is a challenging task. Most existing works are dedicated to establishing specialized modules to identify camouflaged objects with complete and fine details, while the boundary can not be well located for the lack of object-related semantics. In this paper, we propose a novel "pre-train, adapt and detect" paradigm to detect camouflaged objects. By introducing a large pre-trained model, abundant knowledge learned from massive multi-modal data can be directly transferred to COD. A lightweight parallel adapter is inserted to adjust the features suitable for the downstream COD task. Extensive experiments on four challenging benchmark datasets demonstrate that our method outperforms existing state-of-the-art COD models by large margins. Moreover, we design a multi-task learning scheme for tuning the adapter to exploit the shareable knowledge across different semantic classes. Comprehensive experimental results showed that the generalization ability of our model can be substantially improved with multi-task adapter initialization on source tasks and multi-task adaptation on target tasks.

Introduction

Camouflaged Object Detection (COD) presents a unique challenge in computer vision because targets are specifically evolved or designed to blend into their surroundings, sharing nearly identical textures, colors, and patterns. Current research in COD often suffers from two primary limitations. First, there is a lack of high-level semantics; models frequently rely on specialized modules for edge or texture detection but lack the broad semantic knowledge required to distinguish subtle boundaries in complex scenes. Second, existing methods typically ignore category relationships, treating all camouflaged objects as a single class and failing to exploit the shared "camouflage patterns" that might exist across different semantic categories, such as insects and birds.

Methodology: The "Pre-train, Adapt and Detect" Paradigm

To address these gaps, this work moves away from the traditional "train from scratch" approach, proposing a three-step paradigm:

  1. Pre-train: A large Vision Transformer (ViT) backbone, pre-trained on massive multi-modal data via the Uni-Perceiver framework, is utilized. This backbone is kept frozen during COD training to preserve its extensive semantic knowledge.
  2. Adapt: A lightweight, parallel ViT-Adapter is introduced to bridge the gap between general pre-training and the specific COD task. This module models spatial priors and performs feature interactions with the backbone while adding only a small fraction of trainable parameters (~8%).
  3. Detect: An UperNet detection head is employed to generate the final pixel-wise segmentation maps.
The proposed framework featuring multi-task adapter tuning.

A core innovation is the Multi-Task Adapter Tuning scheme. By dividing datasets into nine semantic sub-tasks (e.g., Amphibians, Insects, Birds), the model uses a two-stage training process: initializing the adapter on source tasks to learn shared knowledge, followed by fine-tuning on specific target groups.

Experimental Results

The proposed model was evaluated on four standard COD benchmarks (CAMO, COD10K, NC4K, and CHAMELEON) and five Salient Object Detection (SOD) datasets (DUTS, ECSSD, PASCAL-S, HKU-IS, and DUT-OMRON).

Performance vs. Model Parameters comparison.

Quantitative Performance

The model established new state-of-the-art (SOTA) results, outperforming 16 existing methods. On the COD10K-Test set, it improved the Structure measure ($S_\alpha$) by 1.7% and achieved a 33.3% reduction in Mean Absolute Error (MAE) compared to the previous best model, HitNet. Notably, the model achieves these results with high parameter efficiency, as shown in Figure 1, where it occupies the top-left quadrant of the performance-parameter trade-off.

Qualitative and Generalization Insights

Visual analysis confirms the model's ability to segment objects with extremely low contrast and complex structures where other models fail. Furthermore, multi-task experiments revealed high "transferability" between certain categories like Birds and Reptiles, suggesting that camouflage functions as a shared visual language across species. The model also demonstrated superior generalization by setting new records on SOD tasks.

Conclusion

The "Pre-train, Adapt and Detect" framework demonstrates that large-scale foundation models provide critical context for identifying camouflaged objects. While the multi-task approach is highly effective, future work may address potential "task interference" between highly dissimilar categories and explore applications in Video Camouflaged Object Detection (VCOD).

Summary updated

BibTeX
@misc{xing2023pre,
  author = {Yinghui Xing and Dexuan Kong and Shizhou Zhang and Geng Chen and Lingyan Ran and Peng Wang and Yanning Zhang},
  title = {{Pre-train, Adapt and Detect: Multi-Task Adapter Tuning for Camouflaged Object Detection}},
  year = {2023},
  eprint = {2307.10685},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.10685},
}
Figure