[Paper Review] SegFix: Model-Agnostic Boundary Refinement for Segmentation
SegFix is a model-agnostic post-processing method that improves semantic and instance segmentation boundary quality by replacing unreliable boundary predictions with labels from corresponding interior pixels. It localizes boundaries via a learned boundary map and estimates inward direction vectors to identify interior correspondences, achieving near real-time inference and consistent mIoU gains across multiple models and benchmarks including Cityscapes, ADE20K, and GTA5.
We present a model-agnostic post-processing scheme to improve the boundary quality for the segmentation result that is generated by any existing segmentation model. Motivated by the empirical observation that the label predictions of interior pixels are more reliable, we propose to replace the originally unreliable predictions of boundary pixels by the predictions of interior pixels. Our approach processes only the input image through two steps: (i) localize the boundary pixels and (ii) identify the corresponding interior pixel for each boundary pixel. We build the correspondence by learning a direction away from the boundary pixel to an interior pixel. Our method requires no prior information of the segmentation models and achieves nearly real-time speed. We empirically verify that our SegFix consistently reduces the boundary errors for segmentation results generated from various state-of-the-art models on Cityscapes, ADE20K and GTA5. Code is available at: https://github.com/openseg-group/openseg.pytorch.
Motivation & Objective
- To address persistent boundary errors in state-of-the-art segmentation models, especially along thin object edges.
- To develop a post-processing method that improves segmentation boundaries without requiring access to or modification of the original segmentation model.
- To achieve high-speed inference while maintaining consistent performance gains across diverse models and datasets.
- To extend the method to both semantic and instance segmentation tasks with minimal architectural changes.
Proposed method
- The method first localizes boundary pixels using a learned binary boundary map predicted from the input image alone.
- It then estimates a direction map that points from each boundary pixel toward an interior pixel, using a convolutional network trained on image features.
- For each boundary pixel, the corresponding interior pixel is identified by moving along the predicted direction vector for a fixed distance.
- The original segmentation label of the boundary pixel is replaced with the label of the identified interior pixel, effectively refining the boundary.
- The entire process is applied as a post-processing step, requiring no retraining or architectural changes to the base segmentation model.
- The method is trained end-to-end on image inputs and segmentation ground truth, using only the image and not the segmentation output during inference.
Experimental results
Research questions
- RQ1Can a post-processing method improve segmentation boundary quality without modifying the underlying segmentation model?
- RQ2Does replacing boundary predictions with labels from corresponding interior pixels lead to consistent performance gains across diverse models and datasets?
- RQ3Can a model-agnostic, lightweight refinement mechanism achieve near real-time inference speed while improving mIoU on thin boundaries?
- RQ4How effective is the method on small-scale objects, which are particularly prone to boundary errors?
Key findings
- SegFix consistently improves mIoU across all evaluated models on Cityscapes, with gains of up to 3.1% on the 'pole' category and 2.7% on 'traffic light'.
- On the Cityscapes semantic segmentation leaderboard, 'HRNet + OCR + SegFix' achieved 84.5% mIoU, ranking first by the ECCV 2020 deadline.
- For instance segmentation, 'PolyTransform + SegFix' achieved 41.2% mAP, ranking second on the Cityscapes instance segmentation leaderboard.
- The method achieves nearly real-time inference speed, making it practical for deployment in real-world applications.
- The unified SegFix model trained on both Cityscapes and ADE20K achieves performance comparable to models trained separately on each dataset.
- Qualitative results show that SegFix effectively reduces boundary artifacts on thin edges, such as those of people, poles, and traffic signs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.