PGB: One-Shot Pruning for BERT via Weight Grouping and Permutation

· Source: Journal of Artificial Intelligence Research · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Advanced, quick

Summary

A novel semi-structured one-shot pruning method, Permutation and Grouping for BERT (PGB), addresses the slow inference and high memory usage of large pretrained language models like BERT. PGB identifies important groups of individual weights through permutation and prunes all other weights as a structure within both multi-head attention and feed-forward layers. This method can also drop entire layers if no important group is formed, leading to a more compact model. Experimental results on BERTBASE indicate that PGB surpasses existing state-of-the-art structured pruning methods in terms of computational cost and accuracy preservation, offering a simpler and more computationally efficient alternative to iterative pruning and knowledge distillation.

Key takeaway

For NLP engineers optimizing BERT-based applications, PGB offers a compelling method to significantly reduce model size and inference latency without complex iterative processes. You should consider integrating PGB for its efficiency and accuracy preservation, especially when deploying models to resource-constrained environments or seeking faster inference times. This approach simplifies model compression compared to traditional knowledge distillation.

Key insights

PGB offers efficient one-shot pruning for BERT, reducing model size and inference cost while maintaining accuracy.

Principles

Method

PGB identifies important weight groups via permutation, pruning others structurally in attention and feed-forward layers, and can drop entire layers if no important groups are found.

In practice

Topics

Best for: NLP Engineer, AI Scientist, Research Scientist, AI Researcher, AI Engineer, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Journal of Artificial Intelligence Research.