Abstract
Recent advances in Salient Object Detection (SOD) are largely driven by multi-scale feature representations powered by deep learning. Traditional models typically utilize off-the-shelf encoders with fixed kernel sizes, combining features through various decoder architectures. However, fixed kernels often struggle with the diversity of object scales found in natural images. This paper introduces Dynamic Scale Routing, a novel approach that adaptively selects kernel sizes based on the input content. We propose the Dynamic Pyramid Network (DPNet), featuring two key innovations: the Dynamic Pyramid Convolution (DPConv), which replaces vanilla convolutions with a selection of best-suited kernel sizes, and a self-adaptive bidirectional decoder designed to accommodate these dynamic features. Our approach makes the inference process scale-aware, achieving state-of-the-art performance while maintaining high efficiency.
Introduction
Salient Object Detection (SOD) aims to identify and segment the most visually significant objects in an image—those that naturally draw human attention. While deep learning has significantly improved SOD performance, existing models often suffer from "scale confusion." This occurs because standard convolutional neural networks use fixed-size kernels across all images, regardless of whether the salient object is a tiny bird in the distance or a large building in the foreground.
Small objects are frequently obscured by noise or "false alarms" when processed with kernels that are too large, while large objects may be only partially detected if the kernel size is insufficient to capture global context. To address this, we propose a shift from static architectures to input-dependent, dynamic scale routing.
Methodology
Dynamic Pyramid Convolution (DPConv)
The core of DPNet is the Dynamic Pyramid Convolution (DPConv). Instead of relying on a standard $3\times3$ convolution, DPConv employs a group of pyramidal kernels ranging from $3\times3$ to $9\times9$.
A Dynamic Routing mechanism, powered by a lightweight MLP and channel-wise attention, calculates weights for each kernel size based on the specific input image. This allows the network to "route" information through the most appropriate scale for the scene. To maintain computational efficiency, we utilize group convolutions, ensuring that the dynamic pyramid remains more lightweight than many standard fixed-kernel architectures.
Bidirectional Cross-scale Fusion Module (BiCFM)
Standard decoders typically follow a top-down approach, which can lose fine-grained details. Our Bidirectional Cross-scale Fusion Module (BiCFM) aggregates features in both top-down and bottom-up directions. This ensures that high-level semantic information and low-level textural details are integrated effectively, preserving the boundaries of salient objects.
Dynamic Weighted Fusion (DWF)
In the final stage of the network, we implement Dynamic Weighted Fusion (DWF). Rather than a simple summation of feature maps, the model learns dynamic weights to fuse different feature levels. This allows the network to prioritize the scales that contain the most relevant saliency cues for a given image, preventing coarse features from over-smoothing small, intricate objects.
Experimental Results
Performance and Benchmarks
DPNet was trained on the DUTS-TR dataset and evaluated across six major benchmarks, including DUTS-TE, DUT-OMRON, ECSSD, HKU-IS, PASCAL-S, and a specialized Polyp Segmentation dataset.
On the challenging DUTS-TE dataset, DPNet achieved a 1.6% improvement in max F-measure over previous state-of-the-art models like CTDNet. Qualitative results demonstrate that DPNet excels in scenarios where objects are extremely small or where backgrounds are highly cluttered, effectively eliminating the "ghosting" effects common in other models.
Efficiency and Speed
Despite its dynamic nature, DPNet is remarkably efficient:
- Parameters: It utilizes only 27.1 million parameters, which is 4.8x fewer than models like GateNet.
- Inference Speed: The model achieves a real-time processing speed of 45 FPS on an NVIDIA GTX 2080 GPU.
Discussion and Conclusion
The success of DPNet highlights a critical insight: the network architecture should not be rigid. By making kernel selection a function of the input, the model mimics the human visual system's ability to adjust its focus. While the model occasionally faces challenges with semantic ambiguity—such as scenes where multiple objects could be considered salient—it represents a significant step forward in scale-aware computer vision.
DPNet provides a generic, efficient plug-in for existing backbones, offering a robust solution for the scale confusion problem in salient object detection. Both the code and datasets are available to the research community to further advance the field of dynamic neural architectures.
Summary updated