Skip to main content
QUICK REVIEW

[Paper Review] Pixel Difference Networks for Efficient Edge Detection

Zhuo Su, Wenzhe Liu|arXiv (Cornell University)|Aug 16, 2021
Advanced Neural Network ApplicationsComputer Science64 references14 citations
TL;DR

This paper proposes Pixel Difference Networks (PiDiNet), a lightweight, efficient edge detection architecture that integrates traditional edge operators (e.g., Sobel, Canny) into convolutional layers via a novel pixel difference convolution (PDC). PiDiNet achieves human-level performance (0.807 ODS F-measure) on BSDS500 with only 710K parameters and 100 FPS, training from scratch without ImageNet pretraining, outperforming prior methods in efficiency and accuracy.

ABSTRACT

Recently, deep Convolutional Neural Networks (CNNs) can achieve human-level performance in edge detection with the rich and abstract edge representation capacities. However, the high performance of CNN based edge detection is achieved with a large pretrained CNN backbone, which is memory and energy consuming. In addition, it is surprising that the previous wisdom from the traditional edge detectors, such as Canny, Sobel, and LBP are rarely investigated in the rapid-developing deep learning era. To address these issues, we propose a simple, lightweight yet effective architecture named Pixel Difference Network (PiDiNet) for efficient edge detection. Extensive experiments on BSDS500, NYUD, and Multicue are provided to demonstrate its effectiveness, and its high training and inference efficiency. Surprisingly, when training from scratch with only the BSDS500 and VOC datasets, PiDiNet can surpass the recorded result of human perception (0.807 vs. 0.803 in ODS F-measure) on the BSDS500 dataset with 100 FPS and less than 1M parameters. A faster version of PiDiNet with less than 0.1M parameters can still achieve comparable performance among state of the arts with 200 FPS. Results on the NYUD and Multicue datasets show similar observations. The codes are available at https://github.com/zhuoinoulu/pidinet.

Motivation & Objective

  • Address the high computational and memory cost of large CNN backbones in state-of-the-art edge detection models.
  • Integrate classical edge detection operators (e.g., Sobel, Canny) into deep learning frameworks to enhance gradient-aware feature learning.
  • Enable high-performance edge detection with minimal model size and inference latency, while eliminating the need for large-scale pretraining.
  • Demonstrate that models can achieve human-level accuracy through training from scratch using only limited datasets like BSDS500 and VOC.

Proposed method

  • Propose a new convolutional operation called Pixel Difference Convolution (PDC), which computes pairwise pixel differences in the input feature map before applying standard convolutional weights.
  • PDC explicitly encodes gradient information from local image patches, enabling the network to better detect edges without relying solely on random kernel initialization.
  • Design a lightweight network architecture, PiDiNet, based on PDC blocks, with reduced parameter count and high inference speed.
  • Train PiDiNet end-to-end from scratch using only the BSDS500 and VOC datasets, avoiding ImageNet pretraining.
  • Use multi-scale supervision and skip connections to preserve fine-grained edge details, similar to HED and RCF.
  • Optimize for inference efficiency by minimizing MACs and model size while maintaining competitive accuracy.

Experimental results

Research questions

  • RQ1Can integrating classical edge detection operators into CNNs improve edge detection performance without increasing model complexity?
  • RQ2Can a lightweight CNN trained from scratch achieve human-level performance on edge detection benchmarks?
  • RQ3Does the proposed PDC layer enhance gradient sensitivity and edge localization compared to standard convolutions?
  • RQ4How does PiDiNet compare in accuracy and efficiency to state-of-the-art models that rely on large pre-trained backbones?

Key findings

  • PiDiNet achieves an ODS F-measure of 0.807 on the BSDS500 dataset, surpassing the human perception benchmark (0.803), with only 710K parameters and 100 FPS.
  • A smaller version of PiDiNet with less than 0.1M parameters achieves 215 FPS and an ODS F-measure of 0.787, comparable to state-of-the-art models.
  • On the NYUD dataset, PiDiNet achieves an ODS F-measure of 0.756 (RGB-HHA) with 62 FPS, outperforming HED and BDCN in both speed and accuracy.
  • On the Multicue dataset, PiDiNet achieves an ODS F-measure of 0.855 (boundary) and 0.860 (edge) with 17 FPS, matching or exceeding SOTA models in accuracy.
  • PiDiNet-L, a larger variant, achieves 88 FPS on NYUD and 23 FPS on Multicue, demonstrating high inference efficiency across datasets.
  • The ablation study confirms that PDC improves edge detection quality by enhancing gradient sensitivity, as shown in qualitative comparisons with RCF, CED, and BDCN.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.