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

Multi-scale image edge detection based on spatial-frequency domain interactive attention

Yongfei Guo, Bo Li, Wenyue Zhang, Weilong DongFrontiers Neurorobotics 2025

TL;DR

This paper introduces SFIA-MSNet, a novel multi-scale edge detection network that leverages the complementary strengths of spatial and frequency domain information. By introducing a spatial-frequency interactive attention module, the method achieves more accurate and robust edge detection, particularly for small objects and complex backgrounds, outperforming existing state-of-the-art methods.

What Problem Does This Paper Address?

Accurate edge detection is a fundamental yet challenging task in computer vision, crucial for various downstream applications like object detection, segmentation, and tracking. Traditional methods struggle with complex backgrounds and small objects, often leading to lost details or false positives. While deep learning has improved edge detection, effectively integrating information from different domains (spatial and frequency) and at multiple scales remains an open problem. Existing methods often focus on one domain or lack sophisticated mechanisms to fuse information across scales and domains, leading to limitations in handling intricate image structures and noise.

Methods

The proposed SFIA-MSNet architecture is built upon a ResNet50 backbone for spatial feature extraction. It introduces three key modules:

  • Frequency Enhancement Attention (FEA) Module: This module first transforms the image into the frequency domain using Discrete Cosine Transform (DCT) and then separates low-frequency and high-frequency components using the ZigZag method. A self-attention mechanism is then applied to these frequency components to enhance significant edge information and filter out background noise.
  • Multi-Scale Attention (MSA) Module: Designed to capture fine-grained edge details, this module operates on spatial features. It employs dilated convolutions with varying dilation rates (1, 2, and 4) to expand the receptive field and capture multi-scale information. Channel attention is then used to weigh features, and a residual connection fuses them with the original features for refined representations.
  • Spatial-Frequency Interactive Attention (SFIA) Module: This is the core innovation, enabling mutual enhancement between spatial and frequency domain features. It uses an attention mechanism where spatial features guide frequency features, and vice-versa. This interaction allows for a more comprehensive understanding of edge information, leading to improved accuracy and robustness.

The overall framework involves encoding spatial features, applying MSA for multi-scale enhancement, and then using SFIA to fuse these with frequency-enhanced features from FEA. A decoder then reconstructs the final edge map.

Datasets

The proposed method was evaluated on three widely used benchmark datasets:

  • BSDS500: A dataset of natural images commonly used for image segmentation and edge detection. The paper uses 200 images for training, 100 for validation, and 200 for testing.
  • Multicue: Contains 100 challenging natural images with binocular views, where boundaries and edges are strictly distinguished. The dataset is split into 80 images for training and 20 for testing.
  • NYUDv2: A dataset primarily used for semantic segmentation and depth estimation in indoor scenes, consisting of 1449 RGBD images.

Key Insights and Ideas

  • Synergy of Spatial and Frequency Domains: The paper strongly advocates for the combined use of spatial and frequency domain information, demonstrating that each offers complementary insights for edge detection. Frequency domain analysis is particularly effective for noise reduction and separating features that are difficult to distinguish in the spatial domain.
  • Interactive Attention for Cross-Domain Fusion: The SFIA module is a key contribution, moving beyond simple feature concatenation. By enabling mutual guidance and enhancement between spatial and frequency features, it allows the network to learn more robust and contextually aware edge representations.
  • Multi-Scale Feature Enhancement: The MSA module's use of dilated convolutions effectively expands the receptive field, allowing the network to capture edges at various scales, which is crucial for detecting both large structures and fine details.
  • Addressing Small Objects and Complex Backgrounds: The combination of these modules specifically targets the limitations of existing methods in handling small objects and complex backgrounds, where subtle edges can be easily obscured or mistaken for noise.

Key Results

The SFIA-MSNet method demonstrated superior performance across the evaluated datasets:

  • BSDS500: Achieved state-of-the-art results with ODS of 0.824, OIS of 0.845, and AP of 0.885. Ablation studies showed that each proposed module (FEA, MSA, SFIA) contributed to performance improvements, with the full SFIA-MSNet model yielding the best results.
  • NYUDv2: The method achieved ODS of 0.775, OIS of 0.791, and AP of 0.798, outperforming several recent advanced methods, including DiffusionEdge and FF-CNSNP. Visualizations showed its effectiveness in complex indoor scenes.
  • Multicue: SFIA-MSNet achieved the highest scores for both boundary and edge detection tasks, outperforming methods like EDTER.

Qualitatively, the method produced more refined and accurate edges with significantly reduced background interference compared to baseline and other state-of-the-art methods.

Limitations and Future Work

  • Computational Complexity: While the paper presents a complexity analysis, it notes that different backbones significantly impact model complexity. The SFIA-MSNet with a VGG16 backbone offers better complexity control than with ResNet50, but further optimization might be beneficial for real-time applications.
  • Subjective Ambiguity in Datasets: The paper acknowledges that datasets often have multiple annotations, which can introduce noise and mislead optimization due to subjective ambiguity in edge definition. While a thresholding mechanism is used to mitigate this, it's an inherent challenge in edge detection datasets.

Future work could focus on further optimizing the model for real-time performance, exploring different backbone architectures, and investigating its application to more specialized edge detection tasks or datasets with even greater complexity.

Summary updated

BibTeX
@article{guo2025multi,
  author = {Yongfei Guo and Bo Li and Wenyue Zhang and Weilong Dong},
  title = {{Multi-scale image edge detection based on spatial-frequency domain interactive attention}},
  journal = {Frontiers Neurorobotics},
  year = {2025},
  doi = {10.3389/fnbot.2025.1550939},
}
Figure