Lune

ICML2024顶会

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

Jialong Guo, Xinghao Chen, Yehui Tang, Yunhe Wang

摘要

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

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Efficiency Follows Global-Local Decoupling 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Efficiency Follows Global-Local Decoupling 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Efficiency Follows Global-Local Decoupling 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Efficiency Follows Global-Local Decoupling 引用了 Training data-efficient image transformers & distillation through attention
  • LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • LaplacianFormer: Rethinking Linear Attention with Laplacian Kernel 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
  • LiT: Delving into a Simple Linear Diffusion Transformer for Image Generation 引用了 Training data-efficient image transformers & distillation through attention
  • QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion 引用了 Training data-efficient image transformers & distillation through attention
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 引用了 Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Vision Transformers Are Circulant Attention Learners 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Vision Transformers Are Circulant Attention Learners 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Vision Transformers Are Circulant Attention Learners 引用了 Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
  • Vision Transformers Are Circulant Attention Learners 引用了 Training data-efficient image transformers & distillation through attention
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  1. LiT: Delving into a Simple Linear Diffusion Transformer for Image GenerationJiahao Wang, Ning Kang, Lewei Yao, Mengzhao Chen 等ICCV 2025 · 10 次引用
  2. QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor ExpansionYixing Xu, Chao Li, Dong Li, Xiao Sheng 等NeurIPS 2024 · 7 次引用
  3. Efficiency Follows Global-Local DecouplingZhenyu Yang, Gensheng Pei, Tao Chen, Yichao Zhou 等CVPR 2026 · 3 次引用
  4. LaplacianFormer: Rethinking Linear Attention with Laplacian KernelZhe Feng, Sen Lian, Changwei Wang, Muyang Zhang 等ICLR 2026 · 3 次引用
  5. Vision Transformers Are Circulant Attention LearnersDongchen Han, Tianyu Li, Ziyi Wang, Gao HuangAAAI 2026 · 2 次引用

它引用的 Paper18

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  3. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  4. Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan 等ICCV 2021 · 4,909 次引用
  5. Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 次引用

相关 Paper

  1. Unified Normalization for Accelerating and Stabilizing TransformersQiming Yang, Kai Zhang, Chaoxiang Lan, Zhi Yang 等ACM MM 2022 · 1 次引用
  2. Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN TransformersZixuan Jiang, Jiaqi Gu, Hanqing Zhu, David Z. PanNeurIPS 2023 · 44 次引用
  3. 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
  4. FLatten Transformer: Vision Transformer using Focused Linear AttentionDongchen Han, Xuran Pan, Yizeng Han, Shiji Song 等ICCV 2023 · 358 次引用
  5. 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 等AAAI 2025 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