Large Model Based Referring Camouflaged Object Detection

Shupeng Cheng, Ge-Peng Ji, Pengda Qin, Deng-Ping Fan, Bowen Zhou, Peng XuarXiv 2023 · DOI

Introduction

Camouflaged Object Detection (COD) is a challenging computer vision task that involves identifying objects seamlessly blended into their environment, such as a leaf-mimicking insect or a predator hidden in tall grass. Referring COD (Ref-COD) elevates this challenge by requiring the model to locate a specific camouflaged object based on a natural language prompt (e.g., "the bird on the fence post").

Despite recent progress, two primary hurdles remain in Ref-COD:

  1. The Perception Gap: Camouflaged objects are designed to be indistinguishable from their surroundings. Standard vision models often fail to detect the subtle boundaries and disruptions in texture that reveal a hidden target.
  2. The Alignment Gap: Short, abstract text prompts (like the single word "ant") often lack the descriptive depth necessary for a model to know which visual features to prioritize, especially when the target has never been seen during training.
The alignment gap: a simple text prompt like "ant" requires complex reasoning about shape, color, and context to identify a camouflaged target.

Humans overcome these gaps by utilizing prior knowledge—we understand what an animal's shape should look like and can reason about how lighting or texture might reveal its presence. This paper introduces MLKG (Multi-Level Knowledge-Guided), the first framework to bridge these gaps by leveraging the reasoning capabilities of Multimodal Large Language Models (MLLMs).

Methodology: The MLKG Framework

The MLKG framework decomposes the Ref-COD task into two perspectives: perceiving the target and perceiving the scene. It consists of three main components: the Knowledge Factory, the Knowledge Injector, and a SAM-based visual architecture.

The Knowledge Factory

Instead of relying on raw, sparse text prompts, MLKG uses an MLLM (specifically LLaVA-1.5) to generate rich, descriptive "knowledge" about the target and its environment. By using six hand-crafted prompts, the system extracts seven distinct types of knowledge (K#a through K#g). These range from high-level target descriptions (e.g., morphological features) to fine-grained scene details such as color, texture, shape, and lighting conditions. This process transforms a simple label into a comprehensive "search image" for the model.

Knowledge Injector and Visual Architecture

The system utilizes the Segment Anything Model (SAM) as its visual backbone. To overcome SAM's natively shallow text-to-image alignment, MLKG introduces a Knowledge Injector. This component employs a weighted fusion strategy to deeply align MLLM-generated knowledge with SAM’s visual features. For any given image, the injector calculates which attributes are most relevant—for instance, if a target is primarily hidden by its texture, the model assigns higher weight to the "texture" knowledge description to guide the segmentation process.

The MLKG architecture: Multi-level knowledge is extracted via an MLLM and injected into a SAM-based visual encoder/decoder pipeline using LoRA for efficient tuning.

Experimental Results

The authors evaluated MLKG on the R2C7K benchmark, a large-scale dataset for Referring COD containing nearly 5,000 images. The model demonstrated state-of-the-art (SOTA) performance, significantly outperforming existing methods. Specifically, MLKG achieved a Structure-measure ($S_m$) of 0.910, a substantial leap from the previous best of 0.840. It also reduced the Mean Absolute Error (M) to 0.019, representing a nearly 35% improvement in precision.

Zero-Shot Generalization

A key strength of MLKG is its ability to generalize to unseen data. When tested on standard uni-modal COD datasets (COD10K, CAMO, CHAMELEON, and NC4K) without specific training on those sets, MLKG consistently ranked among the top performers. This suggests that the model is not merely memorizing a specific dataset but is using the "intrinsic intelligence" of the MLLM to reason about camouflaged scenes in a robust, generalizable way.

Conclusion and Future Work

MLKG represents a significant step forward in Referring Camouflaged Object Detection by treating language as an inductive bridge. By expanding simple prompts into multi-level descriptive knowledge, the model effectively mimics human-like reasoning to solve the perception and alignment gaps.

Future research directions include exploring the use of MLLM "latent spaces" rather than raw text strings to capture even richer information, and incorporating additional modalities like depth or motion (optical flow) to further enhance detection in complex, real-world environments. While the current pipeline is computationally intensive due to the use of large models like LLaVA and SAM, its performance sets a new benchmark for the field.

Summary updated

BibTeX
@misc{cheng2023large,
  author = {Shupeng Cheng and Ge-Peng Ji and Pengda Qin and Deng-Ping Fan and Bowen Zhou and Peng Xu},
  title = {{Large Model Based Referring Camouflaged Object Detection}},
  year = {2023},
  eprint = {2311.17122},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.17122},
}
Figure