TL;DR
The Unit-OBS algorithm accelerates neural network pruning by removing entire neurons (units) at once rather than individual weights. By leveraging second-order Hessian information to identify the least "important" units, it achieves significant speedups over the classic Optimal Brain Surgeon (OBS) method while simultaneously performing automated feature extraction.
What Problem Does This Paper Address?
In the mid-90s, "pruning" was a popular way to make neural networks smaller and more generalizable. The gold standard was Optimal Brain Surgeon (OBS), which used the Hessian matrix (second-order derivatives of the error) to determine which weights could be deleted with the least impact on performance.
However, OBS had a massive bottleneck: it was computationally expensive ($O(n^2 p)$). To prune a large network, you had to calculate the inverse Hessian, delete a single weight, and then repeat the process. For modern (or even 1990s-era "big") networks, this was agonizingly slow. Furthermore, weight-level pruning often left "dead" neurons with only a few connections, which didn't necessarily help in understanding which input features were actually important.
Methods
The authors introduce Unit-OBS, a specialized version of a "Generalized OBS" (G-OBS).
- Generalized OBS (G-OBS): The authors first derive a mathematical framework to remove $m$ weights simultaneously. While theoretically powerful, finding the best $m$ weights is a combinatorial nightmare—choosing 4 weights out of 1000 involves billions of combinations.
- The Unit-OBS Shortcut: To make G-OBS practical, the authors restrict the search space. Instead of looking for any $m$ weights, they look specifically at the outgoing connections of a single unit.
- The Logic: If you can remove all outgoing connections of a neuron without significantly increasing the error, the entire neuron becomes useless and can be pruned.
- The Algorithm:
- Train the network to minimum error.
- Compute the inverse Hessian.
- For every unit, calculate the "cost" ($\Delta E$) of removing all its outgoing weights.
- Remove the unit with the lowest cost and update the remaining weights using a closed-form solution.
- Repeat until a stopping criterion is met.
Datasets
The paper evaluates the algorithm on two classic benchmarks:
- The Monk-1 Problem: A synthetic logical dataset where the "rules" are known. This is used to see if the algorithm can correctly identify and remove unimportant input features.
- The Thyroid Benchmark: A real-world medical classification task involving 21 input features (continuous and binary) and three output classes.
Key Insights and Ideas
- From Weights to Units: The shift from weight-level pruning to unit-level pruning is the core innovation. It transforms a high-complexity search into a linear search over the number of units.
- Feature Extraction as a Side Effect: By pruning units in the input layer, the algorithm automatically performs feature selection. It identifies which sensors or data points are irrelevant to the final classification.
- The "Hybrid" Strategy: The authors found that the best results come from a two-stage process: use Unit-OBS first to quickly "thin out" the network by removing entire neurons, then use standard OBS to fine-tune the remaining weights. This provides the speed of the new method with the precision of the old one.
Key Results
- Speed: On the Thyroid benchmark, Unit-OBS was approximately 8 times faster (7.8x speedup) than the original OBS when deleting the same number of weights.
- Efficiency: For the Monk-1 problem, Unit-OBS reduced the time to find a minimal network by 62% compared to OBS.
- Sparsity: In the Thyroid task, the algorithm reduced the input features from 21 down to just 7, and the hidden units from 10 down to 2, while actually improving the classification rate on the test set (from 98.4% to 98.5%).
- Interpretability: By pruning the Monk-1 network down to its essentials, the underlying logical rules of the dataset became more "evident" in the remaining network structure.
Limitations and Future Work
- Computational Bottleneck: While faster than OBS, the algorithm still requires calculating and inverting the Hessian matrix ($O(n^2 p)$). For extremely large modern networks (millions of parameters), this remains a significant challenge.
- Local Quadratic Approximation: Like OBS, Unit-OBS assumes the error surface is locally quadratic. If the network is in a highly non-linear region of the error space, the "cost" calculation for pruning might be inaccurate.
- Future Directions: The authors suggest that this information can be used to facilitate "rule extraction," helping humans understand the "why" behind a neural network's decisions.
Summary updated