cs.CVOct 31, 2026

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

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

Organizations: College of Electronics and Information Engineering, Sichuan University, Chengdu, 610065, China · College of Intelligent Systems Science and Engineering, Hubei Minzu University, Enshi 445000, China

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.

Figures & tables

Explore similar work

CardsList
  1. M2IR: Proactive All-in-One Image Restoration via Mamba-style Modulation and Mixture-of-Experts

    Mar 16, 2026Shiwei Wang, Yongzhen Wang, Bingwen Hu +3Degradation-Aware Image RestorationAll-in-One Image Restoration

  2. Degradation-Aware Adaptive Context Gating for Unified Image Restoration

    May 2, 2026Lei He, Jielei Chu, Fengmao Lv +4All-in-One Image RestorationImage Restoration

  3. Bend the Basics: Degradation-Aware Deformable Tokenization for All-in-One Image Restoration

    Aug 7, 2026Zihao He, Yunfeng Wu, Xinchao Wang +1Image Corruption RobustnessAll-in-One Image Restoration