Devil Is in the Edges: Learning Semantic Boundaries From Noisy Annotations.

David Acuna, Amlan Kar, Sanja Fidler

Abstract

We tackle the problem of semantic boundary prediction, which aims to identify pixels that belong to object(class) boundaries. We notice that relevant datasets consist of a significant level of label noise, reflecting the fact that precise annotations are laborious to get and thus annotators trade-off quality with efficiency. We aim to learn sharp and precise semantic boundaries by explicitly reasoning about annotation noise during training. We propose a simple new layer and loss that can be used with existing learning-based boundary detectors. Our layer/loss enforces the detector to predict a maximum response along the normal direction at an edge, while also regularizing its direction. We further reason about true object boundaries during training using a level set formulation, which allows the network to learn from misaligned labels in an end-to-end fashion. Experiments show that we improve over the CASENet backbone network by more than 4% in terms of MF(ODS) and 18.61% in terms of AP, outperforming all current state-of-the-art methods including those that deal with alignment. Furthermore, we show that our learned network can be used to significantly improve coarse segmentation labels, lending itself as an efficient way to label new data.

Introduction

In computer vision, identifying the exact pixels that form an object's boundary—semantic boundary detection—is a critical yet challenging task. The primary bottleneck is the quality of available data. Annotating precise boundaries is incredibly slow, often taking up to a minute per object. To save time, human annotators frequently provide "noisy" labels that are either too thick or slightly offset from the actual edge. Standard deep learning models trained on this data tend to inherit this sloppiness, producing blurry, thick boundary predictions that lack the precision required for tasks like robotic grasping or medical imaging.

The STEAL (Semantically Thinned Edge Alignment Learning) framework addresses this by explicitly reasoning about annotation noise during training. The core objective is to enable a model to learn to be more precise than the noisy labels it was trained on.

Methodology

STEAL introduces two main components that can be integrated into existing boundary detection networks, such as CASENet:

Semantic Boundary Thinning Layer & NMS Loss

Standard models often treat nearby pixels independently, leading to thick edges. STEAL introduces a differentiable layer inspired by Non-Maximum Suppression (NMS). During training, the model samples pixels along the "normal" direction (perpendicular to the edge) and uses a specialized loss to ensure the highest response occurs exactly on the thin boundary line. This forces the network to produce sharp, single-pixel-wide predictions directly during backpropagation.

STEAL Architecture: The inference pipeline includes a boundary detection network and NMS architecture, while the training pipeline incorporates active alignment and NMS loss.

Active Alignment

Instead of treating human labels as absolute truth, STEAL treats the "true" boundary as a latent variable. It utilizes a Level Set formulation—a mathematical framework for evolving curves—to allow ground-truth labels to "snap" toward the high-confidence edges predicted by the network during training. This iterative refinement allows the model to essentially "fix" noisy training data as it learns.

Experiments and Results

The researchers evaluated STEAL on the Semantic Boundaries Dataset (SBD) and Cityscapes. On the SBD dataset, STEAL improved the baseline CASENet backbone by over 4% in MF(ODS) and 18.61% in Average Precision (AP), outperforming state-of-the-art methods that deal with alignment.

Qualitative Results on SBD: Comparison between CASENet, the proposed method, the addition of the thinning layer, and the ground-truth.

Key insights from the results include:

  • Differentiable NMS: By making NMS a differentiable loss function, the model learns to optimize for sharpness directly rather than relying on post-processing.
  • Label Refinement: The learned network can be used to automatically "clean" coarse human labels. Refining Cityscapes-coarse labels improved their accuracy (IoU) by over 20% for certain categories, suggesting a powerful tool for semi-automated data labeling.

Conclusion

STEAL demonstrates that by explicitly modeling annotation noise, networks can surpass the precision of their own training labels. While the active alignment strategy requires a "warm-up" period before it can reliably correct human labels, the resulting sharp boundaries offer significant advantages for downstream applications. Future work may involve integrating this boundary-thinning logic directly into instance segmentation frameworks to produce masks that are perfectly crisp at the edges.

Summary updated

BibTeX
@inproceedings{acuna2019devil,
  author = {David Acuna and Amlan Kar and Sanja Fidler},
  title = {{Devil Is in the Edges: Learning Semantic Boundaries From Noisy Annotations.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=Bo-WhTflupr},
}
Figure