mlsanityData to 14 Oct 2026

SLAB: Efficient Transformers with Simplified Linear Attention and Progressive Re-parameterized Batch Normalization

arXiv 2405.11582 ↗First posted 19 May 2024cs.CV cs.CLcited by 17

Not on the map. Why?

Abstract (arXiv)

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 83.6% top-1 accuracy on ImageNet-1K with 16.2ms latency, which is 2.4ms less than that of Flatten-Swin with 0.1% 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.

Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 39 of its 46 references that are in the map. First posted on arXiv 19 May 2024.

Builds on

39 of 46 references.

References · 39

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2020End-to-End Object Detection with Transformerscited by 7,414
  6. 2017Mask R-CNNcited by 7,277
  7. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  8. 2016Layer Normalizationcited by 5,669
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  10. 2016Pointer Sentinel Mixture Modelscited by 3,096
  11. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  12. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
27 more
  1. 2020Rethinking Attention with Performerscited by 1,601
  2. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  3. 2018Group Normalizationcited by 1,524
  4. 2016Instance Normalization: The Missing Ingredient for Fast Stylizationcited by 1,198
  5. 2020A Survey on Visual Transformercited by 654
  6. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
  7. 2021RepVGG: Making VGG-style ConvNets Great Againcited by 522
  8. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  9. 2022MaxViT: Multi-Axis Vision Transformercited by 476
  10. 2018Adaptive Input Representations for Neural Language Modelingcited by 226
  11. 2016FractalNet: Ultra-Deep Neural Networks without Residualscited by 216
  12. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
  13. 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
  14. 2022RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformerscited by 137
  15. 2022Multimodal Token Fusion for Vision Transformerscited by 136
  16. 2023Dynamic Token Pruning in Plain Vision Transformers for Semantic Segmentationcited by 62
  17. 2022Hydra Attention: Efficient Attention with Many Headscited by 55
  18. 2024A Survey on Transformer Compressioncited by 46
  19. 2023Less is More: Focus Attention for Efficient DETRcited by 38
  20. 2023PPT: Token Pruning and Pooling for Efficient Vision Transformerscited by 38
  21. 2018Understanding the Disharmony between Dropout and Batch Normalization by Variance Shiftcited by 37
  22. 2022Re-parameterizing Your Optimizers rather than Architecturescited by 35
  23. 2024DenseMamba: State Space Models with Dense Hidden Connection for Efficient Large Language Modelscited by 22
  24. 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
  25. 2020Towards Stabilizing Batch Statistics in Backward Propagation of Batch Normalizationcited by 19
  26. 2022Unified Normalization for Accelerating and Stabilizing Transformerscited by 6
  27. 2023Category Feature Transformer for Semantic Segmentationcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 9; 2026: 5.

17 papers.

Sort:

By area: