LGMLFeb 2, 2022

Robust Training of Neural Networks Using Scale Invariant Architectures

arXiv:2202.00980v233 citations
AI Analysis

This addresses the need for memory-efficient and robust training in deep learning, offering a non-adaptive alternative to Adam, though it is incremental as it builds on existing SGD and architecture modifications.

The paper tackles the problem of robust training of neural networks without adaptive methods like Adam, proposing a scale-invariant architecture and training recipe that achieves comparable performance to adaptive methods on BERT, with convergence depending logarithmically on initialization scale.

In contrast to SGD, adaptive gradient methods like Adam allow robust training of modern deep networks, especially large language models. However, the use of adaptivity not only comes at the cost of extra memory but also raises the fundamental question: can non-adaptive methods like SGD enjoy similar benefits? In this paper, we provide an affirmative answer to this question by proposing to achieve both robust and memory-efficient training via the following general recipe: (1) modify the architecture and make it scale invariant, i.e. the scale of parameter doesn't affect the output of the network, (2) train with SGD and weight decay, and optionally (3) clip the global gradient norm proportional to weight norm multiplied by $\sqrt{\tfrac{2λ}η}$, where $η$ is learning rate and $λ$ is weight decay. We show that this general approach is robust to rescaling of parameter and loss by proving that its convergence only depends logarithmically on the scale of initialization and loss, whereas the standard SGD might not even converge for many initializations. Following our recipe, we design a scale invariant version of BERT, called SIBERT, which when trained simply by vanilla SGD achieves performance comparable to BERT trained by adaptive methods like Adam on downstream tasks.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes