[Paper Review] DLGSANet: Lightweight Dynamic Local and Global Self-Attention Networks for Image Super-Resolution
DLGSANet proposes a lightweight, efficient image super-resolution network using a hybrid dynamic-Transformer block (HDTB) that combines multi-head dynamic local self-attention (MHDLSA) for local feature extraction and sparse global self-attention (SparseGSA) for selective global feature aggregation. The method achieves state-of-the-art performance with under 5M parameters and significantly lower FLOPs than prior models.
We propose an effective lightweight dynamic local and global self-attention network (DLGSANet) to solve image super-resolution. Our method explores the properties of Transformers while having low computational costs. Motivated by the network designs of Transformers, we develop a simple yet effective multi-head dynamic local self-attention (MHDLSA) module to extract local features efficiently. In addition, we note that existing Transformers usually explore all similarities of the tokens between the queries and keys for the feature aggregation. However, not all the tokens from the queries are relevant to those in keys, using all the similarities does not effectively facilitate the high-resolution image reconstruction. To overcome this problem, we develop a sparse global self-attention (SparseGSA) module to select the most useful similarity values so that the most useful global features can be better utilized for the high-resolution image reconstruction. We develop a hybrid dynamic-Transformer block(HDTB) that integrates the MHDLSA and SparseGSA for both local and global feature exploration. To ease the network training, we formulate the HDTBs into a residual hybrid dynamic-Transformer group (RHDTG). By embedding the RHDTGs into an end-to-end trainable network, we show that our proposed method has fewer network parameters and lower computational costs while achieving competitive performance against state-of-the-art ones in terms of accuracy. More information is available at https://neonleexiang.github.io/DLGSANet/
Motivation & Objective
- To address the high computational cost and parameter burden of existing Transformer-based super-resolution models.
- To improve local feature extraction by replacing discontinuous window-based attention with dynamic, convolution-inspired local self-attention.
- To enhance global feature aggregation by selecting only the most relevant attention values using a sparse mechanism, avoiding noise from irrelevant tokens.
- To develop a lightweight, end-to-end trainable network that maintains high reconstruction quality with minimal parameters and FLOPs.
Proposed method
- Introduces a multi-head dynamic local self-attention (MHDLSA) module that learns dynamic attention weights using a fully convolutional design, enabling efficient local feature learning without fixed window constraints.
- Proposes a sparse global self-attention (SparseGSA) module that applies ReLU to prune less relevant attention values after similarity computation, retaining only the most useful global features.
- Designs a hybrid dynamic-Transformer block (HDTB) that fuses MHDLSA and SparseGSA to jointly capture local and global dependencies in a parameter-efficient manner.
- Constructs a residual hybrid dynamic-Transformer group (RHDTG) to stabilize training and improve feature representation through residual learning.
- Architects the full DLGSANet as an end-to-end trainable network composed of stacked RHDTGs, enabling high-resolution image reconstruction.
- Employs a lightweight design with minimal parameter count and low FLOPs, achieving competitive performance on standard benchmarks.
Experimental results
Research questions
- RQ1Can a dynamic local self-attention mechanism improve local feature extraction in super-resolution networks without relying on fixed window partitions?
- RQ2Does pruning less relevant global attention values through a sparse mechanism lead to better feature representation and reconstruction quality?
- RQ3Can a hybrid attention block combining dynamic local and sparse global attention achieve state-of-the-art performance with significantly reduced model complexity?
- RQ4How does the proposed method compare in terms of accuracy, parameter count, and inference speed to existing CNN and Transformer-based SISR models?
Key findings
- DLGSANet achieves a PSNR of 27.17 on the Urban100 dataset at ×4 upscaling, outperforming the baseline with MHSA by 0.28dB.
- The sparse global self-attention (SparseGSA) module improves PSNR by 0.12dB compared to standard softmax-based global attention.
- The model uses only 4.76M parameters and 187ms inference time at ×4 on an RTX 3090 GPU, significantly lower than SwinIR (278ms) and ELAN (243ms).
- The lightweight version, DLGSANet-tiny, achieves 38ms inference time at ×4, outperforming EDSR-baseline (15ms) in accuracy while being more efficient than most Transformer-based models.
- Ablation studies confirm that both MHDLSA and SparseGSA contribute significantly to performance, with MHDLSA improving PSNR by 0.28dB and SparseGSA by 0.12dB over their respective baselines.
- Visualization results show that SparseGSA effectively suppresses irrelevant attention values, focusing on structural and detail-preserving features for better reconstruction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.