atlas

Research map / Architectures and efficiency / Attention and transformers

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

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient and robust vision transformers · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes PRepBN, which progressively replaces LayerNorm with re-parameterized BatchNorm during training, plus a simplified linear attention (ReLU kernel + depth-wise conv) to build efficient vision and language transformers.

Problem

Transformers are costly to deploy because LayerNorm needs online statistics at inference and softmax attention is quadratic in token count; naively swapping LayerNorm for BatchNorm causes inferior accuracy or training collapse.

Approach

Progressively transition from LayerNorm to a re-parameterized BatchNorm (RepBN = BN(X) + ηX, mergeable into BN at inference) via a linearly decaying mixing coefficient, and replace softmax attention with a simplified ReLU-kernel linear attention plus a depth-wise convolution branch.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace LayerNorm with PRepBNDeiT-S · ImageNet-1Ktop-1 accuracy: 78.8 -> 80.2Helped
Replace LayerNorm with PRepBNSwin-T · ImageNet-1Ktop-1 accuracy: 81.3 -> 81.4Helped
Replace Flatten-Swin-S with SLAB-Swin-SSwin-S · ImageNet-1Klatency: 18.6 -> 16.2Helped
Replace Flatten-Swin-S with SLAB-Swin-SSwin-S · ImageNet-1Ktop-1 accuracy: 83.5% -> 83.6%Helped
Add simplified linear attention to Flatten-DeiT-T (ablation)Flatten-DeiT-T · ImageNet-1Klatency: 15.2 -> 10.2Helped
Add simplified linear attention to Flatten-DeiT-T (ablation)Flatten-DeiT-T · ImageNet-1Kaccuracy: 74.1 -> 73.0Hurt
Add PRepBN after simplified linear attention (ablation)Flatten-DeiT-T + SLA · ImageNet-1Kaccuracy: 73.0 -> 74.3Helped
Add PRepBN after simplified linear attention (ablation)Flatten-DeiT-T + SLA · ImageNet-1Klatency: 10.2 -> 9.6Helped
Add simplified linear attention to Flatten-PVT-T (ablation)Flatten-PVT-T · ImageNet-1Kaccuracy: 77.8 -> 75.2Hurt
Add PRepBN after simplified linear attention (ablation)Flatten-PVT-T + SLA · ImageNet-1Kaccuracy: 75.2 -> 76.5Helped
Add progressive LayerNorm-to-BatchNorm strategy (ablation)DeiT-T-BN · ImageNet-1Kaccuracy: 71.9 -> 73.1Helped
Add RepBN to the progressive BatchNorm model (ablation)DeiT-T-BN + Progressive Strategy · ImageNet-1Kaccuracy: 73.1 -> 73.6Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K COCO Wikitext-103

Benchmarks: ImageNet-1K COCO Wikitext-103

Metrics: top-1 accuracy throughput latency (ms) FLOPs AP perplexity average accuracy over LM benchmarks

Baselines: LayerNorm transformers BN+FFNBN Flatten Transformer Swin Transformer PVT Adaptive Inputs

Builds on: RepVGG Flatten Transformer Swin Transformer DeiT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy