DSwinIR: Rethinking Window-Based Attention for Image Restoration
Gang Wu, Junjun Jiang, Kui Jiang, Xianming Liu, Liqiang Nie
Harbin Institute of Technology · Shenzhen Institute of Information Technology
Key points
From the paper's conclusion- For instance, in all-in-one image restoration, our DSwinIR surpasses the most recent backbone GridFormer by 0.53 dB on the three-task benchmark and 0.87 dB on the five-task benchmark.
Abstract
Image restoration has witnessed significant advancements with the development of deep learning models. Transformer-based models, particularly those using window-based self-attention, have become a dominant force. However, their performance is constrained by the rigid, non-overlapping window partitioning scheme, which leads to insufficient feature interaction across windows and limited receptive fields. This highlights the need for more adaptive and flexible attention mechanisms. In this paper, we propose the Deformable Sliding Window Transformer for Image Restoration (DSwinIR), a new attention mechanism: the Deformable Sliding Window (DSwin) Attention. This mechanism introduces a token-centric and content-aware paradigm that moves beyond the grid and fixed window partition. It comprises two complementary components. First, it replaces the rigid partitioning with a token-centric sliding window paradigm, making it effective at eliminating boundary artifacts. Second, it incorporates a content-aware deformable sampling strategy, which allows the attention mechanism to learn data-dependent offsets and actively shape its receptive field to focus on the most informative image regions. Extensive experiments show that DSwinIR achieves strong results, including state-of-the-art performance on several evaluated benchmarks. For instance, in all-in-one image restoration, our DSwinIR surpasses the most recent backbone GridFormer by 0.53 dB on the three-task benchmark and 0.87 dB on the five-task benchmark.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- HAT: Hybrid Attention Transformer for Image RestorationIEEE Transactions on Pattern Analysis and Machine Intelligence · 2025
- Fixing the Last Mile: Failure-Aware Image Restoration with Region-Specific GuidancearXiv · 2026
- Backend-Agnostic Sparse Attention for Fast High-Resolution Visual GenerationarXiv · 2026
- Boundary-enhanced sparse transformer for generalizable and accurate medical image segmentationScientific Reports · 2025
- StarIR: Convolutional Image Restoration With Spatial-Frequency FusionIEEE Transactions on Pattern Analysis and Machine Intelligence · 2026
- All-in-One Transformer for Image Restoration Under Adverse Weather DegradationsIEEE Transactions on Pattern Analysis and Machine Intelligence · 2026