Abstract
Image restoration is a fundamental yet challenging task in computer vision, often relying on the principle of non-local self-similarity. Traditional deep learning approaches to this problem frequently utilize fixed-neighbor non-local operations or pixel-wise correlations, which are prone to noise interference and suboptimal feature aggregation. This paper introduces Dynamic Attentive Graph Learning (DAGL), a novel framework that treats image patches as graph nodes and dynamically adjusts connectivity based on local image content. By incorporating a Graph-based Feature Aggregation Module (GFAM) with a learned dynamic threshold, DAGL effectively filters irrelevant information and captures long-range dependencies. Experimental results demonstrate that DAGL achieves state-of-the-art performance across various restoration tasks, including synthetic and real-world denoising, demosaicing, and compression artifact reduction.
1. Introduction
Image restoration involves recovering a clean, high-quality image from a degraded observation, such as one affected by noise, compression, or downsampling. This is an inherently ill-posed inverse problem. A cornerstone of classical restoration techniques is the "non-local self-similarity" (NSS) prior, which posits that small patches of an image often recur in different locations throughout the frame.
While modern deep neural networks have attempted to integrate NSS through non-local modules, they face two primary challenges. First, most methods calculate correlations at a pixel-wise level, making them highly sensitive to the very degradations they aim to remove. Second, these methods typically use a fixed number of neighbors for every query point. This rigidity is problematic: a uniform sky region may benefit from hundreds of similar patches, whereas a unique structural edge may only have a few relevant neighbors. Forcing a fixed neighbor count often results in over-smoothing or the introduction of artifacts.
2. Dynamic Attentive Graph Learning (DAGL)
To address these limitations, the authors propose DAGL, which leverages Graph Convolutional Networks (GCNs) to model non-local dependencies more flexibly.
2.1 Graph-based Feature Aggregation Module (GFAM)
The core component of DAGL is the GFAM, which processes the image through three distinct stages:
- Patch-wise Graph Initialization: Instead of individual pixels, the network extracts overlapping 3D feature patches. Each patch is treated as a node in a graph, which enhances robustness against noise by considering local structural context during similarity calculations.
- Dynamic Graph Construction (Dynamic KNN): Unlike standard K-Nearest Neighbor (KNN) approaches that use a fixed K, DAGL employs a learned, node-specific threshold. The model calculates similarity scores between patches and applies an affine transformation to generate a unique threshold for each node. Only neighbors exceeding this threshold are connected, allowing the graph topology to adapt to the image content.
- Graph Attention Aggregation: Following graph construction, a Graph Attention Network (GAT) mechanism weights the connections. The features of a central node are updated via a weighted sum of its neighbors, ensuring that more relevant patches contribute more significantly to the restoration.
2.2 Multi-head Architecture
Similar to the multi-head attention mechanism found in Transformers, DAGL utilizes a Multi-head GFAM (M-GFAM). This allows the model to jointly aggregate information from different representation subspaces, further improving the richness of the learned features.
3. Experimental Evaluation
The DAGL model was trained on the DIV2K and SIDD datasets and evaluated across several benchmarks for four distinct restoration tasks.
3.1 Denoising Performance
On synthetic denoising tasks (using Set12, BSD68, and Urban100), DAGL consistently outperformed existing graph-based methods. For instance, on the Urban100 dataset with a noise level of σ=25, DAGL achieved a PSNR of 31.39 dB, significantly higher than GCDN (30.95 dB) and N3Net (30.19 dB). In real-world denoising on the DND benchmark, DAGL reached 39.83 dB, surpassing larger models like AINDNet (13.76M parameters).
3.2 Compression Artifacts and Demosaicing
The versatility of the DAGL framework was further proven in compression artifact reduction (LIVE1, Classic5) and demosaicing (McMaster18, Kodak24, Urban100). In Urban100 demosaicing, DAGL scored 40.20 dB, outperforming the previous state-of-the-art RNAN (39.75 dB).
4. Discussion and Insights
The success of DAGL can be attributed to its content-adaptive nature. By allowing the image content to dictate connectivity, the network avoids the pitfalls of over-smoothing. Smooth regions naturally connect to many neighbors, while complex textures connect to few, preserving high-frequency details. Furthermore, the use of patches rather than pixels makes the similarity metric robust to heavy corruption, as the structural information within a patch is more stable than a single noisy pixel value.
5. Conclusion
DAGL introduces a powerful and flexible approach to image restoration by combining graph learning with dynamic attention. By moving away from fixed-neighbor, pixel-wise operations, the model achieves superior restoration quality across a variety of degradation types. While there is a trade-off between the number of attention heads and computational cost, the current architecture provides an efficient balance for state-of-the-art performance. Future research may explore applying this dynamic graph framework to high-level vision tasks where long-range feature correlations are equally vital.
Summary updated