Exact, Tractable Gauss-Newton Optimization in Deep Reversible Architectures Reveal Poor Generalization

Davide Buffelli, Jamie McGowan, Wangkun Xu, Alexandru Cioba, Da-shan Shiu +2 more
11/12/2024
cs.LGcs.AI

No official code found. Best implementation: mtkresearch/exact_GN_revNN (3 stars, Apache-2.0, last commit 2025-02-05).

Abstract

Second-order optimization has been shown to accelerate the training of deep neural networks in many applications, often yielding faster progress per iteration on the training loss compared to first-order optimizers. However, the generalization properties of second-order methods are still being debated. Theoretical investigations have proved difficult to carry out outside the tractable settings of heavily simplified model classes -- thus, the relevance of existing theories to practical deep learning applications remains unclear. Similarly, empirical studies in large-scale models and real datasets are significantly confounded by the necessity to approximate second-order updates in practice. It is often unclear whether the observed generalization behaviour arises specifically from the second-order nature of the parameter updates, or instead reflects the specific structured (e.g.\ Kronecker) approximations used or any damping-based interpolation towards first-order updates. Here, we show for the first time that exact Gauss-Newton (GN) updates take on a tractable form in a class of deep reversible architectures that are sufficiently expressive to be meaningfully applied to common benchmark datasets. We exploit this novel setting to study the training and generalization properties of the GN optimizer. We find that exact GN generalizes poorly. In the mini-batch training setting, this manifests as rapidly saturating progress even on the \emph{training} loss, with parameter updates found to overfit each mini-batchatch without producing the features that would support generalization to other mini-batches. We show that our experiments run in the ``lazy'' regime, in which the neural tangent kernel (NTK) changes very little during the course of training. This behaviour is associated with having no significant changes in neural representations, explaining the lack of generalization.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Repository for the paper "Exact, Tractable Gauss-Newton Optimization in Deep Reversible Architectures Reveal Poor Generalization" published at NeurIPS 2024

30Shell, PythonFeb 5, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{buffelli2024exact,
  title  = {Exact, Tractable Gauss-Newton Optimization in Deep Reversible Architectures Reveal Poor Generalization},
  author = {Davide Buffelli and Jamie McGowan and Wangkun Xu and Alexandru Cioba and Da-shan Shiu and Guillaume Hennequin and Alberto Bernacchia},
  year   = {2024},
  eprint = {2411.07979},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.07979},
  url    = {http://arxiv.org/abs/2411.07979v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.07979.svg)](https://codeofpaper.com/paper/2411.07979)

Discussion