One-Stage Deep Edge Detection Based on Dense-Scale Feature Fusion and Pixel-Level Imbalance Learning

Chunjie Wang, Dawei Dai, Shuyin Xia, Yingge Liu, Guoyin Wang

TL;DR

This paper introduces a novel one-stage deep learning model for edge detection that eliminates the need for traditional post-processing steps like Non-Maximum Suppression (NMS). By combining a dense-scale feature fusion mechanism with a specialized Tversky-based loss function, the model generates "crisp," high-quality edges that achieve state-of-the-art results on major benchmarks.

What Problem Does This Paper Address?

Edge detection is a fundamental computer vision task, yet most modern Deep Convolutional Neural Network (DCNN) models suffer from two major issues:

  1. The "Two-Stage" Requirement: Most models produce thick, blurry edge maps that require heuristic post-processing (NMS and morphological thinning) to become usable.
  2. The Crisp-Edge Prediction Problem: Because edge pixels are a tiny fraction of an image, models struggle with pixel-level imbalance. Background pixels near an object's edge are frequently misclassified, leading to "bleeding" or thick edges in the final output.

The authors argue these issues stem from detail loss during up-sampling in the decoder and the inability of standard weighted cross-entropy loss to sufficiently penalize false positives (FP) near true edges.

Methods

The authors propose a one-stage encoder-decoder architecture with two primary innovations:

  • Dense-Scale Feature Fusion: Unlike standard skip connections, this model uses a multi-layer feature fuser. It concatenates features from every scale of the encoder (e.g., VGG16 or EfficientNetv2) directly into the corresponding layers of the decoder. This ensures that low-level spatial details (location) and high-level semantic features (context) are fully utilized to prevent blurring during up-sampling.
  • Tversky-Based Loss Function: To solve the "thickness" problem, the authors move beyond standard cross-entropy. They introduce a loss based on the Tversky index, a generalization of the Dice coefficient. This allows them to tune the penalties for False Positives (FP) and False Negatives (FN) separately using constants $\alpha$ and $\beta$. By setting $\alpha=0.7$, they place a higher penalty on false positives near the edge, forcing the network to produce much thinner, "crisper" lines. The final loss is a combination of this Tversky loss and weighted cross-entropy.

Datasets

The model was evaluated on three standard edge detection benchmarks:

  • BSDS500: The gold standard for natural image edge detection.
  • NYUDv2: A dataset consisting of RGB and HHA (depth-encoded) images of indoor scenes.
  • Multicue: A dataset featuring high-resolution images (1280 × 720) focused on boundary and edge pixels.

Key Insights and Ideas

  • Post-processing is a Crutch: The authors demonstrate that if the loss function is designed to specifically target pixel-level imbalance and "crispness," the traditional NMS step—which is computationally expensive and non-differentiable—becomes unnecessary.
  • Asymmetric Penalties Matter: In edge detection, a False Positive (predicting an edge where there isn't one) near a real edge is more damaging to "crispness" than a False Negative. The Tversky loss allows the model to be "pickier" about where it places an edge.
  • Backbone Flexibility: The architecture is modular. While VGG16 is a common baseline, switching to EfficientNetv2 provided a significant boost in performance, showing the approach scales well with more modern encoders.

Key Results

The model achieved state-of-the-art (SOTA) performance across all datasets, particularly in the CEval (Crispness-emphasized evaluation) metric, which measures performance without NMS.

  • BSDS500: Using an EfficientNetv2 backbone with PASCAL VOC augmentation, the model reached an ODS F-measure of 0.823, surpassing the average human performance (0.803).
  • NYUDv2: The model showed a massive improvement in crispness. In evaluations emphasizing fine edges, it outperformed the previous SOTA (CATS) by 14.1% in ODS scores.
  • Multicue: On the "Edge" task, the model achieved an ODS of 0.886, significantly higher than previous models like RCF (0.857) and DRC (0.859).

Qualitatively, the visual results show significantly thinner lines that align more closely with ground-truth labels compared to previous methods like RCF, which often produce "halo" effects around objects.

Limitations and Future Work

While the model handles pixel imbalance better than its predecessors, the authors acknowledge that severe pixel-level imbalance remains a fundamental challenge. In many images, edges represent less than 1% of the total pixels.

Future work will focus on:

  • Developing even more refined ways to learn true pixel-level labels for these extremely small proportions of pixels.
  • Further optimizing the one-stage architecture for real-time applications where the removal of NMS provides a significant speed advantage.

Summary updated

BibTeX
@article{wang2024one,
  author = {Chunjie Wang and Dawei Dai and Shuyin Xia and Yingge Liu and Guoyin Wang},
  title = {{One-Stage Deep Edge Detection Based on Dense-Scale Feature Fusion and Pixel-Level Imbalance Learning}},
  journal = {IEEE Trans. Artif. Intell.},
  year = {2024},
  url = {https://openreview.net/forum?id=2vQlYASpbn},
}

Loading related content...

Figure