Deep Attentional Guided Image Filtering

Zhiwei Zhong, Xianming Liu, Junjun Jiang, Debin Zhao, Xiangyang Ji

TL;DR

This paper introduces Deep Attentional Guided Image Filtering (DAGF), a novel framework that addresses limitations in existing guided filters by jointly learning from both guidance and target images. DAGF uses an "attentional kernel learning" module to adaptively combine information from both sources, leading to more robust and artifact-free image processing, particularly in challenging scenarios like super-resolution and cross-modality restoration.

What Problem Does This Paper Address?

Guided filters are powerful tools for transferring structural information from a "guidance" image to a "target" image. This is useful in tasks like enhancing low-resolution images with a high-resolution guide, or restoring images from different modalities (e.g., RGB and depth). However, a key challenge arises when the guidance and target images have significantly different structures or contain noise. Existing methods often rely solely on the guidance image to construct filter kernels, which can lead to artifacts like blurred edges or unwanted texture copying when the guidance is unreliable. The paper aims to overcome this by developing a filter that can intelligently leverage both the guidance and the target image, adapting its behavior based on the consistency between them.

Methods

The core innovation of DAGF lies in its attentional kernel learning (AKL) module. Instead of just using the guidance, AKL generates two sets of filter kernels: one from the guidance image and another from the target image. These dual kernels are then adaptively combined using an attention mechanism. This attention mechanism learns a pixel-wise "reliability weight," allowing the filter to rely more on the guidance when structures are consistent and more on the target itself when they are not.

The framework also employs a multi-scale guided filtering approach. This means the filtering process is applied iteratively across different resolutions (from coarse to fine), allowing for better capture of both high-level structural information and fine details. A multi-scale fusion strategy with deep supervision is used to effectively combine the results from these different scales.

Datasets

The paper evaluates DAGF on several standard datasets for various tasks:

  • Depth Image Super-Resolution: NYU v2 dataset, Sintel dataset, Lu dataset, Middlebury dataset.
  • Saliency Map Super-Resolution: DUT-OMRON dataset.
  • Cross-modality Image Restoration: ToFMark dataset.
  • Semantic Segmentation: Pascal VOC 2012 dataset.

The authors also mention training on NYU v2 for depth image super-resolution and then directly applying the model to saliency map super-resolution without fine-tuning, demonstrating generalization.

Key Insights and Ideas

  • Dual Regression is Key: The paper argues that guided filtering should perform "dual regression" – learning from both guidance and target – not just relying on the guidance. This is crucial for handling inconsistencies.
  • Attention for Adaptive Fusion: An attentional mechanism is a more effective way to combine information from guidance and target than simple concatenation or element-wise multiplication used in prior work. It allows for dynamic weighting based on pixel-wise reliability.
  • Multi-Scale Processing for Robustness: Applying filtering across multiple scales (coarse-to-fine) helps in recovering both global structures and fine details, leading to more comprehensive results.
  • Boundary Awareness Matters: Explicitly incorporating a boundary-aware loss function helps preserve high-frequency details and produce sharper edges, which is often a challenge for pixel-wise loss functions.

Key Results

DAGF demonstrates state-of-the-art performance across several tasks:

  • Depth Image Super-Resolution: Achieved the first place in the real depth map SR challenge at ACM ICMR'2021. Quantitative results show significant RMSE improvements over existing methods, e.g., outperforming DKN by 0.12(4×), 0.24(8×), and 0.39(16×) on average RMSE.
  • Saliency Map Super-Resolution: Achieved the best F-measure score on the DUT-OMRON dataset, outperforming methods like DKN and PAC.
  • Cross-modality Image Restoration: Showed superior results in joint depth image super-resolution and denoising, producing clearer and sharper boundaries with less noise and fewer artifacts compared to methods like PAC and DJFR.
  • Semantic Segmentation: Outperformed the second-best model (DKN) by 0.16% mIoU on the Pascal VOC 2012 dataset.

Qualitatively, DAGF consistently produces sharper edges, fewer artifacts, and more faithful reconstructions compared to existing methods, especially in challenging scenarios with inconsistent structures or noise.

Limitations and Future Work

  • Computational Complexity: While DAGF offers improved performance, the multi-scale architecture and kernel generation can increase computational cost. The paper notes that reducing the number of pyramid levels can offer a better trade-off between performance and complexity.
  • Generalization: The paper demonstrates good generalization by training on one dataset and testing on others, but further exploration of its limits across diverse and complex degradation scenarios could be a future direction.
  • Hyperparameter Tuning: While ablation studies explore hyperparameter choices (kernel size, pyramid levels), optimal settings might vary across different applications, suggesting potential for automated hyperparameter optimization.

Summary updated

BibTeX
@article{zhong2024deep,
  author = {Zhiwei Zhong and Xianming Liu and Junjun Jiang and Debin Zhao and Xiangyang Ji},
  title = {{Deep Attentional Guided Image Filtering}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
  doi = {10.1109/tnnls.2023.3253472},
}
Figure