Memory-Aided Contrastive Consensus Learning for Co-salient Object Detection

Peng Zheng, Jie Qin, Shuo Wang, Tian-Zhu Xiang, Huan Xiong

Abstract

Co-salient Object Detection (CoSOD) aims to identify common salient objects across a group of related images. This task presents significant challenges, including the presence of salient distractors and the need for high-quality, complete object segmentation at real-time speeds. We present the Memory-aided Contrastive Consensus Learning (MCCL) framework, which addresses these issues through a novel architecture incorporating a Group Consensus Aggregation Module (GCAM), a Memory-based Contrastive Module (MCM), and an Adversarial Integrity Learning (AIL) strategy. MCCL achieves state-of-the-art performance on major benchmarks while maintaining an inference speed of approximately 150 fps, effectively bridging the gap between accuracy and efficiency in CoSOD.

Introduction

Salient Object Detection (SOD) is a fundamental computer vision task focused on identifying the most visually prominent objects in a single image. Co-salient Object Detection (CoSOD) is a more complex extension that requires finding the common salient object across a group of related images.

The primary challenges in CoSOD are threefold:

  1. Salient Distractors: Images often contain objects that are highly salient locally but do not belong to the common category of the group.
  2. Inter-group Similarity: Objects from different categories may appear similar in feature space, leading to false positives if the model only considers intra-group consistency.
  3. Efficiency vs. Quality: High-performing models often rely on computationally expensive operations, making them unsuitable for real-time applications, or they produce fragmented saliency maps that fail to capture the full integrity of the object.

Methodology

The MCCL framework utilizes a Transformer-based backbone (specifically PVTv2) within an encoder-decoder structure. To overcome the limitations of existing methods, the authors introduce three key components.

Group Consensus Aggregation Module (GCAM)

The GCAM is designed to mine common features within a single image group. It employs a correlation principle, splitting features and utilizing non-local blocks to efficiently abstract a "consensus" representation that captures the shared characteristics of the group.

Memory-based Contrastive Module (MCM)

To enhance the discriminative power of the consensus representations, the MCM introduces a memory queue. This queue stores consensuses from different groups over time, providing a rich set of negative samples. By applying contrastive learning via a triplet loss, the model learns to "pull" similar consensuses together and "push" dissimilar ones apart. This approach allows the model to learn what makes a specific group's consensus distinct from others, even when working with small batch sizes.

The MCCL framework architecture, highlighting the GCAM, MCM, and AIL components.

Adversarial Integrity Learning (AIL)

To ensure that the predicted saliency maps represent complete, "intact" objects rather than fragmented parts, the authors implement an adversarial learning strategy. A discriminator is trained to distinguish between images masked by ground-truth maps (representing "real" complete objects) and images masked by predicted maps (representing "fake" or potentially fragmented objects). This adversarial pressure forces the generator to produce high-quality, semantically coherent saliency maps.

Importantly, the MCM and AIL modules are only used during the training phase. They are discarded during inference, allowing the model to remain extremely lightweight and fast without sacrificing the learned discriminative power and structural integrity.

Experiments and Results

The MCCL model was trained on the DUTS_class and COCO-SEG datasets and evaluated on three major benchmarks: CoCA, CoSOD3k, and CoSal2015.

Quantitative Performance

MCCL sets a new state-of-the-art across all evaluated metrics. It achieved a 5.9% improvement in S-measure on the large-scale CoSOD3k benchmark and a 6.2% improvement on the standard CoSal2015 benchmark compared to previous leading models.

Efficiency and Real-time Inference

A standout feature of MCCL is its efficiency. As shown in the performance-vs-speed analysis, MCCL occupies the top-left quadrant of the plot, indicating both the highest accuracy and the lowest inference time among compared models. It runs at approximately 150 fps (7.6 ms per pair) on an A100 GPU, making it highly suitable for real-time deployment.

Comparison of performance (S-measure) vs. inference time (ms) across various CoSOD models.

Qualitative Superiority

Qualitative analysis demonstrates that MCCL is significantly more robust against salient distractors than its predecessors. Furthermore, the AIL strategy proves effective in capturing thin or complex structures, such as the legs of a table or chopsticks, which are often missed or fragmented by other SOTA models.

Conclusion

The Memory-aided Contrastive Consensus Learning (MCCL) framework successfully addresses the core challenges of Co-salient Object Detection. By moving complex contrastive and adversarial components to the training phase, the authors have developed a model that is both highly accurate and exceptionally fast. Future research may focus on applying the Adversarial Integrity Learning strategy to other segmentation tasks or further refining the consensus module to handle extreme variations in object scale and orientation.

Summary updated

BibTeX
@inproceedings{zheng2023memory,
  author = {Peng Zheng and Jie Qin and Shuo Wang and Tian-Zhu Xiang and Huan Xiong},
  title = {{Memory-Aided Contrastive Consensus Learning for Co-salient Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i3.25480},
}
Figure