EasyDeepLearn

What are the main pruning techniques for neural networks?

medium

Answer

  • Unstructured pruning: set individual weights to zero based on magnitude (w  <  threshold)( \mid w \mid \; < \;\mathrm{threshold}) — high compression, but sparse matrices are hard to accelerate without specialized kernels.
  • Structured pruning: remove entire filters / channels / attention heads — smaller matrices, natively fast on GPUs.
  • Typical recipe: iterative magnitude pruning + fine-tuning to recover accuracy.
  • Modern LLM pruning: SparseGPT, Wanda — one-shot pruning post-training.
  • Combined with quantization for further compression.
Check yourself — multiple choice
  • Only random deletion
  • Unstructured (magnitude, hard to accelerate) vs structured (filters/channels/heads, natively fast); iterative or one-shot
  • Pruning always hurts accuracy
  • Same as quantization

Pruning: unstructured (sparse) vs structured (channel/head); combine with fine-tuning to preserve accuracy.

#pruning#distillation

Practise Deep Learning

214 interview questions in this topic.

Related questions