SLAB: Efficient Transformers with Simplified Linear Attention and Progressive Re-parameterized Batch Normalization
Jialong Guo, Xinghao Chen, Yehui Tang, Yunhe Wang
Abstract
Transformers have become foundational architectures for both natural language and computer vision tasks. However, the high computational cost makes it quite challenging to deploy on resource-constraint devices. This paper investigates the computational bottleneck modules of efficient transformer, i.e., normalization layers and attention modules. LayerNorm is commonly used in transformer architectures but is not computational friendly due to statistic calculation during inference. However, replacing LayerNorm with more efficient BatchNorm in transformer often leads to inferior performance and collapse in training. To address this problem, we propose a novel method named PRepBN to progressively replace LayerNorm with re-parameterized BatchNorm in training. Moreover, we propose a simplified linear attention (SLA) module that is simple yet effective to achieve strong performance. Extensive experiments on image classification as well as object detection demonstrate the effectiveness of our proposed method. For example, our SLAB-Swin obtains top-1 accuracy on ImageNet-1K with ms latency, which is ms less than that of Flatten-Swin with higher accuracy. We also evaluated our method for language modeling task and obtain comparable performance and lower latency.Codes are publicly available at https://github.com/xinghaochen/SLAB and https://github.com/mindspore-lab/models/tree/master/research/huawei-noah/SLAB.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Efficiency Follows Global-Local Decoupling cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Efficiency Follows Global-Local Decoupling cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Efficiency Follows Global-Local Decoupling cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Efficiency Follows Global-Local Decoupling cites Training data-efficient image transformers & distillation through attention
- LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
- LiT: Delving into a Simple Linear Diffusion Transformer for Image Generation cites Training data-efficient image transformers & distillation through attention
- QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion cites Training data-efficient image transformers & distillation through attention
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites Training data-efficient image transformers & distillation through attention
- Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Vision Transformers Are Circulant Attention Learners cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Vision Transformers Are Circulant Attention Learners cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Vision Transformers Are Circulant Attention Learners cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Vision Transformers Are Circulant Attention Learners cites Training data-efficient image transformers & distillation through attention
Cited by top-tier papers10
- LiT: Delving into a Simple Linear Diffusion Transformer for Image GenerationJiahao Wang, Ning Kang, Lewei Yao, Mengzhao Chen et al.ICCV 2025 · 10 citations
- QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor ExpansionYixing Xu, Chao Li, Dong Li, Xiao Sheng et al.NeurIPS 2024 · 7 citations
- Efficiency Follows Global-Local DecouplingZhenyu Yang, Gensheng Pei, Tao Chen, Yichao Zhou et al.CVPR 2026 · 3 citations
- LaplacianFormer: Rethinking Linear Attention with Laplacian KernelZhe Feng, Sen Lian, Changwei Wang, Muyang Zhang et al.ICLR 2026 · 3 citations
- Vision Transformers Are Circulant Attention LearnersDongchen Han, Tianyu Li, Ziyi Wang, Gao HuangAAAI 2026 · 2 citations
Builds on18
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan et al.ICCV 2021 · 4,909 citations
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
Related papers
- Unified Normalization for Accelerating and Stabilizing TransformersQiming Yang, Kai Zhang, Chaoxiang Lan, Zhi Yang et al.ACM MM 2022 · 1 citation
- Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN TransformersZixuan Jiang, Jiaqi Gu, Hanqing Zhu, David Z. PanNeurIPS 2023 · 44 citations
- DaMN: Deleting and Migrating Normalization Layers from TransformersAlexey Ryabykin, Irina Zhelavskaya, Egor Shvetsov, Alexey Rukhovich, Nikita Okhotnikov, Artem Khrapov, Evgeny Burnaev, Vladimir Mikhailovich KryzhanovskiyCVPR Findings 2026
- FLatten Transformer: Vision Transformer using Focused Linear AttentionDongchen Han, Xuran Pan, Yizeng Han, Shiji Song et al.ICCV 2023 · 358 citations
- Till the Layers Collapse: Compressing a Deep Neural Network Through the Lenses of Batch Normalization LayersZhu Liao, Nour Hezbri, Victor Quétu, Van-Tam Nguyen et al.AAAI 2025 · 3 citations
