RL-CoSeg : A Novel Image Co-Segmentation Algorithm with Deep Reinforcement Learning

Xin Duan, Xiabi Liu, Xiaopeng Gong, Mengqiao HanarXiv 2022

TL;DR

This paper introduces RL-CoSeg, a novel approach to image co-segmentation that leverages deep reinforcement learning (RL) to achieve more precise foreground object segmentation, particularly at the edges. By framing co-segmentation as a Markov Decision Process and employing an A3C algorithm within a Siamese network, RL-CoSeg effectively refines initial segmentations without requiring user input, achieving state-of-the-art results on several benchmarks.

What Problem Does This Paper Address?

Image co-segmentation aims to identify common and salient objects across a set of related images. While deep learning methods have advanced this field, they often produce segmentations with rough or jagged foreground edges, and can sometimes miss fine details. Existing interactive methods rely on user hints (like scribbles or bounding boxes) to improve segmentation accuracy, which is inefficient for batch processing and large-scale applications. This paper addresses the need for an automatic co-segmentation method that can produce finer segmentation details, especially at object boundaries, without manual intervention.

Methods

The core of RL-CoSeg is the application of deep reinforcement learning to iteratively refine initial segmentation masks. The authors frame the problem as a Markov Decision Process (MDP), where the agent learns to adjust segmentation probabilities at each pixel.

Key methodological components include:

  • Asynchronous Advantage Actor-Critic (A3C): This RL algorithm is used to optimize the co-segmentation process. It allows for parallel execution of multiple agents, reducing training time.
  • Siamese Network Structure: A Siamese network is employed to process pairs of images. Each branch of the network takes an original image and its current segmentation probability map as input. This structure facilitates the extraction of co-attention features between images.
  • Co-Attention Mechanism: A "correlation block" is used to compute co-attention between the encoded features of the two input images. This helps to capture common object features and guide the segmentation process.
  • Improved Self-Attention: To compensate for the absence of user hints, the authors incorporate an enhanced self-attention module. This module captures long-range dependencies within an image, allowing the network to better focus on salient object features and refine segmentation details.
  • Iterative Refinement: The process is iterative. In each step, the RL agent takes actions to adjust the segmentation probability map based on the current state (previous segmentation map) and the learned policy. This process is repeated until a satisfactory segmentation is achieved.

Datasets

The paper utilizes several standard datasets for training and evaluation:

  • Training: MSRC and PASCAL VOC 2012.
  • Testing: Internet dataset, iCoseg dataset, and MLMR-COS dataset.

The MLMR-COS dataset is highlighted for its simple backgrounds, making it suitable for verifying the method's performance on fine initial segmentations, especially where foreground objects have transparent or white areas.

Key Insights and Ideas

  • RL for Fine-Grained Segmentation: The paper demonstrates that RL can be effectively used not just for segmentation, but specifically for refining segmentation edges and details, which is a common challenge for traditional deep learning methods.
  • Automatic Co-Segmentation: By eliminating the need for user interaction, RL-CoSeg offers a significant advantage for automated and large-scale co-segmentation tasks.
  • Synergy of Co-Attention and Self-Attention: The combination of co-attention (for inter-image correlation) and self-attention (for intra-image long-range dependencies) is crucial for robustly identifying salient objects and their boundaries.
  • MDP Formulation for Iterative Refinement: Framing the iterative segmentation adjustment as an MDP provides a principled way to train an agent to optimize segmentation quality over multiple steps.

Key Results

  • State-of-the-Art Performance: RL-CoSeg achieves state-of-the-art results on the Internet and iCoseg datasets.
  • Improved Precision and Jaccard Index: On the Internet dataset, the method improves average Precision by 0.6% and Jaccard index by 1.4% compared to the previous best results.
  • Finer Edges and Details: Qualitative results show significant improvements in segmentation edge smoothness and detail preservation, with fewer extraneous background pixels.
  • Effectiveness on Fine Segmentations: On the MLMR-COS dataset, the method demonstrates its ability to improve already fine segmentations, achieving high Jaccard scores (e.g., >97% for Normal and MH classes, >98% for TP and SD).
  • Robustness: The method shows effectiveness on both coarse and fine initial segmentations.

Limitations and Future Work

  • Training Data Disparity: The authors note a disparity in accuracy between the training and testing datasets, which adds noise and makes the segmentation task more difficult. They suggest that aligning these accuracies could lead to further improvements.
  • Training Dataset Size: The RL-CoSeg method uses a relatively small number of training examples (2250 for the entire iCoseg dataset) compared to some other state-of-the-art methods.
  • Future Work: The authors suggest increasing the amount of training data and making the precision of the training and testing datasets more consistent as potential avenues for future research.

Summary updated

BibTeX
@misc{duan2022rl,
  author = {Xin Duan and Xiabi Liu and Xiaopeng Gong and Mengqiao Han},
  title = {{RL-CoSeg : A Novel Image Co-Segmentation Algorithm with Deep Reinforcement Learning}},
  year = {2022},
  eprint = {2204.05951},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.05951},
}
Figure