NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tiny and Efficient Model for the Edge Detection Generalization

Xavier Soria, Yachuan Li, Mohammad Rouhani, Angel Domingo SappaWorkshops @ ICCV 2023 · DOI

Abstract

Edge detection is a fundamental low-level vision task that underpins many high-level applications, from autonomous driving to medical imaging. While modern deep learning models have achieved impressive accuracy, they have become increasingly bloated, often requiring millions of parameters and extensive training times. This paper introduces the Tiny and Efficient Edge Detector (TEED), a lightweight convolutional neural network that achieves state-of-the-art performance with only 58K parameters. TEED can be trained from scratch in under 30 minutes and demonstrates superior generalization across diverse image types compared to significantly larger architectures.

The Challenge of Modern Edge Detection

Traditional edge detection methods like Canny are fast but often fail to capture complex semantic boundaries. Conversely, modern Deep Learning (DL) models have grown increasingly complex, with some exceeding 35 million parameters. Furthermore, many models rely on "noisy" ground-truth labels from datasets like BSDS500, which were originally intended for segmentation rather than pure edge detection. There is a clear need for a model that is simple to implement, computationally efficient, and robust enough to work across different image domains without extensive fine-tuning.

Methodology

The authors propose several architectural refinements to minimize model size while maintaining high edge-detection quality.

The TEED architecture featuring a streamlined backbone, USNet modules, and the double fusion (dfuse) block.

Key Innovations

  • Lightweight Backbone: TEED uses a shallow backbone with only three blocks (16, 32, and 48 filters). To maximize efficiency, the authors removed Batch Normalization (BN), which reduces computational overhead during inference.
  • Smish Activation: To compensate for the lack of BN and improve training stability, the model utilizes the Smish activation function: $\zeta(h) = h \cdot \tanh[\ln(1 + \text{sigmoid}(h))]$. Smish was found to provide better convergence and performance than standard ReLU.
  • Double Fusion (dfuse): Inspired by multi-scale fusion techniques, the dfuse module uses Depth-wise Convolutions (DWConv) to merge features from different levels of the network. This module adds fewer than 1,000 parameters while significantly improving edge quality.
  • Double Loss (dloss): The training process is guided by a combination of Weighted Cross-Entropy (to address the edge/non-edge pixel imbalance) and Tracing Loss (to ensure edges are crisp and thin).

Datasets and Evaluation

TEED is trained from scratch on the BIPEDv2 dataset, which contains 250 high-definition images with high-quality edge annotations. To test the model's ability to generalize, the authors introduced the Unified Dataset for Edge Detection (UDED), comprising 30 images from various sources like BSDS, Cityscapes, and NYUD. The model was also evaluated on downstream tasks, specifically sketch-based image retrieval using the QMUL-Shoe and QMUL-Chair datasets.

Key Results

TEED proves that a "tiny" model can compete with and even outperform much larger "heavyweight" models.

Quantitative comparison of TEED against state-of-the-art edge detection models across various metrics.

Efficiency and Speed

  • Parameter Count: At 58K parameters, TEED is a fraction of the size of DexiNed (35M) and PiDiNet (710K).
  • Training Time: TEED reaches convergence in just 6 epochs, taking approximately 30 minutes on a single GPU. In contrast, competing models often require 10 to 53 hours of training.
  • Inference: The model achieves 2.6 FPS on a standard laptop CPU, demonstrating its viability for edge device deployment.

Accuracy and Generalization

On the UDED generalization benchmark, TEED achieved an ODS (Optimal Dataset Scale) of 0.828, outperforming larger models like PiDiNet (0.812) and LDC (0.817). Qualitatively, TEED produces cleaner, thinner edge maps with fewer artifacts. Furthermore, in sketch-based retrieval tasks, TEED achieved the highest Top-1 accuracy, confirming the practical utility of its generated edge maps.

Conclusion

The Tiny and Efficient Edge Detector (TEED) demonstrates that edge detection does not require deep semantic understanding or millions of parameters. By focusing on architectural efficiency and high-quality training data, TEED provides a robust, "plug-and-play" solution for real-time vision pipelines. Future research could explore further optimization for specific edge hardware like FPGAs and deployment in real-time autonomous systems.

Summary updated

BibTeX
@inproceedings{soria2023tiny,
  author = {Xavier Soria and Yachuan Li and Mohammad Rouhani and Angel Domingo Sappa},
  title = {{Tiny and Efficient Model for the Edge Detection Generalization}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00147},
}
Figure