Cross-level Attention with Overlapped Windows for Camouflaged Object Detection

Jiepan Li, Fangxiao Lu, Nan Xue, Zhuohong Li, Hongyan Zhang, Wei HearXiv 2023 · OpenReview

TL;DR

This paper introduces OWinCA, a novel attention mechanism that explicitly guides low-level features with high-level semantic information to improve camouflaged object detection. Their proposed OWinCANet achieves state-of-the-art performance by effectively enhancing the discriminability of camouflaged objects, which are notoriously difficult to detect due to their environmental blending.

What Problem Does This Paper Address?

Camouflaged objects are masters of disguise, blending seamlessly with their surroundings by mimicking local color and texture. This makes them incredibly challenging to detect using standard computer vision techniques. While existing methods leverage high-level semantic features to understand the "what" of an object, they often struggle to retain and utilize the fine-grained, high-resolution details present in low-level features, which are crucial for distinguishing these camouflaged targets. The core problem is bridging the gap between abstract semantic understanding and precise, detailed localization for these elusive objects.

Methods

The paper proposes an Overlapped Window Cross-level Attention (OWinCA) mechanism. The key idea is to use the most abstract, highest-level features from a backbone network (like a Vision Transformer) to explicitly guide and enhance the more detailed, lower-level features.

Here's how it works:

  • Cross-Level Guidance: OWinCA takes feature maps from different levels of a backbone network (e.g., the highest-level $F_4$ and a lower-level $F_i$).
  • Overlapped Window Partitioning: Instead of processing entire feature maps or using non-overlapping windows, OWinCA partitions local regions (windows) from both the high-level and low-level feature maps. Crucially, these windows overlap, which helps maintain global context and prevent information loss that can occur with strictly partitioned windows.
  • Multi-Head Attention: Within these corresponding window pairs, a multi-head attention mechanism is applied. This allows the semantic information from the high-level window to be directly injected into the low-level window.
  • Residual Connection: A residual connection with a learnable weight is used to combine the enhanced low-level features with the original low-level features, ensuring that important details are preserved while being refined.

The authors then build a simple network, OWinCANet, that uses this OWinCA module to enhance all lower-level features using the highest-level features. These enhanced multi-level features are then fused and passed through a convolutional classifier to produce the final detection map.

Datasets

The proposed method was evaluated on three large-scale camouflaged object detection datasets:

  • CAMO: Contains 1,250 images.
  • COD10K: Contains 78 camouflaged categories with 3,040 training and 2,026 test images.
  • NC4K: A larger dataset with 4,121 images.

The training set was formed by combining the training images from CAMO and COD10K.

Key Insights and Ideas

  • Low-Level Enhancement is Key: The paper argues that for camouflaged object detection, enhancing low-level features is more critical than simply fusing them with high-level features. This is because camouflage primarily affects the fine details and textures that low-level features capture.
  • Explicit Semantic Guidance: Directly using high-level semantics to guide low-level feature learning, rather than implicit fusion, leads to better discriminability of camouflaged objects.
  • Overlapping Windows Prevent Information Loss: The use of overlapping windows in the attention mechanism is crucial for maintaining contextual coherence and preventing the loss of global information, which is a common issue with non-overlapping or strictly partitioned windows.
  • Simplicity and Effectiveness: The OWinCANet is designed to be a concise and efficient network, demonstrating that a focused attention mechanism can yield significant performance gains without excessive complexity.

Key Results

  • State-of-the-Art Performance: OWinCANet significantly outperforms existing state-of-the-art (SOTA) methods on all three benchmark datasets (CAMO, COD10K, NC4K) across standard evaluation metrics like Structure-measure ($S_\alpha$), E-measure ($E_\phi$), F-measure ($F_\beta$), and Mean Absolute Error ($M$).
  • Significant Improvements: For example, on the CAMO dataset, OWinCANet showed improvements of 1.1% in $S_\alpha$, 2.4% in $E_\phi$, and 4.1% in $F_\beta$ compared to the UEDG method, while reducing $M$ by 1%.
  • Effectiveness of OWinCA: Ablation studies confirmed that the OWinCA module itself contributes substantially to the performance gains, showing significant improvements across all metrics when added to the baseline.
  • Window Size Optimization: The paper found that an adaptive window size strategy, rather than a fixed one, yielded the best results, with {8, 4, 2} being selected as the optimal configuration for guiding features from layer 4 to layers 1, 2, and 3 respectively.
  • Computational Efficiency: The proposed OWinCA mechanism is computationally more efficient than traditional non-local cross-level attention methods.

Limitations and Future Work

  • Guidance Strategy: While the paper demonstrates that using the highest-level features for guidance is optimal, they acknowledge that other guidance strategies (e.g., using intermediate layers or progressive guidance) were explored, with the highest-level guidance proving most effective. The paper suggests that exploring more sophisticated guidance strategies could be a future direction.
  • Generalizability: The authors believe that the OWinCA mechanism, with its focus on cross-level semantic guidance and overlapped windows, could be beneficial for other computer vision tasks beyond camouflage detection, suggesting it as a promising avenue for future research.
  • Computational Cost Analysis: While OWinCA is shown to be more efficient than non-local attention, the paper does not provide absolute computational costs (e.g., FLOPs) but rather a comparative analysis based on window partitioning.

Summary updated

Abstract

Camouflaged objects adaptively fit their color and texture with the environment, which makes them indistinguishable from the surroundings. Current methods revealed that high-level semantic features can highlight the differences between camouflaged objects and the backgrounds. Consequently, they integrate high-level semantic features with low-level detailed features for accurate camouflaged object detection (COD). Unlike previous designs for multi-level feature fusion, we state that enhancing low-level features is more impending for COD. In this paper, we propose an overlapped window cross-level attention (OWinCA) to achieve the low-level feature enhancement guided by the highest-level features. By sliding an aligned window pair on both the highest- and low-level feature maps, the high-level semantics are explicitly integrated into the low-level details via cross-level attention. Additionally, it employs an overlapped window partition strategy to alleviate the incoherence among windows, which prevents the loss of global information. These adoptions enable the proposed OWinCA to enhance low-level features by promoting the separability of camouflaged objects. The associated proposed OWinCANet fuses these enhanced multi-level features by simple convolution operation to achieve the final COD. Experiments conducted on three large-scale COD datasets demonstrate that our OWinCANet significantly surpasses the current state-of-the-art COD methods.
BibTeX
@misc{li2023cross,
  author = {Jiepan Li and Fangxiao Lu and Nan Xue and Zhuohong Li and Hongyan Zhang and Wei He},
  title = {{Cross-level Attention with Overlapped Windows for Camouflaged Object Detection}},
  year = {2023},
  eprint = {2311.16618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.16618},
}
Figure