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

Order-aware Interactive Segmentation

Bin Wang, Anwesa Choudhuri, Meng Zheng, Zhongpai Gao, Benjamin Planche, Andong Deng, Qin Liu, Terrence Chen, Ulas Bagci, Ziyan Wu

Introduction

Interactive segmentation allows users to extract target objects from an image by providing simple prompts, such as positive clicks on the object and negative clicks on the background. Despite the success of foundational models like the Segment Anything Model (SAM), two major hurdles remain in the field:

  1. Depth Confusion: Current models typically treat images as flat 2D planes. If a target object (e.g., an intricate iron gate) shares similar colors or textures with a background object at a different depth (e.g., a building directly behind it), the model often fails to separate them.
  2. Feature Intermingling: In many architectures, positive and negative clicks attend to the same global image features. This blurs the model's understanding of the object versus the background, leading to masks with false positives.

Furthermore, there is an ongoing efficiency gap. "Dense" fusion methods (aligning prompts spatially) are highly accurate but computationally heavy, while "sparse" fusion methods (using embeddings) are fast but often lose precise spatial alignment.

Order-aware Interactive Segmentation (OIS) addresses these issues by introducing 3D spatial context into the 2D clicking task. By explicitly encoding relative depth ("order") and separating foreground/background attention, OIS achieves state-of-the-art accuracy while running twice as fast as previous leading methods.

Qualitative comparison showing OIS successfully segmenting an intricate gate from the background, outperforming SegNext and HQ-SAM in both IoU and visual accuracy.

Methodology

OIS tackles the limitations of prior interactive segmentation models through three main innovations:

  • Order Maps & Order-aware Attention: The model generates a depth map of the scene. When a user clicks, OIS calculates an "order map"—the relative depth distance between that click and every other pixel. A novel attention mechanism then uses this map to mask the image features, forcing the model to focus on regions at a similar depth to the user's click and ignore distant background layers.
  • Object-aware Attention: To prevent feature intermingling, OIS employs a masked cross-attention module. Positive clicks are restricted to attending only to foreground regions (based on the previous mask prediction), while negative clicks focus strictly on the background. This creates a much sharper discriminative boundary between the target and its surroundings.
  • Hybrid Prompt Integration: OIS combines the strengths of both dense and sparse methods. It uses dense embeddings (2D maps) to maintain perfect spatial alignment with the image and sparse embeddings (vectors) to perform efficient, high-level reasoning via cross-attention.

Key Insights

The core "aha moment" of OIS is treating depth not just as another visual feature, but as a geometric constraint. By transforming absolute depth into relative depth (order) based on a user's click, the model gains a "3D sense" that allows it to effectively peel the target object away from the background.

Interestingly, OIS is remarkably robust to errors in the underlying depth model. Even if the initial depth map is slightly inaccurate, the Object-aware module acts as a safety net, using the predicted mask to keep the segmentation on track. Furthermore, by replacing heavy self-attention layers with sparse cross-attention between queries and image features, the authors achieved a massive speedup without sacrificing spatial detail.

Results and Performance

The model was rigorously evaluated on two primary benchmarks: HQSeg44K (a large-scale dataset with highly precise mask labels) and DAVIS (a standard benchmark for complex video object segmentation).

  • State-of-the-Art Accuracy: On the HQSeg44K dataset, OIS improved the mean Intersection-over-Union (mIoU) after just one click by 7.61 points compared to the previous leader, SegNext.
  • Fewer Clicks Required: To reach a strict 95% mIoU threshold on DAVIS, OIS requires significantly fewer clicks (~8.5) compared to SegNext (~10.7).
  • Double the Speed: OIS clocks in at 31ms per click, making it twice as fast as SegNext (58ms) and significantly more responsive than SimpleClick (55ms).
  • Qualitative Superiority: As demonstrated in visual comparisons, OIS successfully segments thin, complex structures (like gate ironwork or bicycle spokes) that heavily confuse other models due to background interference.

Limitations and Future Work

While OIS handles depth exceptionally well, it can still struggle with fine-grained occlusions, such as when very thin objects (like blades of grass) heavily occlude the target. Additionally, although robust, the system's performance remains somewhat tethered to the quality of the initial depth estimation. Future directions may involve tighter integration of temporal information for video-based interactive segmentation or improving the handling of extremely thin, overlapping objects.

Summary updated

BibTeX
@inproceedings{wang2025order,
  author = {Bin Wang and Anwesa Choudhuri and Meng Zheng and Zhongpai Gao and Benjamin Planche and Andong Deng and Qin Liu and Terrence Chen and Ulas Bagci and Ziyan Wu},
  title = {{Order-aware Interactive Segmentation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=8ZLzw5pIrc},
}
Figure