Abstract
Traditional edge detection models often produce a single, deterministic edge map, failing to capture the inherent subjectivity of the task. We present MuGE (Multiple Granularity Edge Detection), a framework that explicitly models edge granularity as a controllable parameter. By leveraging frequency domain decomposition and dual-domain embedding, MuGE generates a spectrum of edge maps—from coarse silhouettes to intricate textures. Our approach achieves state-of-the-art results on the BSDS500 and Multicue benchmarks, offering both superior precision and user-steerable diversity.
Introduction
Edge detection is inherently subjective. When asked to trace edges in a photograph, different individuals focus on different levels of detail: some prioritize main object silhouettes (coarse granularity), while others include every fine texture and wrinkle (fine granularity). Most existing deep learning models treat this as a deterministic task, producing a single "average" result that lacks diversity and user control. MuGE addresses this by treating granularity as a structured spectrum rather than noise, allowing users to navigate levels of detail intentionally.
Methodology
The MuGE framework introduces three key technical innovations to achieve controllable, multi-granularity output:
- Edge Granularity Network: Utilizing a VGG16 backbone, this network learns to map edge annotations to a scalar value $\alpha$ between 0 (coarse) and 1 (fine). It is trained by comparing simple annotations (fewest edge pixels) against complex ones (most edge pixels).
- Frequency Domain Decomposition: Recognizing that low-frequency components represent rough contours while high-frequency components represent fine textures, MuGE uses the Discrete Fourier Transform (DFT) to split feature maps. The granularity scalar $\alpha$ acts as a "detail knob," suppressing or enhancing high-frequency components.
- Dual-Domain Embedding: Granularity information is integrated into both spatial feature maps and the frequency domain, providing precise control over the final output.
- Specialized Loss Functions: The model employs Focal Frequency Loss (FFL) for crisp edges and a CLIP loss to ensure semantic consistency between the edge map and the original image.
Results and Discussion
MuGE was evaluated on the BSDS500 and Multicue benchmarks, where it demonstrated both quantitative and qualitative superiority.
Quantitative Performance
On the BSDS500 benchmark (Multi-Scale setting), MuGE achieved an ODS score of 0.861, surpassing previous state-of-the-art models like UAED (0.844) and EDTER (0.848). On the Multicue boundary detection task, MuGE outperformed the nearest competitor by a significant 1.1% in ODS.
Qualitative Diversity
Unlike probabilistic models that produce similar-looking samples, MuGE provides a logical progression of detail. As shown in the comparison below, varying the granularity parameter allows the model to transition from clean object boundaries to dense texture maps.
Conclusion
MuGE successfully reframes edge detection as a multi-granularity task, providing a continuous "knob" for detail control. While the current model defines granularity based on pixel density, future work may explore more flexible control schemes, such as using text prompts (e.g., "show only object boundaries") to guide the detection process via large-scale vision-language models.
Summary updated