atlas

Research map / Architectures and efficiency / Attention and transformers

MLP Can Be A Good Transformer Learner

CVPR 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 20 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.

Removes non-essential self-attention layers from DeiT-B by selecting them via transfer entropy (NOSE) and diluting them into identity mappings so only MLPs remain in those blocks.

Problem

Vision transformers' self-attention is computationally expensive, and prior token pruning/merging methods still load the full network and keep the same memory footprint, so they do not reduce memory bound.

Approach

Use entropy measures to identify attention layers with low information content and low transfer entropy to the output, then gradually degenerate them into identity mappings (via a decaying sparse mask plus feature compensation) so their residual path feeds directly into the subsequent MLP, yielding MLP-only blocks.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Remove 40% of attention layers using NOSEDeiT-B · ImageNet-1kTop-1 accuracy: 81.8 -> 81.8No clear effect
Remove 50% of attention layers using NOSEDeiT-B · ImageNet-1kTop-1 accuracy: 81.8 -> 81.5Hurt
Remove 50% of attention layersDeiT-B · ImageNet-1kthroughput (images/s): 299 -> 408; 36.5%Helped
Remove 40% of attention layersDeiT-B · ImageNet-1kmemory bound (images/10GB): 606 -> 730; 20.5%Helped
Remove 40% of attention layersDeiT-B · CIFAR-100fine-tuning accuracy: 90.5 -> 90.3Hurt
Remove 40% of attention layersDeiT-B · CIFAR-100linear probing accuracy: 80.6 -> 81.3Helped
Remove 40% of attention layersDeiT-B · ADE20k, pre-trained on ImageNet-1kmIoU: 47.0 -> 46.2Hurt
Use NOSE instead of random layer selection (ablation)DeiT-B · ImageNet-1kTop-1 accuracy: 79.9 -> 81.8Helped
Use linear sparse-mask decay over 200 rather than 300 epochs (ablation)DeiT-B with 40% attention layers removed · ImageNet-1kTop-1 accuracy: 81.8 -> 81.4Hurt
Use linear sparse-mask decay over 400 rather than 300 epochs (ablation)DeiT-B with 40% attention layers removed · ImageNet-1kTop-1 accuracy: 81.8 -> 82.0Helped
Use cosine rather than linear sparse-mask decay over 200 epochs (ablation)DeiT-B with 40% attention layers removed · ImageNet-1kTop-1 accuracy: 81.4 -> 81.5Helped
Use cosine rather than linear sparse-mask decay over 300 epochs (ablation)DeiT-B with 40% attention layers removed · ImageNet-1kTop-1 accuracy: 81.8 -> 81.8No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k CIFAR-100 ADE20K

Benchmarks: ImageNet-1k CIFAR-100 ADE20K

Metrics: Top-1 accuracy Top-5 accuracy FLOPs throughput parameters memory bound mIoU mAcc aAcc linear probing accuracy

Baselines: DeiT-B DynamicViT Evo-ViT EViT TPS ToMe DiffRate Random layer selection

Builds on: DeiT ToMe DynamicViT TinyMIM

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