Abstract
Recent works show that overparameterized networks contain small subnetworks that exhibit comparable accuracy to the full model when trained in isolation. These results highlight the potential to reduce training costs of deep neural networks without sacrificing generalization performance. However, existing approaches for finding these small networks rely on expensive multi-round train-and-prune procedures and are non-practical for large data sets and models. In this paper, we show how to find small networks that exhibit the same performance as their overparameterized counterparts after only a few training epochs. We find that hidden layer activations in overparameterized networks exist primarily in subspaces smaller than the actual model width. Building on this observation, we use PCA to find a basis of high variance for layer inputs and represent layer weights using these directions. We eliminate all weights not relevant to the found PCA basis and term these network architectures Principal Component Networks. On CIFAR-10 and ImageNet, we show that PCNs train faster and use less energy than overparameterized models, without accuracy loss. We find that our transformation leads to networks with up to 23.8x fewer parameters, with equal or higher end-model accuracy---in some cases we observe improvements up to 3%. We also show that ResNet-20 PCNs outperform deep ResNet-110 networks while training faster.
Introduction
Modern deep learning relies heavily on overparameterization—the practice of using far more neurons and weights than theoretically necessary. While this helps models generalize better and find better solutions, it comes at a massive computational cost in terms of FLOPs, memory, and energy.
Existing solutions like weight pruning or the "Lottery Ticket Hypothesis" usually require training a full model first or performing expensive iterative "train-prune-reset" cycles. These are impractical for large-scale datasets like ImageNet. The authors ask: Can we identify the essential subnetwork early in training to save costs from the start?
Methodology
The authors introduce Principal Component Networks (PCNs). Their approach is based on the observation that hidden layer activations in wide networks actually live in much smaller subspaces than the layer's total width.
The PCN training pipeline follows four main steps:
- Warm-up: Randomly initialize a wide, overparameterized network and train it for just a few epochs (sometimes as little as one).
- Subspace Identification: Perform PCA on the hidden layer activations to find the directions of highest variance.
- Transformation: Project the layer's weights onto this PCA basis. This involves reducing input features and pruning unimportant output filters based on their influence on subsequent layers.
- Compressed Training: Continue training the now-smaller network until convergence.
Unlike standard pruning, which just removes individual weights, PCNs mathematically re-represent the layers in a more efficient coordinate system.
Key Insights: The Low-Dimensional Nature of Activations
A core finding of this work is that hidden layer activations occupy a space of significantly lower "effective dimensionality" than the actual model width. This reveals that much of the network's capacity is redundant and can be compressed early on.
Crucially, these low-dimensional subspaces emerge very early in training. As shown in the figure above, the "Subspace Identification" phase occurs within the first few epochs. This "early emergence" allows for the PCN transformation to occur well before convergence, saving significant computational resources. Furthermore, PCNs often outperform their "parent" networks. The authors suggest that by forcing the model into a high-variance subspace, PCNs act as a form of regularization that prevents overfitting to noise.
Experimental Results
The authors evaluated PCNs on standard computer vision benchmarks including CIFAR-10 (Conv4, WideResNet-20) and ImageNet (VGG-19, WideResNet-50).
Key results include:
- Parameter Reduction: On CIFAR-10, the Conv4 architecture saw a 23.8x reduction in parameters with a 2% increase in accuracy.
- ImageNet Performance: For WideResNet-50, PCNs reduced parameters from 98M to 62M while slightly increasing accuracy (77.52% to 77.64%).
- Efficiency: On CIFAR-10, WideResNet-20 PCNs trained using 16% less total energy and were 49% faster per epoch than the deeper ResNet-110 they outperformed.
Discussion and Future Work
While PCNs offer significant advantages, some limitations remain. Current deep learning frameworks are optimized for standard dense and convolutional layers; without custom GPU kernels for PCA-transformed operations, some theoretical speedups are not yet fully realized in wall-clock time. Additionally, choosing the exact epoch for transformation is currently heuristic. Future work aims to extend PCNs to other architectures like Transformers and automate the timing of the transformation.
Summary updated