Interactive segmentation (IS) allows users to extract objects by clicking on foreground and background regions. While modern deep learning methods have significantly advanced this field, they often treat user clicks as simple input channels, leading to inefficient information propagation and a lack of theoretical guarantees for accuracy at clicked locations. This paper, presented at CVPR 2023, introduces GPCIS (Gaussian Process Classification-based Interactive Segmentation), a framework that reformulates IS as a Gaussian Process (GP) classification problem.
The Problem: Implicit Modeling and Input Disregard
Standard deep learning architectures for interactive segmentation suffer from two primary limitations:
- Inefficient Information Propagation: The relationship between a clicked pixel and the rest of the image is modeled implicitly through neural layers. Consequently, the "knowledge" from a click doesn't always spread effectively to similar, unclicked regions.
- Lack of Theoretical Support: Standard networks can misclassify the very pixels the user just clicked on, leading to a frustrating user experience where the model ignores direct feedback.
Methodology: GPCIS
Instead of merely "learning to segment," GPCIS performs a pixel-wise binary classification on each image using the user's clicks as the ground truth for that specific instance. By viewing the IS task as a "mini-learning" problem per image, the model treats user clicks as the ultimate truth. Because GPs have an interpolation property, the model is mathematically predisposed to be correct at the click locations.
Technical Innovations
- Amortized Variational Inference: To overcome the computational expense of standard GPs, the authors use an amortized approach to learn the GP posterior in a data-driven way across the entire dataset.
- Decoupled GP Posterior: To maintain real-time performance, the posterior is decoupled into a weight-space prior (capturing global image context) and a function-space update (capturing local click-based corrections). This reduces computational complexity from $O(n^3)$ to $O(n)$ relative to the number of pixels.
- Double Space Deep Kernel Learning (DKL): Flexible kernels are learned in both function and weight spaces, driven by deep features extracted from a backbone network and raw RGB values.
Key Insights and Results
The "function-space update" map acts as a bridge. If a user clicks on a specific part of an object, the GP posterior naturally assigns a higher foreground probability to pixels with similar deep features, even if they are spatially distant.
Performance Metrics
The model was evaluated on standard benchmarks including GrabCut, Berkeley, SBD, and DAVIS. The primary metric is the Number of Clicks (NoC) required to reach a target Intersection over Union (IoU).
- State-of-the-Art Accuracy: GPCIS consistently achieved the lowest average NoC. On the DAVIS dataset with a ResNet50 backbone, GPCIS reached 90% IoU in 5.89 clicks, outperforming RITM (6.05) and FocalClick (6.01).
- Input Respect (NoIC): The authors introduced the Number of Incorrectly classified Clicks (NoIC). GPCIS achieved a NoIC near zero, while competing methods had NoIC values as high as 74, proving that GPCIS respects user input far better.
- Efficiency: Despite the mathematical complexity, inference speed is approximately 38.82 ms per click, ensuring suitability for real-time applications.
Conclusion
GPCIS offers a mathematically grounded alternative to "black-box" interactive segmentation. By treating clicks as training data for a Gaussian Process, the framework ensures that user feedback is propagated effectively and respected absolutely. Future work may extend this GP-based framework to 3D medical imaging and video object tracking.
Summary updated