On the distance between two neural networks and the stability of learning
Jeremy Bernstein, Arash Vahdat, Yisong Yue, Ming-Yu Liu
TL;DR
This work addresses the persistent challenge of learning-rate tuning in deep networks by introducing a distance on neural networks, called deep relative trust, that captures how perturbations to layer parameters propagate through the network’s compositional structure. Building on this, the authors derive a neural-network–specific descent lemma and propose Frobenius matched gradient descent (Fromage), a per-layer update with a single interpretable hyperparameter governing relative perturbation size. Theoretical results reveal a quasi-exponential trust region with depth and a product-form bound on gradient breakdown, while empirical studies show Fromage performs robustly across MNIST, CIFAR-10, ImageNet, GANs, and transformers with minimal LR tuning. Collectively, the paper offers a principled framework to stabilize training of deep networks and simplify optimization workflows, with open-source code provided for replication.
Abstract
This paper relates parameter distance to gradient breakdown for a broad class of nonlinear compositional functions. The analysis leads to a new distance function called deep relative trust and a descent lemma for neural networks. Since the resulting learning rule seems to require little to no learning rate tuning, it may unlock a simpler workflow for training deeper and more complex neural networks. The Python code used in this paper is here: https://github.com/jxbz/fromage.
