Abstract
Image restoration (IR) is the task of recovering high-quality images from degraded inputs, such as those affected by noise, compression, or demosaicing errors. While Convolutional Neural Networks (CNNs) have dominated this field, they often struggle to capture long-range dependencies due to their local receptive fields. This paper introduces the Multi-level Attention-guided Graph Neural Network (MAGN), a novel architecture that models both pixel-level and patch-level relationships. By employing dynamic graph convolutions and a similarity-based masking mechanism, MAGN efficiently aggregates non-local information, outperforming existing state-of-the-art methods across multiple benchmarks.
Introduction
The primary challenge in image restoration is the effective utilization of global context. Natural images exhibit significant self-similarity, where patterns recur across distant regions. Traditional CNNs rely on deep stacking to increase receptive fields, which is often inefficient for capturing these non-local correlations. While Graph Neural Networks (GNNs) offer a solution by treating image components as nodes, existing GNN-based IR models frequently fail to integrate multi-scale features effectively. MAGN addresses this by simultaneously modeling relationships at the pixel and patch levels within a unified residual framework.
Methods
The MAGN architecture is built upon the integration of two distinct graph structures designed to capture multi-scale information:
- Pixel-level Information Aggregation: Individual pixels are treated as nodes. A multi-head attention mechanism computes similarities across the image, allowing pixel values to be updated based on globally similar counterparts.
- Patch-level Information Aggregation: The image is decomposed into overlapping patches, which serve as nodes in a "block graph." This captures higher-level structural similarities, such as textures and edges, that exceed the scope of a single pixel.
- Dynamic Graph Construction and Sparsity: Unlike static models, MAGN constructs graphs dynamically during inference. It utilizes a similarity mask to prune low-correlation edges, reducing computational overhead and preventing the "over-smoothing" effect common in GNNs.
- Hybrid Residual Learning: The model alternates between standard residual blocks for local feature extraction and Graph-based Block Modules for global integration, ensuring a balance between local detail and global context.
Experimental Evaluation
The model was trained on the DIV2K dataset and evaluated on standard benchmarks for three primary tasks:
- Denoising: Set12, BSD68, and Urban100.
- Compression Artifact Removal: Classic5 and LIVE1.
- Demosaicing: McMaster18, Kodak24, and Urban100.
Results and Discussion
MAGN achieved state-of-the-art (SOTA) results across all evaluated tasks. In image denoising on the Urban100 dataset ($\sigma=15$), MAGN reached a PSNR of 33.81 dB. For JPEG artifact removal, the model significantly reduced blocking effects and preserved edge sharpness compared to baseline models like DnCNN. In demosaicing, it achieved a high PSNR of 43.29 dB on Kodak24, effectively eliminating common issues like color bleeding and zipper artifacts.
A key finding from ablation studies was the importance of patch size; a 7x7 sliding window was identified as the "sweet spot" for balancing structural context against redundant noise. Furthermore, MAGN is highly parameter-efficient, utilizing 5.22M parameters—fewer than competing models like DAGL or GCDN—while delivering superior performance.
Conclusion
The Multi-level Attention-guided Graph Neural Network represents a significant step forward in non-local image restoration. By combining pixel and patch-level graph modeling, it effectively leverages image self-similarity. While the patch-level operations introduce some memory overhead, the model's efficiency and performance make it a strong candidate for high-quality restoration tasks. Future work will explore its application to deblurring and super-resolution.
Summary updated