Abstract
BoundarySqueeze (BSM) is a novel, lightweight plug-and-play module that reinterprets image segmentation as a "boundary squeezing" process. By simulating morphological dilation and erosion through bi-directional flow-based warping, BSM refines object boundaries from both the interior and exterior. This approach addresses the limitations of standard Fully Convolutional Networks (FCNs) and point-based refinement methods, outperforming state-of-the-art techniques like PointRend in both mask accuracy and inference speed across benchmarks such as COCO and Cityscapes.
Introduction
While deep learning has significantly advanced image segmentation, generating crisp, high-quality boundaries remains a persistent challenge. Standard FCNs often produce blurry masks because they treat all pixels with equal weight, failing to account for the specific classification difficulty inherent at object edges. Existing solutions, such as direct boundary prediction or point-based refinement (e.g., PointRend), often struggle with learning difficulty or computational overhead and structural inconsistency.
BoundarySqueeze aims to unify instance and semantic segmentation by focusing on precise boundary localization, inspired by the human perception of object shapes.
Methodology: The Boundary Squeeze Module (BSM)
The core innovation of this work is the Boundary Squeeze Module (BSM). Rather than treating a mask as a static prediction, BSM views the boundary as a dynamic entity that is "squeezed" into its final position.
Morphological Flow-based Warping
The BSM mimics classical image processing operations—dilation (expansion) and erosion (contraction). It consists of two parallel paths:
- Contraction Branch: Squeezes features from the exterior of the object toward the boundary.
- Expansion Branch: Squeezes features from the interior of the object toward the boundary.
These operations are facilitated by the Squeezed Feature Generator (SFG). The SFG employs a flow-based warping mechanism where the network learns a 2D flow field to shift feature pixels toward the actual boundary. This is implemented using differentiable bilinear sampling, ensuring the entire module is end-to-end trainable.
Supervision and Integration
The model is supervised using two loss signals derived from ground truth masks: one representing the area added by dilation and another representing the area removed by erosion. As a plug-and-play module, BSM can be integrated into existing architectures like Mask R-CNN for instance segmentation or DeepLabV3+ for semantic segmentation with minimal overhead.
Experimental Evaluation
The authors evaluated BoundarySqueeze on several challenging benchmarks including COCO, LVIS, Cityscapes, and BDD100K.
Key Results
BoundarySqueeze demonstrates a superior speed-accuracy trade-off compared to previous refinement methods:
- Accuracy: On the COCO dataset, BSM achieved 36.9 mask AP, surpassing the baseline Mask R-CNN (35.2) and PointRend (36.2).
- Boundary Precision: Using the "Boundary AP" metric, BSM scored 23.6, outperforming PointRend’s 23.3.
- Efficiency: BSM is significantly faster than its competitors. On a V100 GPU, BSM recorded an inference time of 54ms, compared to 73ms for PointRend.
Qualitative Analysis
Visual results indicate that BSM excels in cases of "structural failure." For instance, it maintains the connectivity of thin objects (like a baseball bat) and better distinguishes objects from similarly colored backgrounds compared to point-based refinement methods.
Conclusion
BoundarySqueeze offers a robust and efficient alternative for boundary refinement in image segmentation. By utilizing dense flow-based warping instead of sparse sampling, it maintains better structural integrity while reducing computational costs. Future work may explore multi-scale squeezing or adaptive resolution techniques to better handle objects of varying sizes, as the current fixed resolution of feature maps can limit precision for very large objects.
Summary updated