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

EdgeFlow: Achieving Practical Interactive Segmentation with Edge-Guided Flow

Yuying Hao, Yi Liu, Zewu Wu, Lin Han, Yizhou Chen, Guowei Chen, Lutao Chu, Shiyu Tang, Zhiliang Yu, Zeyu Chen, Baohua Lai

TL;DR

EdgeFlow is a high-performance interactive segmentation framework that transforms a few user clicks into precise object masks without requiring slow post-processing. By utilizing a novel "early-late fusion" strategy and "edge-guided flow," the model prevents user input from being "diluted" in deep neural networks, resulting in faster, more stable, and state-of-the-art annotation results.

What Problem Does This Paper Address?

Image segmentation—the process of outlining objects pixel-by-pixel—is the backbone of modern computer vision, but creating high-quality training data is notoriously slow and expensive. Interactive segmentation aims to fix this by allowing a human to provide "clicks" (positive for foreground, negative for background) to guide a model.

However, existing methods face three major hurdles:

  1. Feature Dilution: Click information is often only fed into the first layer of a network. As data moves deeper, this sparse spatial information gets "washed out" by complex image features.
  2. Instability: Adding a new click can sometimes cause the predicted mask to change drastically or even get worse, leading to a frustrating user experience.
  3. Efficiency: Many SOTA methods rely on heavy post-processing or iterative optimization schemes that are too slow for real-time, practical use.

Methods

The authors propose EdgeFlow, a coarse-to-fine architecture designed to maximize the utility of every user click.

  • Coarse-to-Fine Design: The system consists of CoarseNet (based on HRNet-18 and OCRNet) to generate an initial mask and FineNet (using atrous convolutions) to refine the boundaries.
  • Early-Late Fusion: To solve feature dilution, EdgeFlow embeds click information into multiple stages of the backbone. This ensures the network "remembers" the user's intent even in the deepest layers.
  • Edge-Guided Flow: Instead of using the full mask from a previous step as a prior (which can lead to local optima), the model uses an estimated edge mask. This provides a stable geometric constraint.
  • The Flow Module: Inspired by optical flow in video processing, this module aligns the heterogeneous features of the image and the user clicks, ensuring that spatial information is represented precisely.
  • Loss Functions: The model is trained using a combination of Normalized Focal Loss (to focus on hard-to-classify pixels) and Balanced Binary Cross Entropy (BCE) specifically for edge accuracy.

Datasets

The model was trained on a massive combined dataset of COCO and LVIS (roughly 164k images and 2M masks).

For evaluation, the authors used four standard benchmarks:

  • GrabCut: 50 images (a classic but small benchmark).
  • Berkeley: 96 images with complex boundaries.
  • Pascal VOC: 1,449 images from the validation set.
  • DAVIS: 345 images sampled from video sequences.

Key Insights and Ideas

  • Edges are better priors than masks: The "aha moment" here is that full masks are often too "noisy" or fluctuating to serve as good inputs for the next iteration. Edges are sparser and more stable, helping the model converge on the correct shape without getting distracted by previous errors.
  • Clicks are semantic, not just spatial: By treating clicks as features that belong at every level of the network (early-late fusion), the model treats user input as a high-level command rather than just a few extra pixels of input data.
  • Stability is a metric: The authors highlight that a good interactive tool shouldn't just be accurate; it should be predictable. EdgeFlow shows a much smoother "mIoU per click" curve than previous SOTA methods, meaning each additional click consistently improves the result.

Key Results

EdgeFlow achieved state-of-the-art (SOTA) performance across most benchmarks, measured by the Number of Clicks (NoC) required to reach a target Intersection over Union (IoU) score (usually 85% or 90%).

  • Berkeley: Achieved NoC@90 of 2.40, significantly outperforming the previous best (RITM at 2.48).
  • DAVIS: Reached NoC@90 in 5.77 clicks, compared to RITM's 6.00.
  • Pascal VOC: Hit NoC@85 in just 2.50 clicks.
  • Qualitative Stability: Unlike some previous models where the 5th click might actually decrease accuracy, EdgeFlow’s performance improves monotonically, making it much more practical for human annotators.

The authors also released a functional annotation tool based on this research, integrated into the PaddleSeg library.

Limitations and Future Work

While EdgeFlow is highly effective, the authors note a few areas for growth:

  • Model Size: The current architecture relies on HRNet-18, which might be too heavy for some edge devices or browser-based tools. Future work involves developing lightweight versions for broader deployment.
  • Multi-modality: The team is looking into incorporating other types of interactive input, such as audio or text descriptions, to complement the click-based system.
  • Complex Scenes: While it handles Berkeley well, extremely cluttered scenes with many overlapping objects of the same class still pose a challenge for minimal-click convergence.

Summary updated

BibTeX
@inproceedings{hao2021edgeflow,
  author = {Yuying Hao and Yi Liu and Zewu Wu and Lin Han and Yizhou Chen and Guowei Chen and Lutao Chu and Shiyu Tang and Zhiliang Yu and Zeyu Chen and Baohua Lai},
  title = {{EdgeFlow: Achieving Practical Interactive Segmentation with Edge-Guided Flow}},
  booktitle = {ICCVW},
  year = {2021},
  url = {https://openreview.net/forum?id=O6y4Cr0eQ8},
}

Loading related content...

Figure