Abstract
Modern edge detection using Convolutional Neural Networks (CNNs) often produces thick, blurry boundaries that require non-differentiable post-processing like Non-Maximum Suppression (NMS). This paper introduces a novel approach to generate "crisp" boundaries directly from the network. By employing a bottom-up/top-down architecture and a loss function based on the Dice coefficient, the proposed method achieves pixel-accurate predictions. The model sets new state-of-the-art performance on the BSDS500 and NYUDv2 benchmarks while maintaining real-time processing speeds.
Introduction
Edge detection is a fundamental task in computer vision, yet deep learning models have historically struggled with precision. While architectures like Holistically-nested Edge Detection (HED) and Richer Convolutional Features (RCF) have improved accuracy, their outputs are typically several pixels wide. This "thickness" problem stems from the heavy class imbalance between edge and non-edge pixels, usually addressed by Weighted Cross-Entropy (WCE) loss. WCE encourages the network to over-predict edge pixels to avoid missing the thin ground truth, resulting in blurry boundaries.
Methodology
The authors propose a two-fold solution involving a structural loss function and an efficient refinement architecture.
Dice Loss for Structural Similarity
The core innovation is the use of the Dice coefficient as a loss function. Unlike pixel-wise cross-entropy, which treats each pixel independently, the Dice loss considers the edge map as a global structure. It measures the overlap between the predicted set of pixels and the ground truth. Because the Dice coefficient is maximized only when the sets perfectly align, it naturally penalizes the "thick" predictions that stray from the single-pixel ground truth. The final objective function combines Dice loss with cross-entropy: $L_{final} = \alpha L_{Dice} + \beta L_{CrossEntropy}$.
Bottom-Up/Top-Down Architecture
The network utilizes a VGG-16 backbone in an encoder-decoder configuration. To recover spatial resolution lost during downsampling, a top-down pathway is implemented. To maintain efficiency and prevent overfitting on small datasets like BSDS500, the authors replaced standard convolutions in the decoder with ResNeXt blocks and utilized grouped deconvolutional layers. This reduced the parameter count from 22.64M to 15.69M while enhancing feature extraction.
Experimental Results
The model was evaluated on the BSDS500 and NYUDv2 datasets. On BSDS500, it achieved a state-of-the-art ODS F-score of 0.815. Notably, the raw output (before NMS) is significantly sharper than previous methods, confirming that the network itself performs the thinning.
On the NYUDv2 dataset, the authors fused RGB data with HHA features (depth-encoded information), reaching a record ODS F-score of 0.762. The single-scale version of the detector operates at 30 FPS on a GTX 980, making it viable for real-time applications.
Conclusion
By shifting the focus from pixel-wise classification to structural similarity via Dice loss, this work eliminates the need for traditional edge-thinning post-processing. The resulting "crisp" boundaries are not only visually superior but also more accurate for downstream tasks. Future work includes extending this approach to semantic boundary detection and optical flow.
Summary updated