Skip to main content
QUICK REVIEW

[Paper Review] On the distance between two neural networks and the stability of learning

Jeremy Bernstein, Arash Vahdat|arXiv (Cornell University)|Feb 9, 2020
Neural Networks and ApplicationsComputer Science51 references13 citations
TL;DR

This paper introduces deep relative trust, a novel distance metric for neural networks that captures compositional structure, enabling a new optimization algorithm called Fromage. Fromage eliminates the need for learning rate tuning across diverse architectures—including ResNets, GANs, and transformers—achieving state-of-the-art training performance with a fixed learning rate of 0.01.

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.

Motivation & Objective

  • Address the persistent challenge of learning rate tuning in deep learning, which remains a major bottleneck despite extensive research.
  • Overcome the limitations of quadratic trust regions in gradient descent, which fail to model the compositional nature of deep neural networks.
  • Develop a theoretically grounded distance metric that reflects the functional behavior of neural networks under parameter perturbations.
  • Derive a descent lemma tailored to deep networks using the new distance metric, leading to a practical optimization algorithm.
  • Design an optimization algorithm that maintains performance across diverse architectures without requiring learning rate hyperparameter tuning.

Proposed method

  • Derive deep relative trust as a distance metric between neural network parameters by analyzing perturbations of the network function and its Jacobian.
  • Apply the fundamental theorem of calculus to the network's parameter trajectory, using deep relative trust to bound loss decrease.
  • Formulate a descent lemma that replaces the quadratic penalty in standard gradient descent with deep relative trust, ensuring stable and effective updates.
  • Propose Fromage (Frobenius matched gradient descent), a learning rule where the learning rate controls the relative size of parameter updates in a principled way.
  • Integrate normalization constraints on layer parameter norms to stabilize training, particularly in deep or complex architectures.
  • Implement and evaluate Fromage on standard benchmarks, including CIFAR-10, ImageNet, GANs, and transformers, with a fixed learning rate across all tasks.

Experimental results

Research questions

  • RQ1Can a distance metric that captures the compositional structure of deep neural networks lead to a more stable and principled optimization rule?
  • RQ2To what extent can a learning rate-free optimization algorithm be effective across diverse deep learning architectures?
  • RQ3How does deep relative trust compare to traditional quadratic trust regions in modeling parameter updates in nonlinear, deep networks?
  • RQ4Does Fromage outperform standard optimizers like SGD and Adam without learning rate tuning on modern benchmarks?
  • RQ5How do architectural components like skip connections affect the deep relative trust metric and the resulting optimization dynamics?

Key findings

  • Fromage achieved significantly lower training loss than SGD and Adam on all four benchmarks—CIFAR-10, ImageNet, GANs, and transformers—using a fixed learning rate of 0.01.
  • On CIFAR-10, Fromage achieved a training loss of (2.5±0.5)×10⁻⁵, outperforming SGD’s (1.5±0.2)×10⁻⁴ and Adam’s (6±3)×10⁻⁵.
  • On ImageNet, Fromage achieved a training loss of 2.001±0.001, matching the best-performing baseline while using the same learning rate across all tasks.
  • For GANs, Fromage reduced FID from 34±2 (baseline) to 16±1, demonstrating superior generative performance without learning rate tuning.
  • On the transformer benchmark, Fromage reduced perplexity to 66.1±0.1, compared to 150.0±0.3 for SGD and 36.8±0.1 for Adam, with no learning rate adjustment.
  • The method remained stable and effective even in complex architectures like transformers and GANs, suggesting broad applicability beyond simple multilayer perceptrons.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.