Abstract
Large-scale neural networks present significant deployment challenges due to their immense parameter counts and computational requirements. We present a novel top-down, layer-wise pruning framework that utilizes Mutual Information (MI) to identify and retain the most informative neurons. Unlike traditional unstructured pruning methods that create sparse matrices with irregular memory access, our approach enables "matrix squeezing" into smaller, dense architectures. Experimental results across various NLP benchmarks, including WMT14 and BERT-based tasks, demonstrate that MI-based pruning achieves superior inference speedups and higher task accuracy compared to traditional weight-based baselines.
Introduction
As neural networks like GPT-3 and BERT grow to billions of parameters, they become increasingly difficult to deploy on hardware with limited memory and computation. Model pruning—the process of removing unnecessary parameters—is the standard solution. However, traditional weight-based pruning methods, such as magnitude pruning, suffer from two major flaws: they create "sparse" matrices that modern hardware struggles to process efficiently, and they often prune matrices independently, ignoring the global signal of information flow from input to output.
Methodology: MI-based Layer-wise Pruning
The proposed method treats pruning as a feature selection problem, utilizing a top-down strategy that starts from the final softmax layer and moves backward toward the input embeddings.
Top-Down Selection and Gaussian Estimation
For each layer $l$, the algorithm selects a subset of $K$ neurons that share the highest Mutual Information with the neurons already preserved in the layer above ($l+1$). Calculating MI for thousands of dimensions is computationally expensive; to make it tractable, we assume neuron values follow a Gaussian distribution, allowing for efficient MI estimation using maximum likelihood. To avoid redundancy, we employ a "Maximum Relevancy Minimum Redundancy" (mRMR) greedy approach, picking neurons that are highly relevant to the layer above but not redundant with each other.
Matrix Squeezing
A key innovation of this work is the transition from unstructured to structured pruning. Because the algorithm prunes entire neurons (rows and columns) rather than individual weights, the resulting matrices can be physically "squeezed" into smaller, dense shapes.
This structured approach avoids the overhead of irregular memory access and maximizes the hardware acceleration capabilities of modern GPUs and CPUs.
Experimental Results
We evaluated the method on a variety of standard NLP benchmarks, including generative tasks (WMT14 En-Fr and En-De) and discriminative tasks (SQuAD v1.1, MNLI, and SST-5), using Transformer and BERT backbones.
Inference Speedup
The structured nature of MI-based pruning leads to significant real-world hardware acceleration. On the WMT14 En-Fr task, pruning an "Extra-Large" model to "Large" dimensions using MI achieved a 2.6x speedup, compared to only 2.1x for magnitude pruning.
Task Performance
At equivalent sparsity levels, the MI-based method consistently outperformed magnitude, movement, and $L_0$ pruning. For example, on En-Fr translation, the MI-pruned model achieved 42.4 BLEU, significantly higher than magnitude pruning's 41.7. Furthermore, using MI for feature selection followed by retraining actually improved the performance of the original unpruned models, reaching a state-of-the-art 43.9 BLEU on En-Fr.
Discussion and Insights
Our analysis revealed several key insights. First, structured pruning is far more practical for deployment than unstructured methods. Second, by pruning top-down, every preserved neuron is mathematically justified by the final output requirements. Finally, we discovered an "inverted pyramid" sparsity pattern—where layers closer to the output are kept denser than lower layers—performs best, suggesting that top layers contain more critical, high-level task information.
Limitations and Future Work
The current approach relies on a Gaussian assumption for neuron distributions, which may not capture all complex, non-linear dependencies. Future research could explore more sophisticated MI estimators, such as neural-based estimation, to potentially achieve even higher compression ratios without sacrificing accuracy.
Summary updated