atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

Accelerating Transformer Pre-training with 2:4 Sparsity

ICML 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Efficient ViT adaptation · 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 an end-to-end 2:4 fully sparse training method for transformer pre-training (FFN layers only), with flip-rate-guided masked decay on gradients, fast decay-factor selection, dense fine-tuning, and kernel-level speedups (convolution-based transposable mask search, GEGLU kernel).

Problem

Pre-training large transformers is computationally expensive, and prior 2:4 sparse training methods were designed for CNNs, lost accuracy on transformers, and reported only simulated rather than actual speedups.

Approach

Monitor mask stability with a flip rate, apply masked decay on gradients (normalized by Adam's second moment), choose the decay factor by a fast warm-up flip-rate ratio test, move the dense steps to a final fine-tuning phase, and accelerate transposable mask search and gated activations with GPU kernels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use 2:4 sparse training with the proposed techniques instead of dense trainingBERT-base · GLUE (WNLI excluded)Avg score: 79.8 ± 0.4 -> 79.6 ± 0.6No clear effect
Use 2:4 sparse training instead of STEPBERT-base · GLUE (WNLI excluded)Avg score: 77.7 ± 0.1 -> 79.6 ± 0.6Helped
Use 2:4 sparse training instead of a half-width dense FFNBERT-base · GLUE (WNLI excluded)Avg score: 77.9 ± 0.4 -> 79.6 ± 0.6Helped
Use 2:4 sparse training instead of dense trainingGPT-2 350M · SQuADF1: 83.6 -> 82.4Hurt
Use 2:4 sparse training instead of dense trainingTransformer-base · WMT 14 En-DeTest BLEU: 26.15 -> 26.48Helped
Use 2:4 sparse trainingGPT-2 774M · GPT-2 pre-trainingSpeedup: 1.21Helped
Add masked decay (ablation)BERT-base 2:4 training · GLUEAvg score: 77.6 ± 0.2 -> 79.2 ± 0.2Helped
Add MVUE (ablation)BERT-base 2:4 training with masked decay · GLUEAvg score: 79.2 ± 0.2 -> 78.4 ± 0.3Hurt
Add dense fine-tuning (ablation)BERT-base 2:4 training with masked decay · GLUEAvg score: 79.2 ± 0.2 -> 79.4 ± 0.2Helped
Add MVUE to masked decay and dense fine-tuning (ablation)BERT-base 2:4 training · GLUEAvg score: 79.4 ± 0.2 -> 79.6 ± 0.6No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: C4 OpenWebText ImageNet-1K WMT 14 En-De

Benchmarks: GLUE SQuAD ImageNet-1K WMT 14 En-De BLEU

Metrics: GLUE average score EM/F1 Acc@1 Acc@5 BLEU validation loss training speedup

Baselines: Dense Half STEP Bi-Mask Original DeiT

Builds on: SR-STE STEP Bi-Mask MVUE Cramming

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