G-SGD: Optimizing ReLU Neural Networks in its Positively Scale-Invariant Space.

Qi Meng, Shuxin Zheng, Huishuai Zhang, Wei Chen, Qiwei Ye, Zhi-Ming Ma, Nenghai Yu, Tie‐Yan Liu

TL;DR

This paper introduces G-SGD, a novel optimization algorithm for ReLU neural networks that operates in a "positively scale-invariant space." By reformulating the optimization problem in this new space, G-SGD addresses a fundamental mismatch with traditional gradient descent, leading to significantly improved performance on benchmark datasets.

What Problem Does This Paper Address?

Neural networks using Rectified Linear Units (ReLUs) have a peculiar property: they are "positively scale-invariant." This means you can multiply incoming weights to a ReLU unit by a constant $c$ and divide outgoing weights by $c$, and the network's output remains unchanged. However, standard optimization algorithms like Stochastic Gradient Descent (SGD) operate in the raw weight space, which isn't scale-invariant. This mismatch can hinder effective optimization, potentially leading to slower convergence or suboptimal solutions. The authors ask: can we find a better space to optimize these networks, one that respects their inherent scale-invariance?

Methods

The core of this work is the introduction of a new optimization space called "G-space." Here's how they construct it:

  • Positive Scaling Group ($\mathcal{G}$): They define a group of "positive scaling operators" that capture the scale-invariance property of ReLUs.
  • Path Values as Invariants: They show that the product of weights along any "path" in the network (from input to output, potentially through hidden units) is invariant under these scaling operations. Crucially, the collection of all path values is sufficient to represent the network's behavior.
  • Basis Paths and G-space: They identify a subset of "basis paths" whose values form a linearly independent set. The linear span of these basis path values defines the G-space. This G-space is positively scale-invariant and has a lower dimension than the original weight space (specifically, $m-H$, where $m$ is the number of weights and $H$ is the number of hidden units).
  • G-SGD Algorithm: They then design a novel SGD variant, G-SGD, that optimizes the network's parameters directly in this G-space. This involves a "skeleton method" to identify basis paths and weights, an "inverse-chain-rule" to compute gradients in G-space, and a "weight-allocation" method to project updates back to the original weight space.

Datasets

The paper evaluates G-SGD on standard image classification benchmarks:

  • CIFAR-10
  • CIFAR-100
  • Fashion-MNIST

Key Insights and Ideas

  • The Mismatch Matters: The paper provides strong theoretical and empirical evidence that the scale-invariance of ReLUs is not just a theoretical curiosity but a property that, if ignored by optimizers, can negatively impact performance.
  • Paths as Fundamental Units: By focusing on the values of paths rather than individual weights, the authors leverage a more fundamental representation of the network's function that respects its inherent symmetries.
  • Dimensionality Reduction: The G-space offers a more compact representation of the network, potentially leading to more efficient optimization. The reduction in dimension ($m-H$) can be substantial in deep networks.
  • G-SGD is Efficient: Despite introducing a new optimization framework, G-SGD incurs only a small computational overhead compared to standard SGD, making it practical for real-world applications.

Key Results

  • Significant Performance Gains: G-SGD consistently outperforms standard SGD across various network architectures (PlainNet, ResNet) and datasets (CIFAR-10, CIFAR-100, Fashion-MNIST). For example, on CIFAR-100, G-SGD improved accuracy by up to 5.7% on PlainNet compared to SGD.
  • Deeper Networks Benefit: The performance advantage of G-SGD is observed even on deeper ResNet architectures (e.g., ResNet-110), indicating its scalability.
  • Comparison with Path-SGD: G-SGD also shows superior performance compared to Path-SGD, another method that considers scale-invariance, highlighting the importance of accounting for path dependencies.

Limitations and Future Work

  • ResNet Invariance: The paper notes that residual connections in ResNet architectures can break the global scale-invariance, limiting the direct application of the G-space concept across the entire network. However, they show it can still be applied within residual blocks.
  • Batch Normalization: The paper discusses how to adapt G-SGD for networks with batch normalization layers, but it's an area that requires careful handling due to BN's own normalization effects.
  • Future Work: The authors suggest examining G-SGD's performance on larger-scale tasks and exploring its combination with other regularization techniques.

Summary updated

Abstract

It is well known that neural networks with rectified linear units (ReLU) activation functions are positively scale-invariant. Conventional algorithms like stochastic gradient descent optimize the neural networks in the vector space of weights, which is, however, not positively scale-invariant. This mismatch may lead to problems during the optimization process. Then, a natural question is: can we construct a new vector space that is positively scale-invariant and sufficient to represent ReLU neural networks so as to better facilitate the optimization process? In this paper, we provide our positive answer to this question. First, we conduct a formal study on the positive scaling operators which forms a transformation group, denoted as G. We prove that the value of a path (i.e. the product of the weights along the path) in the neural network is invariant to positive scaling and the value vector of all the paths is sufficient to represent the neural networks under mild conditions. Second, we show that one can identify some basis paths out of all the paths and prove that the linear span of their value vectors (denoted as G-space) is an invariant space with lower dimension under the positive scaling group. Finally, we design stochastic gradient descent algorithm in G-space (abbreviated as G-SGD) to optimize the value vector of the basis paths of neural networks with little extra cost by leveraging back-propagation. Our experiments show that G-SGD significantly outperforms the conventional SGD algorithm in optimizing ReLU networks on benchmark datasets.
BibTeX
@inproceedings{meng2019g,
  author = {Qi Meng and Shuxin Zheng and Huishuai Zhang and Wei Chen and Qiwei Ye and Zhi-Ming Ma and Nenghai Yu and Tie‐Yan Liu},
  title = {{G-SGD: Optimizing ReLU Neural Networks in its Positively Scale-Invariant Space.}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=mDE_pOdjR2o},
}

Loading related content...

Figure