Introduction
In supervised learning, larger neural networks possess the functional flexibility to fit training data perfectly. However, this often comes at the cost of high parameter variance, leading to overfitting and poor generalization on unseen data. To combat this, researchers employ pruning—the removal of unnecessary network components.
Traditional pruning methods have significant drawbacks:
- Simple weight removal ignores the correlations between neurons.
- Optimal Brain Damage (OBD) relies on a "diagonal" approximation of the Hessian matrix (second-order derivatives of the error), which is frequently inaccurate.
- Optimal Brain Surgeon (OBS) uses the full Hessian, offering mathematical precision but becoming computationally intractable for large networks.
Principal Components Pruning (PCP) emerges as a computationally efficient middle ground. It improves neural network generalization by identifying and removing "eigen-nodes" that contribute little to the output, without requiring a full Hessian calculation or network retraining.
The Principal Components Pruning (PCP) Method
The core innovation of PCP is applying Principal Component Analysis (PCA) to the node activations within each layer of the network.
Instead of evaluating individual physical neurons or weight magnitudes, PCP operates in the "eigen-space." The algorithm follows these steps:
- Normal Training: Train the network using standard procedures.
- Correlation Matrix: For each layer, compute the correlation matrix of the inputs.
- Saliency Measurement: Calculate a "saliency" score for each principal component (eigen-node). This measure ($w_i^T w_i \lambda_i$) combines the weight magnitude with the variance ($\lambda$) of the input signal. Low saliency indicates a negligible effect on the output error.
- Pruning: Rank the components by saliency and use a validation set to prune those that do not increase the error.
- Projection: Project the weights onto the remaining "significant" subspace.
Mathematically, PCP acts as a block-diagonal approximation of the Hessian. This provides a richer representation than OBD’s simple diagonal approach while remaining significantly faster than OBS’s full-matrix computation. Because PCP projects weights onto a significant subspace, the network remains functional immediately, eliminating the need for expensive fine-tuning or retraining. Furthermore, unlike OBD and OBS, PCP does not strictly require the network to be at a local minimum of the error function to be effective.
Experimental Datasets
The authors evaluated PCP on two distinct problems:
- Polynomial Regression: A synthetic univariate problem using 10th-order polynomial basis functions to fit a signal composed of four sigmoids plus Gaussian noise.
- Economic Time Series: Predicting the U.S. Index of Industrial Production (IP) using 45 macroeconomic and financial indicators collected monthly from 1960 to 1990.
Key Results
Regression Task
In the synthetic regression task, the unpruned 10th-order polynomial exhibited a test error of 0.0183. By applying PCP to remove the four least significant eigenfunctions, the test error dropped to 0.0126, demonstrating a clear improvement in the model's ability to generalize.
Economic Prediction
Predicting economic indicators is notoriously noisy. However, PCP proved robust in this environment. Compared to an unpruned sigmoidal network, the PCP-optimized model consistently lowered the normalized error across all prediction horizons, ranging from 1 to 12 months.
Computational Complexity
The authors demonstrated that PCP’s computational complexity scales with the square of the number of units in a given layer. In contrast, the more exhaustive OBS method scales with the square of the total number of weights in the entire network, making PCP vastly more efficient for deep architectures.
Limitations and Future Work
While powerful, PCP has a few notable limitations:
- Stationarity Assumption: Like most pruning techniques, PCP assumes the training data distribution is stationary and representative of future data. If the underlying signal shifts, previously pruned dimensions might become relevant again.
- Linear Approximation: The current iteration of PCP relies on a linearized approach to identify saliency. The authors are exploring nonlinear extensions using Generalized Prediction Error (GPE) to better accommodate complex activation functions.
- Small Sample Sizes: Statistical criteria like Akaike’s Final Prediction Error (FPE) can be unreliable with small sample sizes or biased models, necessitating the careful use of validation sets during the pruning phase.
Summary updated