Abstract
Due to the over-parameterization nature, neural networks are a powerful tool for nonlinear function approximation. In order to achieve good generalization on unseen data, a suitable inductive bias is of great importance for neural networks. One of the most straightforward ways is to regularize the neural network with some additional objectives. L2 regularization serves as a standard regularization for neural networks. Despite its popularity, it essentially regularizes one dimension of the individual neuron, which is not strong enough to control the capacity of highly over-parameterized neural networks. Motivated by this, hyperspherical uniformity is proposed as a novel family of relational regularizations that impact the interaction among neurons. We consider several geometrically distinct ways to achieve hyperspherical uniformity. The effectiveness of hyperspherical uniformity is justified by theoretical insights and empirical evaluations.
Introduction
To prevent over-parameterized neural networks from overfitting, practitioners typically rely on individual regularization, such as $L_2$ weight decay. However, these methods only penalize the magnitude of individual weights and ignore the relationships between neurons. While relational regularizations like enforcing orthogonality address this by controlling the angles between neurons, they break down when the number of neurons exceeds the dimensionality of the input space—a common scenario in modern wide networks.
This paper introduces hyperspherical uniformity, a novel family of relational regularizations that encourages neurons to distribute themselves evenly across a unit hypersphere. By optimizing geometrically inspired objectives, the authors provide a more general inductive bias that remains effective regardless of the network's width relative to its input dimension.
Methodology
The authors propose several distinct, geometrically interpretable learning objectives to achieve hyperspherical uniformity among a layer's neurons:
- MHE (Minimum Hyperspherical Energy): Treats neurons like electrons on a sphere and minimizes their pairwise potential energy, forcing global repulsion.
- MHS (Maximum Hyperspherical Separation): Focuses on local separation by maximizing the distance between the two closest neurons.
- MHP (Maximum Hyperspherical Polarization) & MHC (Minimum Hyperspherical Covering): Max-min optimization problems that ensure no large "empty spaces" exist on the hypersphere.
- MGD (Maximum Gram Determinant): Maximizes the determinant of the kernel Gram matrix, effectively maximizing the volume spanned by the neurons.
To prevent trivial solutions where neurons simply point in opposite directions, the authors employ a "virtual neuron trick," creating virtual opposites for every neuron and regularizing the combined set.
Optimization Dynamics and Insights
The proposed objectives exhibit different optimization behaviors. For instance, MHE updates all neurons simultaneously based on global interactions, while MHS focuses on local dynamics. Empirical results suggest that focusing on local separation (MHS) often yields slightly better generalization.
Key theoretical insights include:
- Orthogonality as a Special Case: The authors prove that hyperspherical uniformity is a strictly more general property than orthogonality, which is equivalent to uniformity only under specific constraints.
- Angular Occam's Razor: While standard weight decay pushes weights toward zero, hyperspherical uniformity pushes weights to maintain their uniform random initialization distribution, implementing Occam's razor in angular space.
Empirical Results
The effectiveness of these regularizations was validated across diverse domains:
- Computer Vision: On CIFAR-100, MHS improved a ResNet-32's error rate from 22.87% to 20.97%. On ImageNet, it reduced Top-1 error on ResNet-18 from 32.95% to 32.06%.
- Graph and 3D Data: Significant gains were observed in Graph Convolutional Networks (up to 1.6% accuracy boost on Citeseer) and 3D PointNets.
- Generative Modeling: When applied to a vanilla GAN discriminator on CIFAR-10, MHS improved the Inception Score from 7.14 to 7.61, outperforming Spectral Normalization.
Conclusion
Hyperspherical uniformity offers a powerful and flexible inductive bias for deep learning. While max-min objectives like MHP and MHC present optimization challenges, the broader family of regularizations consistently improves generalization across architectures. Future work will focus on more stable optimization schemes and exploring new initialization methods derived from these geometric principles.
Summary updated