Abstract
We analyze the inductive bias of gradient descent for weight normalized smooth homogeneous neural nets, when trained on exponential or cross-entropy loss. We analyse both standard weight normalization (SWN) and exponential weight normalization (EWN), and show that the gradient flow path with EWN is equivalent to gradient flow on standard networks with an adaptive learning rate. We extend these results to gradient descent, and establish asymptotic relations between weights and gradients for both SWN and EWN. We also show that EWN causes weights to be updated in a way that prefers asymptotic relative sparsity. For EWN, we provide a finite-time convergence rate of the loss with gradient flow and a tight asymptotic convergence rate with gradient descent. Experimental results on simple datasets support our claim on sparse EWN solutions, even with SGD, demonstrating its potential applications in learning neural networks amenable to pruning.
Introduction
Deep neural networks are typically overparameterized, yet they generalize remarkably well. This phenomenon is often attributed to the inductive bias of optimization algorithms like Gradient Descent (GD), which tend to find "simple" solutions. In standard unnormalized networks, simplicity is often characterized by solutions with small $L_2$ norms. However, modern architectures rely heavily on normalization techniques (e.g., Batch Norm or Weight Norm) that fundamentally alter the geometry of the parameter space. This paper investigates the inductive bias of Weight Normalization, specifically comparing standard versions to an exponential variant, to understand how they influence final weight distributions and model compressibility.
Normalization and Gradient Flow Equivalence
The study focuses on two types of weight reparameterization for smooth homogeneous neural networks:
- Standard Weight Normalization (SWN): Weights are decomposed into a scalar magnitude $\gamma$ and a direction vector $v$.
- Exponential Weight Normalization (EWN): Weights are decomposed into $e^\alpha$ and a direction vector $v$.
A core theoretical contribution is the proof that training a network with EWN is mathematically equivalent to training an unnormalized network with an adaptive, neuron-dependent learning rate. This adaptive rate is scaled by the squared norm of the weights, creating a dynamic where neurons with larger initial norms or better alignment with the gradient are updated significantly faster.
The Inductive Bias Toward Sparsity
This "rich get richer" effect leads to asymptotic relative sparsity. The authors prove that in EWN, the ratio of weight norms between different neurons will either explode to infinity or drop to zero over time. Unlike standard gradient descent, where dense solutions can be stable, the optimization path for EWN is naturally repelled from dense configurations and attracted to sparse ones.
As shown in the trajectory analysis above, EWN forces the optimization toward the axes of the parameter space, effectively "picking winners" among the available neurons. This ensures that the network naturally converges to a sparse functional representation, even if the initial architecture is wide.
Empirical Results and Pruning Efficacy
The theoretical findings are validated through experiments on synthetic and real-world datasets, including XOR and MNIST.
- XOR Sparsity: In an XOR task with 20 hidden neurons (where only 4 are required), EWN-trained networks converged to using exactly 4 neurons, while SWN and unnormalized networks continued to utilize nearly all 20.
- Temporal Dynamics: The evolution of weight norms during training clearly illustrates the competitive dynamic. A small subset of weights grows rapidly while the majority remain stagnant near zero.
- MNIST Pruning: On the MNIST dataset, EWN-trained networks maintained significantly higher test accuracy after pruning compared to standard networks. At high pruning levels (80-90%), EWN models showed minimal performance degradation, confirming that the induced sparsity is functionally meaningful.
Conclusion
Exponential Weight Normalization (EWN) provides a powerful inductive bias toward relative sparsity by creating an adaptive learning rate dynamic. This property makes EWN-trained networks naturally amenable to pruning without the need for complex regularization terms. While the current theory focuses on smooth activations and first-layer sparsity, the empirical success on standard ReLU networks suggests broad potential for designing more compressible and efficient deep learning models.
Summary updated