Lune

NeurIPS2022Top-tier venue

Stochastic Window Transformer for Image Restoration

Jie Xiao, Xueyang Fu, Feng Wu, Zheng-Jun Zha

Abstract

Thanks to the powerful representation capabilities, transformers have made impressive progress in image restoration. However, existing transformers-based methods do not carefully consider the particularities of image restoration. In general, image restoration requires that an ideal approach should be translation-invariant to the degradation, i.e., the undesirable degradation should be removed irrespective of its position within the image. Furthermore, the local relationships also play a vital role, which should be faithfully exploited for recovering clean images. Nevertheless, most transformers either adopt local attention with the fixed local window strategy or global attention, which unfortunately breaks the translation invariance and causes huge loss of local relationships. To address these issues, we propose an elegant stochastic window strategy for transformers. Specifically, we first introduce the window partition with stochastic shift to replace the original fixed window partition for training. Then, we design a new layer expectation propagation algorithm to efficiently approximate the expectation of the induced stochastic transformer for testing. Our stochastic window transformer not only enjoys powerful representation but also maintains the desired property of translation invariance and locality. Experiments validate the stochastic window strategy consistently improves performance on various image restoration tasks (derain-ing, denoising and deblurring) by significant margins. The code is available at https://github.com/jiexiaou/Stoformer .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Random Shuffle Transformer for Image Restoration cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Random Shuffle Transformer for Image Restoration cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Image Restoration with Mean-Reverting Stochastic Differential Equations cites Restormer: Efficient Transformer for High-Resolution Image Restoration
  • Restormer: Efficient Transformer for High-Resolution Image Restoration cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Restormer: Efficient Transformer for High-Resolution Image Restoration cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Restormer: Efficient Transformer for High-Resolution Image Restoration cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Restormer: Efficient Transformer for High-Resolution Image Restoration cites Training data-efficient image transformers & distillation through attention
  • Motion-adaptive Transformer for Event-based Image Deblurring cites Restormer: Efficient Transformer for High-Resolution Image Restoration
  • Motion-adaptive Transformer for Event-based Image Deblurring cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Motion-adaptive Transformer for Event-based Image Deblurring cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
  • ESSAformer: Efficient Transformer for Hyperspectral Image Super-resolution cites Restormer: Efficient Transformer for High-Resolution Image Restoration
  • ESSAformer: Efficient Transformer for Hyperspectral Image Super-resolution cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • ESSAformer: Efficient Transformer for Hyperspectral Image Super-resolution cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Image Restoration with Mean-Reverting Stochastic Differential EquationsZiwei Luo, Fredrik K. Gustafsson, Zheng Zhao, Jens Sjölund et al.ICML 2023 · 293 citations
  2. ESSAformer: Efficient Transformer for Hyperspectral Image Super-resolutionMingjin Zhang, Chi Zhang, Qiming Zhang, Jie Guo et al.ICCV 2023 · 73 citations
  3. Random Shuffle Transformer for Image RestorationJie Xiao, Xueyang Fu, Man Zhou, Hongjian Liu et al.ICML 2023 · 38 citations
  4. Motion-adaptive Transformer for Event-based Image DeblurringSenyan Xu, Zhijing Sun, Mingchen Zhong, Chengzhi Cao et al.AAAI 2025 · 17 citations
  5. EventMamba: Enhancing Spatio-Temporal Locality with State Space Models for Event-Based Video ReconstructionChengjie Ge, Xueyang Fu, Peng He, Kunyu Wang et al.AAAI 2025 · 6 citations

Builds on24

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  4. Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan et al.ICCV 2021 · 4,909 citations
  5. Restormer: Efficient Transformer for High-Resolution Image RestorationSyed Waqas Zamir, Aditya Arora, Salman Khan, Munawar Hayat et al.CVPR 2022 · 3,348 citations

Related papers

  1. Uformer: A General U-Shaped Transformer for Image RestorationZhendong Wang, Xiaodong Cun, Jianmin Bao, Wengang Zhou et al.CVPR 2022 · 1,970 citations
  2. Enhancing Image Restoration Transformer via Adaptive Translation EquivarianceJiaKui Hu, Zhengjian Yao, Lujia Jin, Hangzhou He et al.ICCV 2025 · 6 citations
  3. KNN Local Attention for Image RestorationHunsang Lee, Hyesong Choi, Kwanghoon Sohn, Dongbo MinCVPR 2022 · 62 citations
  4. Cross Aggregation Transformer for Image RestorationZheng Chen, Yulun Zhang, Jinjin Gu, Yongbing Zhang et al.NeurIPS 2022 · 274 citations
  5. Bend the Basics: Degradation-Aware Deformable Tokenization for All-in-One Image RestorationZihao He, Yunfeng Wu, Xinchao Wang, Songhua LiuICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines