Reinforcement learning for instance segmentation with high-level priors

Paul Hilt, Maedeh Zarvandi, Edgar Kaziakhmedov, Sourabh Bhide, Maria Leptin, Constantin Pape, Anna KreshukWorkshops @ ICCV 2023 · DOI

Introduction

Instance segmentation—the task of identifying and outlining every individual object in an image—typically relies on massive datasets of pixel-perfect human annotations. In specialized domains like biology and medicine, this "annotation bottleneck" is severe; a pathologist might spend weeks manually labeling thousands of cells. This paper proposes a paradigm shift: instead of learning from labels, can we learn from high-level "priors" or rules that describe what objects should look like?

Methodology: RL-Driven Graph Partitioning

The authors frame instance segmentation as a graph partitioning problem. The process begins by decomposing an image into superpixels—small, uniform clusters of pixels. These superpixels serve as nodes in a graph, where the edges represent potential boundaries between objects.

Overview of the reinforcement learning framework for instance segmentation.

To navigate this graph, the framework employs a stateless actor-critic reinforcement learning (RL) setup:

  1. The Actor: A Graph Neural Network (GNN) processes superpixel features to predict edge weights, determining whether adjacent superpixels should be merged or split.
  2. The Environment: A non-differentiable multicut solver uses these weights to generate a final segmentation.
  3. The Reward: The resulting objects are evaluated against high-level, non-differentiable priors (e.g., the Circle Hough Transform for roundness or specific size constraints).
  4. The Critic: Since the reward function is non-differentiable, a second GNN (the critic) learns to approximate the reward signal. This provides a differentiable surrogate loss that allows the actor to be trained via backpropagation.

A key innovation is reward decomposition, where rewards are calculated for local sub-graphs rather than the entire image, providing a denser training signal for the agent.

Experimental Results

The framework was evaluated on three distinct types of data: synthetic circles on noisy backgrounds, cell nuclei (DSB dataset), and Drosophila embryos.

Segmentation pipeline on synthetic data, showing ground truth, raw input, superpixels, and predicted actions.

Performance Highlights

  • Unsupervised Success: On the Nucleus (DSB) benchmark, the model achieved an mAP of 0.743 without any ground-truth labels, significantly outperforming traditional unsupervised methods like Otsu thresholding (0.554) and rivaling some supervised models.
  • Robustness to Noise: The agent successfully ignored complex background textures in synthetic datasets that typically cause "leakage" in traditional region-growing algorithms like the Mutex Watershed.
  • Data Efficiency: While the unsupervised results are strong, the authors found that adding just a single labeled image patch (semi-supervised) led to a dramatic performance increase, highlighting the method's potential for human-in-the-loop workflows.

Discussion and Limitations

The primary trade-off in this approach is the shift from "annotation engineering" to "reward engineering." While users do not need to label pixels, they must mathematically define the priors (e.g., what constitutes "roundness"). Additionally, the model's performance is currently bounded by the quality of the initial superpixels; if a superpixel spans two distinct objects, the graph-based agent cannot separate them.

Future work aims to scale this approach to pixel-level decisions, potentially removing the dependency on superpixels and allowing for even finer-grained segmentation in high-resolution 3D biological volumes.

Summary updated

BibTeX
@inproceedings{hilt2023reinforcement,
  author = {Paul Hilt and Maedeh Zarvandi and Edgar Kaziakhmedov and Sourabh Bhide and Maria Leptin and Constantin Pape and Anna Kreshuk},
  title = {{Reinforcement learning for instance segmentation with high-level priors}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00423},
}
Figure