Skip to main content
QUICK REVIEW

[Paper Review] What Matters In The Structured Pruning of Generative Language Models?

Michael Santacroce, Zixin Wen|arXiv (Cornell University)|Feb 7, 2023
Topic ModelingComputer Science7 citations
TL;DR

The paper systematically evaluates structured pruning methods for decoder-only LLMs on NLG tasks and introduces Globally Unique Movement (GUM), a pruning approach that balances neuron sensitivity and uniqueness to outperform existing methods under various settings.

ABSTRACT

Auto-regressive large language models such as GPT-3 require enormous computational resources to use. Traditionally, structured pruning methods are employed to reduce resource usage. However, their application to and efficacy for generative language models is heavily under-explored. In this paper we conduct an comprehensive evaluation of common structured pruning methods, including magnitude, random, and movement pruning on the feed-forward layers in GPT-type models. Unexpectedly, random pruning results in performance that is comparable to the best established methods, across multiple natural language generation tasks. To understand these results, we provide a framework for measuring neuron-level redundancy of models pruned by different methods, and discover that established structured pruning methods do not take into account the distinctiveness of neurons, leaving behind excess redundancies. In view of this, we introduce Globally Unique Movement (GUM) to improve the uniqueness of neurons in pruned models. We then discuss the effects of our techniques on different redundancy metrics to explain the improved performance.

Motivation & Objective

  • Assess how traditional structured pruning methods (magnitude, movement, random) perform on decoder-only generative language models.
  • Understand why some pruning methods underperform and identify neuron redundancy factors crucial for pruning quality.
  • Propose an empirical framework to measure neuron redundancy (sensitivity and uniqueness) and use it to guide pruning.
  • Introduce GUM (Globally Unique Movement) to improve neuron uniqueness while maintaining sensitivity and evaluate across NLP generation tasks.

Proposed method

  • Evaluate common structured pruning methods (magnitude, random, movement) on MLP blocks of decoder-only LLMs during fine-pruning.
  • Use mask-based pruning with Top_v and variants; compare hard vs soft movement and magnitude pruning.
  • Incorporate knowledge distillation to assess its effect on pruning gaps.
  • Develop redundancy metrics: sensitivity (impact of removing a neuron) and uniqueness (ability of a neuron’s outputs to be reconstructed from others).
  • Propose Globally Unique Movement (GUM) by combining a cosine-similarity-based uniqueness term with movement-based pruning to favor unique, salient neurons.
  • Provide running cosine similarity update to estimate inter-neuron similarity during training and prune accordingly.

Experimental results

Research questions

  • RQ1How do standard structured pruning methods perform on decoder-only LLMs for NLG tasks compared to naïve random pruning?
  • RQ2What redundancy properties (sensitivity vs. uniqueness) best correlate with pruning performance in generative models?
  • RQ3Can a pruning strategy that explicitly promotes neuron uniqueness (GUM) outperform existing methods under various data/tasks and model sizes?
  • RQ4How does knowledge distillation influence the performance gaps among different pruning methods?

Key findings

  • Random pruning often matches or nearly matches established methods on several NLG tasks, especially with distillation.
  • Distillation tends to close gaps between pruning methods, reducing the advantage of more sophisticated pruning.
  • A framework based on sensitivity and uniqueness provides explanations for method performance and correlates with pruning outcomes.
  • GUM generally outperforms traditional methods by achieving high uniqueness while maintaining reasonable sensitivity, and its gains amplify with certain model sizes and tasks.
  • Hard movement yields high sensitivity and strong performance without distillation, but GUM remains competitive and benefits from distillation.
  • Across tasks, increasing pruning reduces sensitivity and increases uniqueness, with the best results arising from balancing both metrics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.