Abstract
Image processing and pixel-wise dense prediction have been advanced by harnessing the capabilities of deep learning. One central issue of deep learning is the limited capacity to handle joint upsampling. We present a deep learning building block for joint upsampling, namely guided filtering layer. This layer aims at efficiently generating the high-resolution output given the corresponding low-resolution one and a high-resolution guidance map. The proposed layer is composed of a guided filter, which is reformulated as a fully differentiable block. To this end, we show that a guided filter can be expressed as a group of spatial varying linear transformation matrices. This layer could be integrated with the convolutional neural networks (CNNs) and jointly optimized through end-to-end training. To further take advantage of end-to-end training, we plug in a trainable transformation function that generates task-specific guidance maps. By integrating the CNNs and the proposed layer, we form deep guided filtering networks. The proposed networks are evaluated on five advanced image processing tasks. Experiments on MIT-Adobe FiveK Dataset demonstrate that the proposed approach runs 10-100 times faster and achieves the state-of-the-art performance. We also show that the proposed guided filtering layer helps to improve the performance of multiple pixel-wise dense prediction tasks.
Introduction: The Challenge of High-Resolution Dense Prediction
Deep learning has revolutionized "dense prediction" tasks such as semantic segmentation, depth estimation, and image retouching. However, processing high-resolution images (e.g., 4K) directly through deep Convolutional Neural Networks (CNNs) remains computationally prohibitive and memory-intensive.
To mitigate this, researchers often employ a "coarse-to-fine" strategy: downsampling the input, processing it at a lower resolution, and then upsampling the result. The bottleneck in this workflow is joint upsampling: scaling the low-resolution output back to the original size while preserving sharp edges and fine details from the high-resolution input. Traditional upsampling methods often result in blurry boundaries, while classic edge-preserving filters like the bilateral filter are typically slow and difficult to integrate into end-to-end trainable deep learning frameworks.
Methodology: The Deep Guided Filtering Network (DGF)
The authors introduce the Deep Guided Filtering Network (DGF), which centers on a novel, fully differentiable Guided Filtering Layer. This layer reformulates the traditional guided filter—a popular edge-preserving operator—into a computational graph of spatially varying linear transformation matrices.
The DGF pipeline operates in three main stages:
- Downsampling: The high-resolution input ($I_h$) is downsampled to a low-resolution version ($I_l$).
- Low-Resolution Prediction: $I_l$ is processed by a standard CNN to generate a low-resolution prediction ($O_l$).
- Guided Upsampling: The Guided Filtering Layer combines $I_h$, $I_l$, and $O_l$ to produce the final high-resolution output ($O_h$).
A key innovation is the inclusion of Learnable Guidance Maps. Instead of using the raw input image as guidance, a small sub-network ($F(I)$) learns to generate task-specific guidance. This allows the model to prioritize relevant edges for specific tasks, such as ignoring fine textures during segmentation while preserving them for detail enhancement.
Experimental Results and Performance
The DGF was evaluated across diverse tasks using datasets including MIT-Adobe FiveK (retouching, dehazing), KITTI (depth estimation), and PASCAL VOC 2012 (segmentation).
Efficiency and Speed
The most significant advantage of the DGF is its efficiency. By performing the bulk of the computation (coefficient calculation) at low resolution and applying a simple linear transformation at high resolution, the model achieves massive speedups.
On a Titan X GPU, the DGF processes 3072px images in approximately 10–20ms, making it 10–100x faster than the Context Aggregation Network (CAN). Furthermore, it is exceptionally memory-efficient, requiring less than 1GB of VRAM for 3K images, whereas competitors can exceed 10GB.
Quality and Boundary Refinement
Beyond speed, the DGF achieves state-of-the-art performance on the MIT-Adobe FiveK dataset for style transfer and retouching. In dense prediction tasks like segmentation and saliency detection, the layer consistently improves metrics (e.g., Mean IOU) by sharpening object boundaries that standard CNNs typically struggle to resolve.
Conclusion
The Deep Guided Filtering Network demonstrates that classic image processing filters can be successfully integrated into deep learning architectures as differentiable layers. This synergy allows the preceding CNN to "learn" how to produce outputs optimized for the filtering stage. While the guided filter is resolution-dependent, the DGF provides a powerful, efficient building block for high-resolution image processing, enabling real-time performance on high-resolution inputs.
Summary updated