Introduction
Deep neural networks (DNNs) often contain millions or billions of parameters, making them computationally expensive and memory-intensive. This paper introduces a method to dramatically compress DNNs using a specialized regularizer called GrOWL (Group Ordered Weighted $L_1$). Unlike standard methods that only delete "useless" connections, GrOWL simultaneously identifies redundant neurons and forces them to share the same weight values, leading to massive memory savings with negligible loss in accuracy.
The Challenge of Over-parameterization
DNNs are notoriously over-parameterized, containing many redundant weights. Researchers typically tackle this complexity in two ways:
- Sparsification (Pruning): Setting unimportant weights to zero.
- Parameter Tying: Forcing groups of weights to share a single value (e.g., shared weights in convolutional layers).
Standard tools like Lasso ($L_1$ regularization) excel at sparsification but struggle with correlated features. If two neurons perform almost identical functions, Lasso arbitrarily eliminates one and keeps the other, potentially destabilizing training. Furthermore, parameter tying is usually hard-wired by human designers rather than learned from data. This paper aims to automatically learn both sparsity and tying structures during the training process.
The GrOWL Approach
The authors employ the GrOWL regularizer to address these limitations.
How GrOWL Works
GrOWL sorts weights (or groups of weights) by magnitude before applying a penalty. Larger weights are penalized more heavily, encouraging them to cluster together or drop to zero. Mathematically, GrOWL is designed to identify strongly correlated features and encourage their corresponding weights to be nearly or exactly equal.
The Two-Stage Pipeline
The proposed method operates in two distinct phases:
- Discovery Phase: The network is trained using the GrOWL regularizer. This unveils the network's underlying structure by zeroing out specific neurons and clustering others into groups that share similar values.
- Enforcement Phase: An Affinity Propagation clustering algorithm formally groups the remaining non-zero weights. The network is then retrained, forcing all weights within a cluster to share a single "centroid" value. This drastically reduces the number of unique parameters the model must store.
Experimental Setup
The approach was evaluated across several domains:
- Synthetic Data: A controlled environment demonstrating GrOWL's ability to identify block-diagonal correlation structures missed by standard Lasso.
- MNIST: The classic handwritten digit recognition dataset.
- CIFAR-10: A more complex object recognition dataset, utilizing a VGG-16 architecture.
Key Insights
- Stability over Arbitrariness: While Group-Lasso randomly selects one feature from a correlated group, GrOWL retains the entire group and ties them together. This produces a much more stable set of important features across different training runs.
- Exploiting Co-adaptation: In deep layers, neurons often co-adapt to recognize complex patterns. GrOWL leverages this natural correlation to group these neurons for compression.
- Hybrid Regularization: Combining GrOWL with standard $L_2$ weight decay yields the best results, effectively balancing model simplicity with high accuracy.
Results
The experiments demonstrate that GrOWL achieves high compression with minimal accuracy loss:
- MNIST: Achieved a 24.1x compression ratio (reducing unique parameters by 96%) while maintaining 98.1% accuracy (only a 0.2% drop from the uncompressed baseline).
- CIFAR-10 (VGG-16): Reached a 14.5x compression ratio with an accuracy of 92.7%, compared to the uncompressed baseline of 93.4%.
- Comparison: GrOWL consistently outperformed Group-Lasso in compression ratios because of its unique ability to tie parameters, whereas Group-Lasso only shrinks them.
Limitations and Future Work
- Early Layer Difficulty: Encouraging parameter tying in the first few convolutional layers proved difficult. Early-layer filters (like edge detectors) require diversity to capture raw image data effectively.
- Clustering Sensitivity: The final compression rate depends heavily on the "preference" parameter in the Affinity Propagation algorithm, which currently requires manual tuning.
- Granularity: The current implementation ties weights at the neuron or channel level. Applying GrOWL at a finer granularity (e.g., within individual 2D filters) could unlock better trade-offs between diversity and parameter sharing.
Summary updated