[Paper Review] Locally Adaptive Learning Loss for Semantic Image Segmentation
This paper proposes a locally adaptive learning loss for semantic image segmentation that enhances intra- and inter-class discriminative capabilities by adaptively pooling neighboring predictions of the same category before computing loss. By focusing on regional consistency through category-aware local pooling, the method achieves a 1.5% mean IoU improvement over standard cross-entropy on Pascal VOC 2012, outperforming center loss and focal loss.
We propose a novel locally adaptive learning estimator for enhancing the inter- and intra- discriminative capabilities of Deep Neural Networks, which can be used as improved loss layer for semantic image segmentation tasks. Most loss layers compute pixel-wise cost between feature maps and ground truths, ignoring spatial layouts and interactions between neighboring pixels with same object category, and thus networks cannot be effectively sensitive to intra-class connections. Stride by stride, our method firstly conducts adaptive pooling filter operating over predicted feature maps, aiming to merge predicted distributions over a small group of neighboring pixels with same category, and then it computes cost between the merged distribution vector and their category label. Such design can make groups of neighboring predictions from same category involved into estimations on predicting correctness with respect to their category, and hence train networks to be more sensitive to regional connections between adjacent pixels based on their categories. In the experiments on Pascal VOC 2012 segmentation datasets, the consistently improved results show that our proposed approach achieves better segmentation masks against previous counterparts.
Motivation & Objective
- To address the limitation of standard pixel-wise cross-entropy loss in capturing spatial relationships among neighboring pixels of the same class.
- To improve deep neural networks' sensitivity to regional connections and intra-class variations in semantic segmentation.
- To mitigate class imbalance in long-tailed datasets by introducing a category-aware local loss mechanism.
- To demonstrate that local, adaptive pooling of predictions enhances model discriminative power without increasing computational complexity.
Proposed method
- A selective adaptive pooling filter slides over predicted feature maps and ground truth labels in parallel, grouping neighboring pixels with the same category as the center pixel.
- At each stride, the method pools predicted class distributions from a local neighborhood into a single merged vector based on the center pixel's category.
- The loss is computed between the merged vector and the ground truth label of the center pixel, emphasizing regional consistency over individual pixel accuracy.
- The filter uses variable kernel sizes (e.g., 3×3, 5×5, 7×7) and a fixed receptive field depth of 21, enabling localized, category-specific supervision.
- The loss is integrated as a differentiable layer in the network, maintaining the same time complexity as standard cross-entropy during training.
- The method is compatible with existing architectures and can be combined with other losses like focal loss or center loss for further performance gains.
Experimental results
Research questions
- RQ1Can a locally adaptive loss that pools predictions from same-category neighbors improve segmentation performance compared to standard pixel-wise cross-entropy?
- RQ2How does the proposed loss affect intra-class compactness and inter-class separability in deep features for semantic segmentation?
- RQ3To what extent can the method mitigate bias toward majority classes in long-tailed segmentation datasets?
- RQ4Does the locally adaptive loss maintain computational efficiency while improving mask accuracy and robustness?
Key findings
- The proposed locally adaptive loss achieved a mean IoU of 76.1% on Pascal VOC 2012 using a 5×5×21 kernel, outperforming standard softmax cross-entropy (74.6%) by 1.5 percentage points.
- The method with a 5×5×21 kernel achieved the highest performance, while larger kernels (7×7×21) led to a slight drop in accuracy, indicating optimal receptive field size.
- Center loss produced nearly identical results to standard cross-entropy (74.5%), suggesting limited benefit in this context.
- Focal loss resulted in a significant drop in performance (70.4%), indicating poor generalization to segmentation when hyperparameters were not carefully tuned.
- Visual comparisons confirmed that models trained with the proposed loss generate more accurate and robust segmentation masks with better object boundary adherence.
- The method effectively improves model sensitivity to regional connections and reduces overfitting to isolated, misclassified pixels.
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.