Towards Stable Co-saliency Detection and Object Co-segmentation

Bo Li, Lv Tang, Senyun Kuang, Mofei Song, Shouhong Ding · DOI

Abstract

In this paper, we present a novel model for simultaneous stable co-saliency detection (CoSOD) and object co-segmentation (CoSEG). To detect co-saliency accurately, the core problem is modeling inter-image relations within an image group. While Recurrent Neural Networks (RNNs) are often used for this, they suffer from order-sensitivity, which destabilizes training and inference. We propose a Multi-path Stable Recurrent Unit (MSRU), incorporating a Dummy Orders Mechanism (DOM) and an enhanced Recurrent Unit (RU), to capture robust inter-image relations while reducing order-sensitivity. Additionally, a Cross-Order Contrastive Loss (COCL) is designed to pull feature embeddings from different input orders closer together. Our model achieves state-of-the-art performance on five CoSOD and three CoSEG datasets, demonstrating superior stability and accuracy.

Introduction

Co-saliency Detection (CoSOD) and Object Co-segmentation (CoSEG) are fundamental tasks in computer vision that involve identifying and segmenting common objects across a group of related images. The primary challenge lies in effectively modeling "inter-image relations" to distinguish common objects from salient but unique ones.

While RNN-based models have shown promise in capturing these relationships, their inherent sequential nature introduces "order-sensitivity." Since a collection of images is an unordered set, the output of a standard RNN can fluctuate based on the input sequence, leading to inconsistent results and unstable training. This paper addresses this limitation by introducing a framework designed for stability and order-invariance.

Methodology

The proposed framework utilizes a unified architecture for both CoSOD and CoSEG tasks. The core of the system is the Multi-path Stable Recurrent Unit (MSRU), which processes image features extracted by a CNN backbone.

The overall network architecture featuring the MSRU and dual loss functions (Co-saliency and Contrastive).

Multi-path Stable Recurrent Unit (MSRU)

The MSRU consists of two main components:

  1. Dummy Orders Mechanism (DOM): To mitigate the bias of a single sequence, DOM processes images in multiple "dummy" orders (e.g., using cyclic shifts). The resulting features are concatenated to form a more robust, order-agnostic group representation.
  2. Enhanced Recurrent Unit (RU): The RU is improved with Non-Local Cross-Attention (NLCA) in the reset gate to filter noise and a Co-attention Feature Projection Module (CFPM) in the update gate to align individual features with group-level semantics.

Cross-Order Contrastive Loss (COCL)

To further enforce stability, we introduce COCL. During training, the same image group is processed in different random orders. The COCL minimizes the distance between the resulting latent embeddings, explicitly teaching the network to produce consistent outputs regardless of the input sequence.

Training Strategy

The model follows a two-stage training process. It is first pre-trained on standard Salient Object Detection (SOD) using the DUTS dataset to learn object-level saliency. Subsequently, it is fine-tuned on co-saliency datasets (a subset of COCO) to learn group-level commonalities.

Experiments and Results

We evaluated our model on a wide range of benchmarks, including CoCA, CoSOD3k, and PASCAL-VOC.

Quantitative Performance

Our model sets new state-of-the-art benchmarks. On the challenging CoCA dataset, it achieved a 12.4% improvement in F-measure ($F_\beta$) and a 5.7% reduction in Mean Absolute Error (MAE). Crucially, the model demonstrates exceptional stability; in permutation tests, it maintained a significantly lower standard deviation (e.g., $\pm 0.002$ on PASCAL-VOC) compared to previous RNN-based methods like RCAN.

Qualitative Analysis

Visual results highlight the model's ability to accurately segment common objects while ignoring "salient noise"—objects that are prominent in a single image but not shared across the group.

Qualitative comparison of the proposed method against ground truth (GT) and state-of-the-art models (RCAN, ICNet) on the 'Hat with a wide brim' category.

As shown in the visual comparison, our method produces masks that are much closer to the ground truth than previous methods, which often struggle with complex backgrounds or multiple salient objects.

Conclusion

This paper presents a stable and robust framework for CoSOD and CoSEG. By introducing the MSRU and COCL, we effectively address the order-sensitivity problem inherent in RNN-based co-analysis. Our approach not only achieves state-of-the-art accuracy across multiple benchmarks but also ensures consistent inference, making it a reliable solution for real-world applications. While the multi-path mechanism introduces a slight computational cost, the model maintains a competitive real-time speed of 27 FPS.

Summary updated

BibTeX
@article{li2022towards,
  author = {Bo Li and Lv Tang and Senyun Kuang and Mofei Song and Shouhong Ding},
  title = {{Towards Stable Co-saliency Detection and Object Co-segmentation}},
  journal = {IEEE Trans. Image Process.},
  year = {2022},
  url = {https://openreview.net/forum?id=_IiLTI64VV},
}
Figure