arXiv:2611.00523cs.CVOct 2026

Manuscript Offprint

arXiv:2611.00523

SASFormer: Stage-Aware Selective Attention Transformer for All-in-One Blind Image Restoration

Xiangpeng Tian, Mingyang Li, Fajing Liu, Xiaofeng Wang, Xiaohai He, Chao Ren

Xiangpeng Tian, Mingyang Li, Fajing Liu, Xiaofeng Wang, Xiaohai He, Chao Ren, Member, IEEE

Abstract—All-in-one image restoration aims to recover high-quality images from multiple degradation types using a single unified model. Recent methods improve unified restoration with hybrid attention, prompt learning, or routing mechanisms, but generally focus on enhancing degradation adaptivity while employing similar feature modeling strategies across network stages. Consequently, the distinct representation requirements of encoding and decoding under diverse degradations remain insufficiently explored. In this paper, we propose SASFormer, a Stage-Aware Selective Attention Transformer for all-in-one blind image restoration. SASFormer follows a stage-aware design principle: the encoder uses established hybrid channel-spatial attention to build robust content-preserving and degradation-aware representations, while the decoder employs adaptive selective attention for restoration-oriented reconstruction. To address the stage-specific requirements of decoder reconstruction, we develop Adaptive Selective Channel Self-Attention (ASCSA) and Adaptive Selective Spatial Self-Attention (ASSSA), enabling the decoder to dynamically identify restoration-relevant channel responses and spatial contexts. Specifically, ASCSA performs adaptive query-channel selection and attention masking, while ASSSA adaptively integrates spatial attention across multiple window sizes. Compact implicit prompts further modulate the selection process without requiring explicit degradation labels. Extensive experiments on 3-, 5-, and 11-degradation settings demonstrate that SASFormer achieves strong restoration performance with favorable parameter efficiency. Moreover, stage-wise representation analysis and ablation studies provide empirical support for the proposed stage-aware design and the effectiveness of decoder-side adaptive selection.

Index Terms—All-in-one blind image restoration, stage-aware representation, adaptive selection, channel-spatial attention, image restoration transformer.

I. INTRODUCTION

I MAGE restoration aims to reconstruct high-quality images from their degraded counterparts. In recent years, deep learning-based image restoration methods have achieved remarkable progress in handling single-degradation types, such

as denoising [1]–[3], deraining [4], [5], dehazing [6]–[8], and deblurring [9], [10], significantly improving restoration quality and model performance. These methods mainly explore specific image restoration tasks through various network architectures, including convolutional networks [1], [10]–[12], window-based self-attention [13], [14], channel self-attention [15], and hybrid attention mechanisms [16], achieving remarkable performance. Although these methods have achieved impressive results on specific restoration tasks, their generalization ability remains constrained by the adaptability of the network architecture. Different restoration tasks often require separately trained models, making it challenging to achieve unified multi-task processing without compromising single-task performance, thereby motivating the development of all-in-one restoration frameworks.

To address this limitation, recent studies have explored all-in-one frameworks that aim to handle diverse image degradations within a unified model [17]–[20]. Unlike task-specific models tailored to a single degradation, the key challenge of all-in-one restoration lies in effectively modeling degradation diversity within a shared architecture while maintaining high-quality reconstruction performance. As illustrated in Fig. 1 (a)–(c), existing approaches can be broadly categorized into three groups: (1) Prompt-based or adaptive degradation recognition methods [18], [19], [21], which guide the model to identify degradation types through explicit or implicit prompts, or by leveraging frequency-domain differences; (2) Auxiliary network or training strategy methods [17], [20], [22]–[24], which introduce additional degradation classification networks or training mechanisms to provide degradation cues; and (3) Multi-expert or routing-based strategies [25]–[27], which employ sub-networks or routing mechanisms to optimize performance for different degradations. From AirNet [17] to PromptIR [18], and further to Perceive-IR [23], VLU-Net [24], and DA-RCOT [20], research has gradually progressed from simple blind frameworks to more sophisticated degradation modeling approaches.

Recent all-in-one image restoration methods have achieved remarkable progress by enhancing degradation awareness. However, existing approaches primarily focus on adapting to diverse degradations, while the distinct representation requirements across different restoration stages remain insufficiently explored. This limitation is particularly relevant because different degradations impose distinct representation demands, while representation learning itself is inherently stage-dependent. Consequently, applying a uniform feature modeling

This work was supported by the National Natural Science Foundation of China under Grant 62171304, the Science and Technology Project of Xizang Autonomous Region under Grant XZ202601ZY0092, the Young Faculty Technology Innovation Capacity Enhancement Program of Sichuan University under Grant 2024SCUQJTX025, the TCL Science and Technology Innovation Fund under Grant 25JZH008, and the Sichuan Science and Technology Program under Grant 2025JDRC0011. (Corresponding author: Chao Ren.)

