[Paper Review] Active Boundary Loss for Semantic Segmentation
This paper proposes Active Boundary Loss (ABL), a model-agnostic, differentiable loss that dynamically guides predicted boundaries toward ground-truth boundaries during end-to-end training by modeling boundary alignment as a direction vector prediction problem. ABL improves semantic segmentation by enhancing boundary F-score and mIoU on image and video datasets, especially for thin and small objects, outperforming cross-entropy, IoU, and prior boundary losses.
This paper proposes a novel active boundary loss for semantic segmentation. It can progressively encourage the alignment between predicted boundaries and ground-truth boundaries during end-to-end training, which is not explicitly enforced in commonly used cross-entropy loss. Based on the predicted boundaries detected from the segmentation results using current network parameters, we formulate the boundary alignment problem as a differentiable direction vector prediction problem to guide the movement of predicted boundaries in each iteration. Our loss is model-agnostic and can be plugged in to the training of segmentation networks to improve the boundary details. Experimental results show that training with the active boundary loss can effectively improve the boundary F-score and mean Intersection-over-Union on challenging image and video object segmentation datasets.
Motivation & Objective
- To address the persistent issue of blurred and inaccurate boundaries in semantic segmentation, especially for small and thin objects.
- To develop a training loss that explicitly encourages alignment between predicted and ground-truth boundaries, beyond standard pixel-wise classification.
- To create a differentiable, dynamic loss that adapts during training based on current network predictions.
- To improve segmentation quality without modifying network architecture or inference pipelines.
- To demonstrate generalization across image and video segmentation tasks, including state-of-the-art models like DeepLabV3, OCR, SwinTransformer, and STM.
Proposed method
- ABL formulates boundary alignment as a differentiable direction vector prediction problem, where each predicted boundary pixel is moved toward the nearest ground-truth boundary pixel.
- It computes a boundary distance map using distance transform on ground-truth boundaries to determine the direction vector for each predicted boundary pixel.
- The loss applies probabilistic movement of predicted boundaries along the direction vector, enabling gradient flow during backpropagation.
- Gradient flow is detached from the boundary prediction branch to suppress potential conflicts during optimization.
- ABL is combined with standard losses like cross-entropy and Lovász-Softmax to stabilize training and improve boundary quality.
- The method is model-agnostic and can be seamlessly integrated into existing segmentation networks without architectural changes.
Experimental results
Research questions
- RQ1Can a differentiable, dynamic loss improve boundary alignment in semantic segmentation without relying on post-processing?
- RQ2How does ABL compare to existing boundary-aware losses like Boundary Loss and IoU-based losses in terms of boundary F-score and mIoU?
- RQ3Can ABL effectively enhance segmentation performance for small and thin objects that are prone to boundary blur?
- RQ4Does ABL generalize across different architectures, including CNNs and Transformers, in both image and video segmentation?
- RQ5Can ABL be effectively combined with other losses like cross-entropy and Lovász-Softmax to improve training stability and boundary detail?
Key findings
- Training with ABL improves the mean Intersection-over-Union (mIoU) by 0.7% and boundary F-score by 1.0% on the Cityscapes validation set compared to standard cross-entropy loss.
- On the DAVIS-2016 video object segmentation benchmark, fine-tuning STM with ABL increases the region similarity metric (J-mean) by 0.7% and contour accuracy (F-mean) by 1.0%.
- ABL achieves a Dice Similarity Coefficient (DSC) of 0.768 and Hausdorff Distance (HD) of 0.980 on the WMH dataset, outperforming the baseline with Boundary Loss.
- In qualitative comparisons, ABL produces sharper boundaries for thin objects like traffic lights and motorcycle tails, with predicted boundaries progressively aligning toward ground-truth edges.
- ABL consistently improves performance across diverse models, including DeepLabV3, OCR, SwinTransformer, and STM, demonstrating its generalization and plug-and-play nature.
- ABL outperforms both Boundary Loss and IoU-based losses in boundary alignment, particularly in regions near boundaries where prior methods suffer from weak supervision.
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.