Abstract
It has been well known that neural networks with rectified linear hidden units (ReLU) as activation functions are positively scale invariant, which results in severe redundancy in their weight space (i.e., many ReLU networks with different weights are actually equivalent). In this paper, we formally characterize this redundancy/equivalence using the language of quotient space and discuss its negative impact on the optimization of ReLU neural networks. Specifically, we show that all equivalent ReLU networks correspond to the same vector in the quotient space, and each such vector can be characterized by the so-called skeleton paths in the ReLU networks. With this, we prove that the dimensionality of the quotient space is #weight-#(hidden nodes), indicating that the redundancy of the weight space is huge. In this paper, we propose to optimize ReLU neural networks directly in the quotient space, instead of the original weight space. We represent the loss function in the quotient space and design a new stochastic gradient descent algorithm to iteratively learn the model, which we call Quotient stochastic gradient descent (abbreviated as Quotient SGD). We also develop efficient tricks to ensure that the implementation of Quotient SGD almost requires no extra computations as compared to standard SGD. According to the experiments on benchmark datasets, our proposed Quotient SGD can significantly improve the accuracy of the learned model.
Introduction: The Redundancy of ReLU Networks
ReLU neural networks exhibit a property known as positive scale-invariance. For any hidden node, multiplying incoming weights by a scalar $c > 0$ and dividing outgoing weights by the same $c$ leaves the network's output unchanged. Standard Stochastic Gradient Descent (SGD) ignores this geometry, treating every weight as an independent coordinate. This creates a redundant weight space where multiple points represent the same function, potentially leading to inefficient optimization paths. This paper introduces Quotient Stochastic Gradient Descent ($\mathcal{G}$-SGD), which optimizes directly in a scale-invariant "quotient space."
Methodology: Navigating the $\mathcal{G}$-Space
To eliminate redundancy, the authors propose moving optimization from individual weights to path values. A path value is the product of weights along a path from an input neuron to an output neuron. These products are naturally invariant to node-wise scaling.
The dimensionality of this invariant space is proven to be $m - H$, where $m$ is the number of weights and $H$ is the number of hidden units. To implement $\mathcal{G}$-SGD efficiently, the authors use a "Skeleton Method" to map path-space gradients back to weights using two techniques:
- Inverse-Chain-Rule (ICR): Calculates gradients in path space.
- Weight-Allocation (WA): Projects these gradients back to the weight space for updates.
This approach leverages standard backpropagation, adding only minimal computational overhead (approximately 7% in practice).
Key Insights: The Invariance Gap
A critical finding is that the redundancy in a ReLU network is exactly equal to the number of hidden nodes. The authors observe an "Invariance Gap": as the ratio of hidden nodes to weights increases, the performance gap between $\mathcal{G}$-SGD and standard SGD widens. This suggests that scale-invariance mismatch is a significant bottleneck in deep learning optimization. Unlike previous attempts like Path-SGD, $\mathcal{G}$-SGD formally accounts for weight dependencies across paths using a structure matrix, ensuring exact gradients.
Experimental Results
The researchers evaluated $\mathcal{G}$-SGD on CIFAR-10 and CIFAR-100 using various architectures, including ResNet-34 and "PlainNet-34" (a CNN without residual connections).
Key findings include:
- Significant Accuracy Gains: On CIFAR-100, PlainNet-34 with $\mathcal{G}$-SGD achieved a 30.74% error rate, a substantial improvement over the 36.41% achieved by standard SGD.
- PlainNets vs. ResNets: Remarkably, a PlainNet trained with $\mathcal{G}$-SGD outperformed a standard ResNet-34 trained with vanilla SGD on CIFAR-10. This indicates that architectural complexities like skip-connections may partially serve to compensate for suboptimal weight-space optimization.
- Efficiency: Despite the complex math involving quotient spaces, the implementation maintains 93% of the throughput of vanilla SGD, making it a practical drop-in replacement.
Discussion and Future Work
While $\mathcal{G}$-SGD shows great promise, challenges remain. Residual connections break global scale-invariance, requiring block-wise application. Additionally, the interaction between Batch Normalization and $\mathcal{G}$-space requires further rigorous study. Future work will explore scaling the method to larger architectures like Transformers and massive datasets like ImageNet.
Summary updated