π A masterpiece classic of a Paper - NVIDIA's Pruning and Distillation
Addresses the industry need towards compact, resource-efficient models that maintain performance.
The work presents practical structured compression techniques for LLMs, merging various pruning approaches with knowledge distillation retraining.
π https://arxiv.org/pdf/2408.11796
Key Insights from this Paper π‘:
β’ Combining pruning with distillation effectively compresses LLMs
β’ Fine-tuning the teacher model on the distillation dataset improves results
β’ Width pruning outperforms depth pruning for a given parameter budget
β’ Distillation-based training surpasses conventional methods with fewer tokens
Solution in this Paper π οΈ:
β’ Two-step compression: pruning followed by knowledge distillation
β’ Pruning strategies: depth pruning and joint hidden/attention/MLP pruning
β’ Activation-based importance estimation for pruning
β’ Logit-only distillation with forward KL divergence loss
β’ Teacher correction: fine-tuning on distillation dataset before pruning
Results π:
β’ Compressed Llama 3.1 8B to 4B and Mistral NeMo 12B to 8B parameters
β’ MN-Minitron-8B outperforms Llama 3.1 8B using 40x fewer training tokens
β’ Llama-3.1-Minitron-4B models match teacher performance with 150x fewer tokens
β’ Width-pruned variant consistently outperforms depth-pruned for Llama 3.1
β’ 2.7x and 1.8x inference speedup for depth and width pruned 4B models respectively










