Tensor Normal Training for Deep Learning Models

Yi Ren, Donald Goldfarb
6/5/2021
cs.LG

Official code: renyiryry/tnt_neurips_2021 (4 stars, Jupyter Notebook, PyTorch, last commit 2022-03-01).

Abstract

Despite the predominant use of first-order methods for training deep learning models, second-order methods, and in particular, natural gradient methods, remain of interest because of their potential for accelerating training through the use of curvature information. Several methods with non-diagonal preconditioning matrices, including KFAC, Shampoo, and K-BFGS, have been proposed and shown to be effective.

Show full abstract

Based on the so-called tensor normal (TN) distribution, we propose and analyze a brand new approximate natural gradient method, Tensor Normal Training (TNT), which like Shampoo, only requires knowledge of the shape of the training parameters. By approximating the probabilistically based Fisher matrix, as opposed to the empirical Fisher matrix, our method uses the block-wise covariance of the sampling based gradient as the pre-conditioning matrix. Moreover, the assumption that the sampling-based (tensor) gradient follows a TN distribution, ensures that its covariance has a Kronecker separable structure, which leads to a tractable approximation to the Fisher matrix. Consequently, TNT's memory requirements and per-iteration computational costs are only slightly higher than those for first-order methods. In our experiments, TNT exhibited superior optimization performance to state-of-the-art first-order methods, and comparable optimization performance to the state-of-the-art second-order methods KFAC and Shampoo. Moreover, TNT demonstrated its ability to generalize as well as first-order methods, while using fewer epochs.

View on arXivView PDF

Code Implementations(1)

PyTorch
42Jupyter Notebook, PythonJun 3, 20214 years ago
deep-learningoptimizerpytorchsecond-order-optimization

Similar Papers

Cite this paper

@article{ren2021tensor,
  title  = {Tensor Normal Training for Deep Learning Models},
  author = {Yi Ren and Donald Goldfarb},
  year   = {2021},
  eprint = {2106.02925},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.02925}
}

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/2106.02925.svg)](https://codeofpaper.com/paper/2106.02925)

Discussion