GMP*: Well-Tuned Global Magnitude Pruning Can Outperform Most BERT-Pruning Methods

Eldar Kurtic, Dan AlistarharXiv 2022

Introduction

In the field of Large Language Model (LLM) compression, researchers have long assumed that simple Gradual Magnitude Pruning (GMP)—the process of removing weights with the smallest absolute values—is a weak baseline for BERT-style models. This assumption led to a surge in complex, computationally expensive alternatives utilizing gradients, loss curvature, or intricate "Prune-Once-for-All" schemes.

This paper challenges the consensus by introducing GMP★. The authors demonstrate that with a few principled tuning tweaks, the classic magnitude pruner can actually match or exceed the performance of most state-of-the-art (SOTA) methods, proving that simplicity often wins when properly optimized.

The GMP★ Recipe

The authors identify three crucial parameters that, when optimized, transform the standard GMP baseline into the high-performing GMP★:

  1. The "Big Jump" Sparsity Schedule: Instead of a linear increase from 0% to 97%, GMP★ starts with a massive initial step (e.g., jumping straight to 70% sparsity). This leverages BERT’s inherent over-parameterization, allowing the model more time to recover and fine-tune during the more difficult later stages of pruning.
  2. Recurring Learning Rate: Rather than a single decay, a "recurring" schedule repeats the fine-tuning cycle multiple times, intertwining it with pruning steps to ensure the model adapts to the increasing weight removal.
  3. High-Temperature Knowledge Distillation (KD): Standard KD often uses a temperature ($T$) of 1 or 2, resulting in a "peaky" teacher distribution that provides a weak signal. By increasing $T$ to 5.5, the authors "soften" the output, providing a richer training signal essential for learning at high sparsities.
The GMP★ training schedule featuring the 'Big Jump' sparsity increase and recurring learning rate cycles.

Experimental Results

The study evaluated BERT-base performance across three major benchmarks: SQuADv1.1 (Question Answering), MNLI (Natural Language Inference), and QQP (Quora Question Pairs).

Key Findings

  • Performance Gains: At 97% sparsity on SQuADv1.1, GMP★ achieved an 85.4 F1 score, a massive improvement over the previous GMP baseline of 59.6.
  • Competitive Edge: GMP★ outperformed highly competitive methods like Movement Pruning (MvP) and Prune OFA. It was only slightly edged out by oBERT, a significantly more complex method using second-order Hessian information. Notably, applying the GMP★ tuning recipe to oBERT further improved its performance, setting a new state-of-the-art.
Performance comparison of GMP★ against state-of-the-art pruning methods on SQuADv1.1 and MNLI tasks.

Discussion and Conclusion

The success of GMP★ reveals a "straw man" problem in pruning research: many advanced methods were comparing themselves against poorly tuned baselines. By visualizing teacher output distributions, the authors found that standard KD was nearly obsolete at high sparsities because the teacher was too certain; increasing the temperature was the key to unlocking student learning.

While this study focused on BERT-base, preliminary results on BERT-large suggest the recipe is robust. Future work will explore how these hyperparameters translate to massive generative models like GPT-3 and address the inference latency of unstructured sparsity on standard hardware.

Summary updated

BibTeX
@misc{kurtic2022gmp,
  author = {Eldar Kurtic and Dan Alistarh},
  title = {{GMP*: Well-Tuned Global Magnitude Pruning Can Outperform Most BERT-Pruning Methods}},
  year = {2022},
  url = {https://openreview.net/forum?id=amkjnn_5Ir},
}
Figure