Methods › Computer Vision › Vision Transformers › Shuffle-T
Shuffle Transformer
Shuffle-T
Introduced by Zilong Huang et al. in Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
archive 2025-07-28 Description, source and code snippet are the archive's method entry.
The Shuffle Transformer Block consists of the Shuffle Multi-Head Self-Attention module (ShuffleMHSA), the Neighbor-Window Connection module (NWC), and the MLP module. To introduce cross-window connections while maintaining the efficient computation of non-overlapping windows, a strategy which alternates between WMSA and Shuffle-WMSA in consecutive Shuffle Transformer blocks is proposed. The first window-based transformer block uses regular window partition strategy and the second window-based transformer block uses window-based selfattention with spatial shuffle. Besides, the Neighbor-Window Connection moduel (NWC) is added into each block for enhancing connections among neighborhood windows. Thus the proposed shuffle transformer block could build rich cross-window connections and augments representation. Finally, the consecutive Shuffle Transformer blocks are computed as:
xˡ=𝐖 𝐌 𝐒 𝐀(𝐁 𝐍(zˡ⁻¹))+zˡ⁻¹
yˡ=𝐍 𝐖 𝐂(xˡ)+xˡ
zˡ=𝐌 𝐋 𝐏(𝐁 𝐍(yˡ))+yˡ
xˡ⁺¹=𝐒 𝐡 𝐮 𝐟 𝐟 𝐥 𝐞 - 𝐖 𝐌 𝐒 𝐀(𝐁 𝐍(zˡ))+zˡ
yˡ⁺¹=𝐍 𝐖 𝐂(xˡ⁺¹)+xˡ⁺¹
zˡ⁺¹=𝐌 𝐋 𝐏(𝐁 𝐍(yˡ⁺¹))+yˡ⁺¹
where xˡ, yˡ and zˡ denote the output features of the (Shuffle-)WMSA module, the Neighbor-Window Connection module and the MLP module for block l, respectively; WMSA and Shuffle-WMSA denote window-based multi-head self-attention without/with spatial shuffle, respectively.
Papers archive 2025-07-28
1 shown of 1, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.
-
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer 7 Jun 2021 · 4 repositories · arXiv:2106.03650Syntology ran 5 of 12 samples · 7 unverified
Tasks archive 2025-07-28
6 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.
| Task | Papers |
|---|---|
| Image Classification | 1 |
| Object Detection | 1 |
| Segmentation | 1 |
| Semantic Segmentation | 1 |
| image-classification | 1 |
| object-detection | 1 |
Usage over time archive 2025-07-28
Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).
Categories archive 2025-07-28
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections