English

RouteWinFormer: A Route-Window Transformer for Middle-range Attention in Image Restoration

Computer Vision and Pattern Recognition 2025-04-24 v1

Abstract

Transformer models have recently garnered significant attention in image restoration due to their ability to capture long-range pixel dependencies. However, long-range attention often results in computational overhead without practical necessity, as degradation and context are typically localized. Normalized average attention distance across various degradation datasets shows that middle-range attention is enough for image restoration. Building on this insight, we propose RouteWinFormer, a novel window-based Transformer that models middle-range context for image restoration. RouteWinFormer incorporates Route-Windows Attnetion Module, which dynamically selects relevant nearby windows based on regional similarity for attention aggregation, extending the receptive field to a mid-range size efficiently. In addition, we introduce Multi-Scale Structure Regularization during training, enabling the sub-scale of the U-shaped network to focus on structural information, while the original-scale learns degradation patterns based on generalized image structure priors. Extensive experiments demonstrate that RouteWinFormer outperforms state-of-the-art methods across 9 datasets in various image restoration tasks.

Keywords

Cite

@article{arxiv.2504.16637,
  title  = {RouteWinFormer: A Route-Window Transformer for Middle-range Attention in Image Restoration},
  author = {Qifan Li and Tianyi Liang and Xingtao Wang and Xiaopeng Fan},
  journal= {arXiv preprint arXiv:2504.16637},
  year   = {2025}
}