atlas

Research map / Architectures and efficiency / Attention and transformers

The Need for Speed: Pruning Transformers with One Recipe

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 0 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 OPTIN, a one-shot, retraining-free transformer pruning framework that scores weights by how masking them perturbs downstream-layer features and logits (a "trajectory" metric), then selects masks via a mask search, evaluated on GLUE, ImageNet, CIFAR-10, Cityscapes, and CNNs.

Problem

Compressing pre-trained transformers to meet FLOP budgets across modalities typically requires expensive re-training or architecture-specific designs, limiting practical one-shot compression.

Approach

Measures parameter importance as the cumulative change in downstream-layer features (manifold distillation loss) plus a KL-divergence on logits when each weight is masked in a gradient-free forward pass, then uses a polynomial-time mask search under a FLOP constraint; also extends to token reduction schedules via ToMe.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use subsequent-layer trajectory [i+1,N] rather than measuring only at [i] (ablation)OPTIN on BERT-Base and DeiT-Ti · MNLI and ImageNet-1Kaccuracy: 78.89 -> 81.90; 68.91 -> 71.25Helped
Use sum rather than mean to aggregate layer distillation errors (ablation)OPTIN · MNLI and ImageNet-1Kaccuracy: 80.75 -> 81.90; 71.15 -> 71.25Helped
Add KL loss to manifold distillation loss (ablation)OPTIN · MNLI and ImageNet-1Kaccuracy: 80.91 -> 81.90; 68.85 -> 71.25Helped
Set lambda to 0.01 rather than the default 0.1 (ablation)OPTIN · MNLIaccuracy: 81.90 -> 82.12Helped
Set lambda to 0.01 rather than the default 0.1 (ablation)OPTIN · ImageNet-1Kaccuracy: 70.99 -> 71.25Helped
Use temperature 4 rather than temperature 1 (ablation)OPTIN · ImageNet-1Kaccuracy: 70.54 -> 71.25Helped
Use temperature 4 rather than temperature 8 (ablation)OPTIN · ImageNet-1Kaccuracy: 71.00 -> 71.25Helped
Use temperature 8 rather than temperature 4 (ablation)OPTIN · MNLIaccuracy: 81.90 -> 82.14Helped
Use LayerNorm features rather than IM-Dense features (ablation)OPTIN · MNLI and ImageNet-1Kaccuracy: 81.83 -> 81.92; 70.90 -> 71.27Helped
Change the importance-score batch size from 32 to 128 (ablation)OPTIN · MNLIaccuracy: 81.90 -> 82.20Helped
Change the importance-score batch size from 32 to 16 (ablation)OPTIN · ImageNet-1Kaccuracy: 71.25 -> 70.53Hurt
Use the OPTIN schedule instead of the default schedule for random pruning (ablation)OPTIN token reduction with Random Prune · ImageNet-1Kaccuracy drop (%): ↓ 8.47 -> ↓ 7.11Helped

Surprising findings

Limitations

Experimental setup

Datasets: GLUE (MNLI, QNLI, MRPC, STS-B, QQP) ImageNet-1K CIFAR-10 Cityscapes

Benchmarks: GLUE ImageNet-1K CIFAR-10 Cityscapes

Metrics: accuracy mIoU FLOPs reduction throughput (im/s) latency ratio

Baselines: PTF CoFi DynaBERT CP-ViT SAViT EViT DynamicViT ToMe HRank VTP PoWER HVT

Builds on: PTF (Post-Training-Framework) mask search ToMe token merging manifold distillation KL-divergence logit distillation

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