MEMO: Human-like Crisp Edge Detection Using Masked Edge Prediction
Jiaxin Cheng, Yue Wu, Yicong Zhou
Abstract
Learning-based edge detection models trained with crossentropy loss often suffer from thick edge predictions, which deviate from the crisp, single-pixel annotations typically provided by humans. While previous approaches to achieving crisp edges have focused on designing specialized loss functions or modifying network architectures, we show that a carefully designed training and inference strategy alone is sufficient to achieve human-like edge quality. In this work, we introduce the Masked Edge Prediction MOdel (MEMO), which produces both accurate and crisp edges using only cross-entropy loss. We first construct a largescale synthetic edge dataset to pre-train MEMO, enhancing its generalization ability. Subsequent fine-tuning on downstream datasets requires only a lightweight module comprising 1.2% additional parameters. During training, MEMO learns to predict edges under varying ratios of input masking. A key insight guiding our inference is that thick edge predictions typically exhibit a confidence gradient: high in the center and lower toward the boundaries. Leveraging this, we propose a novel progressive prediction strategy that sequentially finalizes edge predictions in order of prediction confidence, resulting in thinner and more precise contours. Our method achieves visually appealing, post-processing-free, human-like edge maps and outperforms prior methods on crispness-aware evaluations. https://github.com/cplusx/MEMO Edge Detection
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on9
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
- Pixel Difference Networks for Efficient Edge DetectionZhuo Su, Wenzhe Liu, Zitong Yu, Dewen Hu et al.ICCV 2021 · 488 citations
- EDTER: Edge Detection with TransformerMengyang Pu, Yaping Huang, Yuming Liu, Qingji Guan et al.CVPR 2022 · 224 citations
Related papers
- MatchED: Crisp Edge Detection Using End-to-End, Matching-based SupervisionBedrettin Cetinkaya, Sinan Kalkan, Emre AkbasCVPR 2026 · 2 citations
- DiffusionEdge: Diffusion Probabilistic Model for Crisp Edge DetectionYunfan Ye, Kai Xu, Yuhang Huang, Renjiao Yi et al.AAAI 2024 · 101 citations
- MuGE: Multiple Granularity Edge DetectionCaixia Zhou, Yaping Huang, Mengyang Pu, Qingji Guan et al.CVPR 2024 · 25 citations
- SAUGE: Taming SAM for Uncertainty-Aligned Multi-Granularity Edge DetectionXing Liufu, Chaolei Tan, Xiaotong Lin, Yonggang Qi et al.AAAI 2025 · 10 citations
- The Treasure Beneath Multiple Annotations: An Uncertainty-Aware Edge DetectorCaixia Zhou, Yaping Huang, Mengyang Pu, Qingji Guan et al.CVPR 2023
