RAIS: Robust and Accurate Interactive Segmentation via Continual Learning

Yuying Hao, Yi Liu, Juncai Peng, Haoyi Xiong, Guowei Chen, Shiyu Tang, Zeyu Chen, Baohua LaiarXiv 2022 · DOI

Introduction

Interactive image segmentation is a critical human-in-the-loop task where users provide sparse inputs, such as clicks, to guide a model in generating precise object masks. Despite the power of deep learning models, they frequently struggle with domain shift. Most state-of-the-art models are trained on general datasets like COCO or LVIS and then frozen. When deployed on out-of-distribution data—such as satellite imagery or medical MRI scans—performance often degrades significantly, requiring an exhausting number of user corrections.

Existing adaptation methods often attempt to update the entire network at once, leading to "catastrophic forgetting," where the model loses its fundamental understanding of object boundaries while trying to learn new domain-specific features. RAIS (Robust and Accurate Interactive Segmentation) addresses this by introducing a continual learning framework that allows models to adapt to new data distributions at test time without losing prior knowledge.

Dual-Module Architecture and Methods

RAIS utilizes a two-pronged architecture designed to balance stability and plasticity:

  1. Basic Segmentation Module (BSM): Built on HRNet-18 and OCRNet, this module serves as the stable core, retaining fundamental segmentation knowledge. It is updated rarely and with a very low learning rate.
  2. Adaptation Module (ADM): A lightweight module using atrous (dilated) convolutions. It is designed to learn "residual" features specific to the current test set and is updated frequently.
The RAIS architecture featuring the Basic Segmentation Module (BSM) and the lightweight Adaptation Module (ADM).

Continuous Adaptation Strategy

The framework employs a "slow-fast" optimization strategy. For minor distribution shifts, the model performs Local Optimization, updating only the ADM using user clicks as weak supervision. For major domain changes, Global Optimization is triggered, updating both modules. Critically, the BSM is updated with a learning rate only 1% as large as the ADM's, allowing the model to learn new textures while preserving its general segmentation capabilities. The system is optimized using a combination of normalized focal loss for mask refinement and a sparse click loss to ensure the model strictly respects user-defined points.

Experimental Results

RAIS was trained on over 100,000 images from LVIS and COCO and evaluated across standard benchmarks (GrabCut, Berkeley, DAVIS) and specialized domains (Remote-200 for satellite imagery and LiTS-500 for medical scans).

State-of-the-Art Performance

RAIS achieved the lowest Number of Clicks (NoC) required to reach target Intersection over Union (IoU) thresholds across all standard benchmarks. For example, on GrabCut (NoC@90), it required only 1.54 clicks on average, outperforming the previous best-in-class model, RITM (1.68 clicks).

Quantitative comparison of mIoU vs. number of clicks across GrabCut, Berkeley, and DAVIS datasets.

Cross-Modality and Robustness

The model's ability to adapt to extreme domain changes is its most significant advantage. In medical imaging tests, where standard models often fail (e.g., achieving <5% IoU), RAIS successfully adapted to reach over 84% IoU. Furthermore, in tests for catastrophic forgetting, RAIS showed significantly lower performance decay (6-9%) compared to other adaptation strategies (up to 29%) when alternating between different domains.

Conclusion and Future Work

RAIS demonstrates that treating user interactions as a stream of ground-truth data for online fine-tuning is a highly effective strategy for interactive segmentation. By isolating adaptation to a flexible module and controlling the learning rates of the base network, the system solves the stability-plasticity dilemma.

Future research will focus on reducing the computational overhead of performing backpropagation during interactive sessions and expanding the framework to handle more complex interaction types, such as scribbles or bounding boxes. Additionally, long-term studies on how these models evolve over months of professional use could provide further insights into the benefits of continuous adaptation.

Summary updated

BibTeX
@misc{hao2022rais,
  author = {Yuying Hao and Yi Liu and Juncai Peng and Haoyi Xiong and Guowei Chen and Shiyu Tang and Zeyu Chen and Baohua Lai},
  title = {{RAIS: Robust and Accurate Interactive Segmentation via Continual Learning}},
  year = {2022},
  eprint = {2210.10984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.10984},
}
Figure