Xiangpeng Tian, Chao Ren, Mingyang Li, Fajing Liu, Xiaofeng Wang, and Xiaohai He are with the College of Electronics and Information Engineering, Sichuan University, Chengdu, 610065, China (e-mail: {tianxp, limingyang, liufajing, xfwang}@stu.scu.edu.cn, {hexiaohai, chaoren}@scu.edu.cn).

Xiangpeng Tian is also with the College of Intelligent Systems Science and Engineering, Hubei Minzu University, Enshi 445000, China.

The source code will be publicly available upon acceptance at https://github.com/TxpHome/SASFormer

Copyright © 2026 IEEE. Personal use of this material is permitted. However,

permission to use this material for any other purposes must be obtained from the IEEE by sending an email to pubs-permissions@ieee.org. Published in IEEE Transactions on Circuits and Systems for Video Technology. DOI: 10.1109/TCSVT.2026.3745786

Figure

Fig. 1: Existing all-in-one image restoration methods. (a) Adaptive degradation identification methods [18], [19], [21]: Utilize degradation priors to guide the restoration process. (b) Auxiliary network or training strategy-based methods [17], [20], [22]–[24]: Employ additional networks to identify degradations and guide restoration. (c) Routing or multi-expert methods [25]–[27]: Leverage routing strategies or multiple experts for multi-task restoration. (d) Ours: Introduces stage-aware selective attention in the encoder–decoder architecture. The encoder learns robust representations with implicit degradation awareness, while the decoder adaptively selects informative features to suppress degradation interference and improve restoration quality.

strategy across the entire network may lead to suboptimal representation learning and restoration performance.

To better understand this issue, we revisit the representation requirements of hybrid attention across encoder–decoder architectures and analyze feature behavior across different network stages. We observe that increasing the modeling capacity of hybrid attention does not consistently improve restoration performance. In particular, excessive feature selection in early encoder stages may weaken the preservation of intrinsic image representations, while decoder-stage feature refinement plays a more critical role in reconstructing high-quality image details. Moreover, feature analysis reveals a clear stage-dependent representation behavior across the network, where encoder representations become progressively more discriminative under different degradations, while decoder representations tend to move toward a more unified representation for clean image reconstruction.

Motivated by this observation, we propose SASFormer, a Stage-Aware Selective Attention Transformer for all-in-one blind image restoration, as shown in Fig.1 (d). The key idea is to decouple representation preservation from restoration-oriented feature selection. Rather than applying a uniform attention formulation throughout the network, SASFormer introduces a stage-aware architecture that differentiates feature modeling according to the distinct roles of encoding and decoding. In the encoder, SASFormer adopts established hybrid channel-spatial attention to preserve complementary local and global representations under diverse degradations. In contrast, conventional fixed attention is less suited to decoder reconstruction, where restoration-relevant channel responses and spatial contexts vary across degradations. To address this limitation, the decoder introduces adaptive selective channel and spatial attention to dynamically select informative features, suppress degradation-specific disturbances, and re-

construct intrinsic structures. Specifically, Adaptive Selective Channel Self-Attention (ASCSA) dynamically selects informative channel subsets and avoids fixed channel partitioning under different degradations. Adaptive Selective Spatial Self-Attention (ASSSA) adaptively combines multiple spatial receptive fields to match degradation-dependent spatial requirements. In addition, implicit prompts are used as compact channel-wise modulation bases for adaptive selection, rather than as spatial feature generators. This design provides lightweight degradation awareness without introducing an auxiliary degradation classifier.

Extensive experiments on 3-, 5-, and 11-degradation settings demonstrate the effectiveness and efficiency of SASFormer, as shown in Fig. 2. Stage-wise representation analysis further shows that applying adaptive selection to decoding better supports convergence toward a unified representation for clean image reconstruction. The main contributions of this work are summarized as follows:

  • We reveal distinct representation requirements across encoding and decoding stages in all-in-one image restoration, and accordingly propose a Stage-Aware Selective Attention Framework. It differentiates feature modeling according to stage-specific roles, emphasizing robust representation preservation during encoding and restoration-oriented selective reconstruction during decoding.
  • To enable adaptive selective reconstruction in the decoder, we develop Adaptive Selective Channel Self-Attention (ASCSA) and Adaptive Selective Spatial Self-Attention (ASSSA). ASCSA dynamically identifies informative channel responses through query-channel selection and attention masking, while ASSSA adaptively integrates multi-window spatial attention to capture degradation-dependent spatial contexts.
  • Extensive experiments on 3-, 5-, and 11-degradation

Figure

Fig. 2: PSNR comparison with representative methods in the three-degradation and five-degradation settings and on composited degradations.

settings demonstrate competitive restoration performance and favorable parameter efficiency. Stage-wise representation analysis and ablation studies further support the proposed stage-aware design, while cross-degradation evaluations demonstrate its generalization across diverse degradation scenarios.

References (66)