Iwin Transformer

Model Source

Pre-trained Iwin Transformer models on ImageNet-1k and ImageNet-22k. For research purposes, we recommend our Github repository (https://github.com/Cominder/Iwin-Transformer), which is more suitable for both training and inference.

Model Descprition

We introduce Iwin Transformer, a novel positionembedding-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.

Usage

from huggingface_hub import hf_hub_download

filepath =  hf_hub_download(repo_id="cominder/Iwin-Transformer", filename="iwin_base_patch4_window12_384.pth")

License

The codes and model weights are realeased under the MIT License for researchers and developers. For commercial use, seeLicense-Agreement and please contact [email protected].

Citation

@misc{huo2025iwin,
      title={Iwin Transformer: Hierarchical Vision Transformer using Interleaved Windows}, 
      author={Simin Huo and Ning Li},
      year={2025},
      eprint={2507.18405},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2507.18405}, 
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support