[Paper Review] CoSformer: Detecting Co-Salient Object with Transformers
CoSformer proposes a Transformer-based framework for co-salient object detection that improves stability and performance by modeling inter-image relationships invariant to input order and introducing a contrastive learning scheme to enhance inter-image separability. It achieves state-of-the-art results on CoCA, CoSOD3k, and Cosal2015 benchmarks by combining self-attention mechanisms with multi-loss optimization including BCE, SSIM, and F-measure losses.
Co-Salient Object Detection (CoSOD) aims at simulating the human visual system to discover the common and salient objects from a group of relevant images. Recent methods typically develop sophisticated deep learning based models have greatly improved the performance of CoSOD task. But there are still two major drawbacks that need to be further addressed, 1) sub-optimal inter-image relationship modeling; 2) lacking consideration of inter-image separability. In this paper, we propose the Co-Salient Object Detection Transformer (CoSformer) network to capture both salient and common visual patterns from multiple images. By leveraging Transformer architecture, the proposed method address the influence of the input orders and greatly improve the stability of the CoSOD task. We also introduce a novel concept of inter-image separability. We construct a contrast learning scheme to modeling the inter-image separability and learn more discriminative embedding space to distinguish true common objects from noisy objects. Extensive experiments on three challenging benchmarks, i.e., CoCA, CoSOD3k, and Cosal2015, demonstrate that our CoSformer outperforms cutting-edge models and achieves the new state-of-the-art. We hope that CoSformer can motivate future research for more visual co-analysis tasks.
Motivation & Objective
- To address the instability in existing CoSOD methods caused by input image order dependency in sequential modeling.
- To improve discrimination between true co-salient objects and noisy distractors by modeling inter-image separability.
- To develop a unified, end-to-end framework that jointly optimizes intra-image saliency and inter-image consistency using attention mechanisms.
- To enhance boundary accuracy and structural detail in predicted saliency maps through multi-loss optimization.
Proposed method
- Employs a Transformer-based architecture with a novel Token-Guided Learning (TGL) module to model inter-image relationships in a permutation-invariant manner.
- Introduces a contrastive learning loss that treats co-salient regions as positive pairs and non-co-salient regions as negative pairs to improve embedding space discriminability.
- Uses a dual-branch design: one branch for intra-image saliency (pixel-level attention) and another for inter-image consistency (image-level attention).
- Applies multi-task supervision using BCE, SSIM, and F-measure losses to refine boundary details and improve overall segmentation quality.
- Avoids positional encoding in the TGL module to preserve order invariance and prevent destabilization of group representation learning.
- Leverages self-attention to compute pairwise similarities across all images, enabling long-range dependency modeling and stable group representation learning.
Experimental results
Research questions
- RQ1Can a Transformer-based architecture improve the stability of CoSOD models under varying input image orders?
- RQ2Does modeling inter-image separability through contrastive learning enhance the discrimination of true co-salient objects from noisy ones?
- RQ3Can joint optimization of intra-image saliency and inter-image consistency via self-attention lead to superior segmentation performance?
- RQ4To what extent do auxiliary losses (SSIM, F-measure) improve boundary accuracy in co-salient object detection?
Key findings
- CoSformer achieves state-of-the-art performance on three major benchmarks: CoCA, CoSOD3k, and Cosal2015, outperforming existing methods.
- The model maintains consistent performance across 10 random input orderings of the same image group, demonstrating strong order invariance.
- Adding positional encoding to the TGL module destabilizes the model, confirming that order invariance is preserved only when positional encoding is excluded.
- The ablation study shows that combining BCE, SSIM, and F-measure losses yields better performance than using BCE alone.
- Compared to RNN-based (RCAN) and CNN-based (ICNet) baselines, CoSformer shows significantly more stable inference under input reordering.
- The contrastive learning scheme effectively separates true co-salient objects from distractors, as evidenced by improved performance in complex real-world scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.