FAdam: Adam is a natural gradient optimizer using diagonal empirical Fisher information

Fuente: arXiv
Saved in:
Bibliographic Details
Main Author: Hwang, Dongseong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917767530151936
author Hwang, Dongseong
author_facet Hwang, Dongseong
contents This paper establishes a mathematical foundation for the Adam optimizer, elucidating its connection to natural gradient descent through Riemannian and information geometry. We provide an accessible and detailed analysis of the diagonal empirical Fisher information matrix (FIM) in Adam, clarifying all detailed approximations and advocating for the use of log probability functions as loss, which should be based on discrete distributions, due to the limitations of empirical FIM. Our analysis uncovers flaws in the original Adam algorithm, leading to proposed corrections such as enhanced momentum calculations, adjusted bias corrections, adaptive epsilon, and gradient clipping. We refine the weight decay term based on our theoretical framework. Our modified algorithm, Fisher Adam (FAdam), demonstrates superior performance across diverse domains including LLM, ASR, and VQ-VAE, achieving state-of-the-art results in ASR.
format Preprint
id arxiv_https___arxiv_org_abs_2405_12807
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FAdam: Adam is a natural gradient optimizer using diagonal empirical Fisher information
Hwang, Dongseong
Machine Learning
Artificial Intelligence
Information Theory
This paper establishes a mathematical foundation for the Adam optimizer, elucidating its connection to natural gradient descent through Riemannian and information geometry. We provide an accessible and detailed analysis of the diagonal empirical Fisher information matrix (FIM) in Adam, clarifying all detailed approximations and advocating for the use of log probability functions as loss, which should be based on discrete distributions, due to the limitations of empirical FIM. Our analysis uncovers flaws in the original Adam algorithm, leading to proposed corrections such as enhanced momentum calculations, adjusted bias corrections, adaptive epsilon, and gradient clipping. We refine the weight decay term based on our theoretical framework. Our modified algorithm, Fisher Adam (FAdam), demonstrates superior performance across diverse domains including LLM, ASR, and VQ-VAE, achieving state-of-the-art results in ASR.
title FAdam: Adam is a natural gradient optimizer using diagonal empirical Fisher information
topic Machine Learning
Artificial Intelligence
Information Theory
url https://arxiv.org/abs/2405.12807