Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC
Second-order methods such as KFAC can be useful for neural net training. However, they are often memory-inefficient since their preconditioning Kronecker factors are dense, and numerically unstable in low precision as they require matrix inversion or decomposition. These limitations render such meth...
Gespeichert in:
Hauptverfasser: | , , , , , , |
---|---|
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | |
---|---|
container_issue | |
container_start_page | |
container_title | |
container_volume | |
creator | Lin, Wu Dangel, Felix Eschenhagen, Runa Neklyudov, Kirill Kristiadi, Agustinus Turner, Richard E Makhzani, Alireza |
description | Second-order methods such as KFAC can be useful for neural net training.
However, they are often memory-inefficient since their preconditioning
Kronecker factors are dense, and numerically unstable in low precision as they
require matrix inversion or decomposition. These limitations render such
methods unpopular for modern mixed-precision training. We address them by (i)
formulating an inverse-free KFAC update and (ii) imposing structures in the
Kronecker factors, resulting in structured inverse-free natural gradient
descent (SINGD). On modern neural networks, we show that SINGD is
memory-efficient and numerically robust, in contrast to KFAC, and often
outperforms AdamW even in half precision. Our work closes a gap between first-
and second-order methods in modern low-precision training. |
doi_str_mv | 10.48550/arxiv.2312.05705 |
format | Article |
fullrecord | <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2312_05705</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2312_05705</sourcerecordid><originalsourceid>FETCH-arxiv_primary_2312_057053</originalsourceid><addsrcrecordid>eNpjYJA0NNAzsTA1NdBPLKrILNMzMjY00jMwNTcw5WQICS4pKk0uKS1KTVHwzCtLLSpO1XUrSk1V8EsECibmKLgXJaZkpuaVWCn4pubmF1XquqalZSaDRBTUFPxKc1OLMpMTc3IqdYNLEpNyUhW83RydeRhY0xJzilN5oTQ3g7yba4izhy7Y_viCoszcxKLKeJA74sHuMCasAgDC-j0t</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC</title><source>arXiv.org</source><creator>Lin, Wu ; Dangel, Felix ; Eschenhagen, Runa ; Neklyudov, Kirill ; Kristiadi, Agustinus ; Turner, Richard E ; Makhzani, Alireza</creator><creatorcontrib>Lin, Wu ; Dangel, Felix ; Eschenhagen, Runa ; Neklyudov, Kirill ; Kristiadi, Agustinus ; Turner, Richard E ; Makhzani, Alireza</creatorcontrib><description>Second-order methods such as KFAC can be useful for neural net training.
However, they are often memory-inefficient since their preconditioning
Kronecker factors are dense, and numerically unstable in low precision as they
require matrix inversion or decomposition. These limitations render such
methods unpopular for modern mixed-precision training. We address them by (i)
formulating an inverse-free KFAC update and (ii) imposing structures in the
Kronecker factors, resulting in structured inverse-free natural gradient
descent (SINGD). On modern neural networks, we show that SINGD is
memory-efficient and numerically robust, in contrast to KFAC, and often
outperforms AdamW even in half precision. Our work closes a gap between first-
and second-order methods in modern low-precision training.</description><identifier>DOI: 10.48550/arxiv.2312.05705</identifier><language>eng</language><subject>Computer Science - Learning ; Statistics - Machine Learning</subject><creationdate>2023-12</creationdate><rights>http://creativecommons.org/licenses/by-nc-sa/4.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,885</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2312.05705$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2312.05705$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Lin, Wu</creatorcontrib><creatorcontrib>Dangel, Felix</creatorcontrib><creatorcontrib>Eschenhagen, Runa</creatorcontrib><creatorcontrib>Neklyudov, Kirill</creatorcontrib><creatorcontrib>Kristiadi, Agustinus</creatorcontrib><creatorcontrib>Turner, Richard E</creatorcontrib><creatorcontrib>Makhzani, Alireza</creatorcontrib><title>Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC</title><description>Second-order methods such as KFAC can be useful for neural net training.
However, they are often memory-inefficient since their preconditioning
Kronecker factors are dense, and numerically unstable in low precision as they
require matrix inversion or decomposition. These limitations render such
methods unpopular for modern mixed-precision training. We address them by (i)
formulating an inverse-free KFAC update and (ii) imposing structures in the
Kronecker factors, resulting in structured inverse-free natural gradient
descent (SINGD). On modern neural networks, we show that SINGD is
memory-efficient and numerically robust, in contrast to KFAC, and often
outperforms AdamW even in half precision. Our work closes a gap between first-
and second-order methods in modern low-precision training.</description><subject>Computer Science - Learning</subject><subject>Statistics - Machine Learning</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNpjYJA0NNAzsTA1NdBPLKrILNMzMjY00jMwNTcw5WQICS4pKk0uKS1KTVHwzCtLLSpO1XUrSk1V8EsECibmKLgXJaZkpuaVWCn4pubmF1XquqalZSaDRBTUFPxKc1OLMpMTc3IqdYNLEpNyUhW83RydeRhY0xJzilN5oTQ3g7yba4izhy7Y_viCoszcxKLKeJA74sHuMCasAgDC-j0t</recordid><startdate>20231209</startdate><enddate>20231209</enddate><creator>Lin, Wu</creator><creator>Dangel, Felix</creator><creator>Eschenhagen, Runa</creator><creator>Neklyudov, Kirill</creator><creator>Kristiadi, Agustinus</creator><creator>Turner, Richard E</creator><creator>Makhzani, Alireza</creator><scope>AKY</scope><scope>EPD</scope><scope>GOX</scope></search><sort><creationdate>20231209</creationdate><title>Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC</title><author>Lin, Wu ; Dangel, Felix ; Eschenhagen, Runa ; Neklyudov, Kirill ; Kristiadi, Agustinus ; Turner, Richard E ; Makhzani, Alireza</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-arxiv_primary_2312_057053</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Computer Science - Learning</topic><topic>Statistics - Machine Learning</topic><toplevel>online_resources</toplevel><creatorcontrib>Lin, Wu</creatorcontrib><creatorcontrib>Dangel, Felix</creatorcontrib><creatorcontrib>Eschenhagen, Runa</creatorcontrib><creatorcontrib>Neklyudov, Kirill</creatorcontrib><creatorcontrib>Kristiadi, Agustinus</creatorcontrib><creatorcontrib>Turner, Richard E</creatorcontrib><creatorcontrib>Makhzani, Alireza</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv Statistics</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Lin, Wu</au><au>Dangel, Felix</au><au>Eschenhagen, Runa</au><au>Neklyudov, Kirill</au><au>Kristiadi, Agustinus</au><au>Turner, Richard E</au><au>Makhzani, Alireza</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC</atitle><date>2023-12-09</date><risdate>2023</risdate><abstract>Second-order methods such as KFAC can be useful for neural net training.
However, they are often memory-inefficient since their preconditioning
Kronecker factors are dense, and numerically unstable in low precision as they
require matrix inversion or decomposition. These limitations render such
methods unpopular for modern mixed-precision training. We address them by (i)
formulating an inverse-free KFAC update and (ii) imposing structures in the
Kronecker factors, resulting in structured inverse-free natural gradient
descent (SINGD). On modern neural networks, we show that SINGD is
memory-efficient and numerically robust, in contrast to KFAC, and often
outperforms AdamW even in half precision. Our work closes a gap between first-
and second-order methods in modern low-precision training.</abstract><doi>10.48550/arxiv.2312.05705</doi><oa>free_for_read</oa></addata></record> |
fulltext | fulltext_linktorsrc |
identifier | DOI: 10.48550/arxiv.2312.05705 |
ispartof | |
issn | |
language | eng |
recordid | cdi_arxiv_primary_2312_05705 |
source | arXiv.org |
subjects | Computer Science - Learning Statistics - Machine Learning |
title | Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-23T18%3A06%3A22IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Structured%20Inverse-Free%20Natural%20Gradient:%20Memory-Efficient%20&%20Numerically-Stable%20KFAC&rft.au=Lin,%20Wu&rft.date=2023-12-09&rft_id=info:doi/10.48550/arxiv.2312.05705&rft_dat=%3Carxiv_GOX%3E2312_05705%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true |