Iwin Transformer: Hierarchical Vision Transformer using Interleaved Windows
Simin Huo, Ning Li
TL;DR
Iwin Transformer presents a position-embedding-free vision backbone that achieves global information exchange within a single block by marrying interleaved window attention with depthwise separable convolution. The method preserves efficiency through a four-stage hierarchical design and cross-resolution fine-tuning, outperforming or matching Swin in image classification and video tasks, while showing competitive segmentation results and notable gains in generation-oriented uses. Ablation and diverse-task experiments validate the core design choices and demonstrate practical benefits for high-resolution workloads and potential extensions to generation and 3D data. While COCO object detection shows a task-specific gap to Swin, the overall approach offers a versatile, scalable alternative to standard self-attention, with promising implications for diffusion-based generation and large-scale language model adaptations.
Abstract
We introduce Iwin Transformer, a novel position-embedding-free hierarchical vision transformer, which can be fine-tuned directly from low to high resolution, through the collaboration of innovative interleaved window attention and depthwise separable convolution. This approach uses attention to connect distant tokens and applies convolution to link neighboring tokens, enabling global information exchange within a single module, overcoming Swin Transformer's limitation of requiring two consecutive blocks to approximate global attention. Extensive experiments on visual benchmarks demonstrate that Iwin Transformer exhibits strong competitiveness in tasks such as image classification (87.4 top-1 accuracy on ImageNet-1K), semantic segmentation and video action recognition. We also validate the effectiveness of the core component in Iwin as a standalone module that can seamlessly replace the self-attention module in class-conditional image generation. The concepts and methods introduced by the Iwin Transformer have the potential to inspire future research, like Iwin 3D Attention in video generation. The code and models are available at https://github.com/cominder/Iwin-Transformer.
