Abstract
ReLU neural networks are positively scale-invariant, yet standard optimization algorithms like SGD operate in a weight space that lacks this property. This mismatch can hinder optimization. We propose $\mathcal{G}$-SGD, an algorithm that optimizes in a scale-invariant "$\mathcal{G}$-space" of path values. By identifying basis paths and leveraging an Inverse-Chain-Rule, $\mathcal{G}$-SGD achieves superior performance on benchmark datasets with minimal computational overhead.
The Weight Space Trap
In ReLU networks, multiplying incoming weights to a neuron by a scalar and dividing outgoing weights by the same scalar leaves the network's output unchanged. This positive scale-invariance creates a redundancy: many different weight configurations represent the same mathematical function. Standard Stochastic Gradient Descent (SGD) ignores this symmetry, navigating a weight space that is $H$ dimensions larger than necessary (where $H$ is the number of hidden units). This redundancy often leads to a rugged optimization landscape, slowing down convergence.
Methods: Moving to $\mathcal{G}$-space
To resolve this, we propose moving the optimization from the raw weight space to the $\mathcal{G}$-space, a vector space defined by path values.
- Path Values and Basis Paths: A path value is the product of weights along a path from input to output. These values are inherently scale-invariant. Since the number of paths grows exponentially with depth, we identify a minimal set of basis paths that are sufficient to represent the network.
- The Skeleton Method: We use a "skeleton" of weights to define these basis paths, ensuring the representation is both complete and efficient.
- $\mathcal{G}$-SGD Algorithm: We implement optimization through two key mechanisms: the Inverse-Chain-Rule (ICR), which converts standard gradients into gradients for the basis paths, and Weight-Allocation (WA), which projects updates back onto the actual weights.
Key Results
Our experiments demonstrate that $\mathcal{G}$-SGD consistently outperforms vanilla SGD across various architectures and datasets like CIFAR-10 and CIFAR-100.
- Significant Accuracy Gains: On CIFAR-100 using a PlainNet-34, $\mathcal{G}$-SGD reduced the classification error from 36.41% to 30.74%. Even on ResNet-110, where skip connections limit scaling symmetry, $\mathcal{G}$-SGD reached an error of 6.49% compared to 6.83% for SGD.
- Efficiency: Despite the extra math involved in the ICR and WA steps, $\mathcal{G}$-SGD only adds about 7% computational overhead compared to vanilla SGD, making it a viable alternative for real-world training.
Conclusion
By aligning the optimization space with the functional properties of ReLU networks, $\mathcal{G}$-SGD effectively removes redundant dimensions from the search space. This theoretically grounded approach offers a practical way to improve deep learning performance on standard computer vision tasks. Future work will explore more robust integrations with Batch Normalization and residual connections.
Summary updated