NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ScribbleSeg: Scribble-based Interactive Image Segmentation

Xi Chen, Yau Shing Jonathan Cheung, Ser-Nam Lim, Hengshuang Zhao · DOI

Introduction

Interactive image segmentation allows users to guide AI in extracting object masks through simple annotations like bounding boxes, clicks, or scribbles. While click-based methods—where a user places points on the foreground or background—have become the research standard, they are inherently limited. A single click provides minimal information about an object's shape or texture.

Comparison of interactive segmentation methods: (a) Scribble, (b) Click, and (c) Box.

Scribbles are far more expressive, conveying size, orientation, and appearance in a single stroke. However, scribble-based research has historically lacked a standardized evaluation protocol, with different studies using varied datasets and simulation methods. ScribbleSeg addresses this by formalizing a training and evaluation framework and proposing a model that effectively exploits the rich data within a scribble.

Methodology

The ScribbleSeg framework introduces two primary innovations integrated with a standard segmentation backbone (such as SegFormer):

  1. Prototype Adaption Module (PAM): Unlike traditional models that use fixed learned weights, PAM dynamically updates the model’s internal representation. It "pools" features directly from the user-scribbled regions, making the model image-specific and scribble-specific in real-time.
  2. Corrective Refine Module (CRM): This module applies local corrections to sharpen boundaries and fix small errors by estimating an "error map" based on the initial prediction, the original image, and the user's scribbles.
Overview of the ScribbleSeg architecture featuring the Prototype Adaption Module (PAM) and Corrective Refine Module (CRM).

Training and Evaluation Protocols

To train the model, the authors developed Meta-simulators that mimic human behavior by generating three types of scribbles: Bezier (curved lines), Axial (skeleton-following), and Boundary (edge-tracing).

For fair evaluation, they introduced a Deterministic Scribble Simulator. This "robot user" identifies the largest error region in a prediction and draws a mathematically optimized scribble to correct it, allowing for a consistent measurement of the "Number of Interactions" (NoI) required to reach target accuracy.

Datasets and Benchmarks

The model was trained on large-scale natural image datasets like COCO and LVIS. Evaluation was conducted on standard benchmarks (Berkeley, SBD, DAVIS) and a new, more challenging benchmark based on ADE20K. This new benchmark includes 150 categories of "things" (objects) and "stuff" (background textures like sky or grass), testing the model's versatility in complex scenes.

Key Results

ScribbleSeg demonstrates significant efficiency gains. On the Berkeley dataset, it reaches a 90% IoU (Intersection over Union) with an average of only 1.35 interactions, compared to 1.92 for top click-based competitors like FocalClick.

Qualitatively, a single scribble often produces a superior mask compared to multiple clicks, particularly for large or complex objects. The model also shows remarkable robustness on "stuff" categories, such as winding rivers or fields, where broad, irregular boundaries are difficult to define with points alone.

Conclusion and Future Work

By providing a deterministic simulator and a unified NoI metric, ScribbleSeg aims to standardize scribble-based segmentation research. While current models are biased toward natural images and involve some computational overhead due to iterative refinement, the ability to adapt to user input on the fly makes ScribbleSeg a powerful tool for open-world interactive segmentation. Future work involves testing with real human users to further validate its efficiency in practical applications.

Summary updated

BibTeX
@misc{chen2023scribbleseg,
  author = {Xi Chen and Yau Shing Jonathan Cheung and Ser-Nam Lim and Hengshuang Zhao},
  title = {{ScribbleSeg: Scribble-based Interactive Image Segmentation}},
  year = {2023},
  eprint = {2303.11320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.11320},
}
Figure