Towards Exact Gradient-based Training on Analog In-memory Computing

Given the high economic and environmental costs of using large vision or language models, analog in-memory accelerators present a promising solution for energy-efficient AI. While inference on analog accelerators has been studied recently, the training perspective is underexplored. Recent studies ha...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wu, Zhaoxian, Gokmen, Tayfun, Rasch, Malte J, Chen, Tianyi
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 Wu, Zhaoxian
Gokmen, Tayfun
Rasch, Malte J
Chen, Tianyi
description Given the high economic and environmental costs of using large vision or language models, analog in-memory accelerators present a promising solution for energy-efficient AI. While inference on analog accelerators has been studied recently, the training perspective is underexplored. Recent studies have shown that the "workhorse" of digital AI training - stochastic gradient descent (SGD) algorithm converges inexactly when applied to model training on non-ideal devices. This paper puts forth a theoretical foundation for gradient-based training on analog devices. We begin by characterizing the non-convergent issue of SGD, which is caused by the asymmetric updates on the analog devices. We then provide a lower bound of the asymptotic error to show that there is a fundamental performance limit of SGD-based analog training rather than an artifact of our analysis. To address this issue, we study a heuristic analog algorithm called Tiki-Taka that has recently exhibited superior empirical performance compared to SGD and rigorously show its ability to exactly converge to a critical point and hence eliminates the asymptotic error. The simulations verify the correctness of the analyses.
doi_str_mv 10.48550/arxiv.2406.12774
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2406_12774</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2406_12774</sourcerecordid><originalsourceid>FETCH-LOGICAL-a674-cc984f14813240eaa64ae63fe7cc46747dce8fa93393447ba0d7a48660f6252c3</originalsourceid><addsrcrecordid>eNotj71uwjAUhb10qGgfoBN-AQcnvrGdEUVAkZC6ZI8u_kGWiI2ctMDbk9JOZzhHn85HyEfJC9B1zVeYb-GnqIDLoqyUglfSdumK2Y50c0Mz0V1GG1yc2BFHZ2mXMcQQTzRFuo54Tie6j2xwQ8p32qbh8j3N7Rt58Xge3ft_Lki33XTtJzt87fbt-sBQKmDGNBp8CboU8wGHKAGdFN4pY2AeKGuc9tgI0QgAdURuFYKWkntZ1ZURC7L8wz4t-ksOA-Z7_2vTP23EA8WERFs</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Towards Exact Gradient-based Training on Analog In-memory Computing</title><source>arXiv.org</source><creator>Wu, Zhaoxian ; Gokmen, Tayfun ; Rasch, Malte J ; Chen, Tianyi</creator><creatorcontrib>Wu, Zhaoxian ; Gokmen, Tayfun ; Rasch, Malte J ; Chen, Tianyi</creatorcontrib><description>Given the high economic and environmental costs of using large vision or language models, analog in-memory accelerators present a promising solution for energy-efficient AI. While inference on analog accelerators has been studied recently, the training perspective is underexplored. Recent studies have shown that the "workhorse" of digital AI training - stochastic gradient descent (SGD) algorithm converges inexactly when applied to model training on non-ideal devices. This paper puts forth a theoretical foundation for gradient-based training on analog devices. We begin by characterizing the non-convergent issue of SGD, which is caused by the asymmetric updates on the analog devices. We then provide a lower bound of the asymptotic error to show that there is a fundamental performance limit of SGD-based analog training rather than an artifact of our analysis. To address this issue, we study a heuristic analog algorithm called Tiki-Taka that has recently exhibited superior empirical performance compared to SGD and rigorously show its ability to exactly converge to a critical point and hence eliminates the asymptotic error. The simulations verify the correctness of the analyses.</description><identifier>DOI: 10.48550/arxiv.2406.12774</identifier><language>eng</language><subject>Computer Science - Hardware Architecture ; Computer Science - Learning ; Mathematics - Optimization and Control</subject><creationdate>2024-06</creationdate><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.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,776,881</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2406.12774$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2406.12774$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Wu, Zhaoxian</creatorcontrib><creatorcontrib>Gokmen, Tayfun</creatorcontrib><creatorcontrib>Rasch, Malte J</creatorcontrib><creatorcontrib>Chen, Tianyi</creatorcontrib><title>Towards Exact Gradient-based Training on Analog In-memory Computing</title><description>Given the high economic and environmental costs of using large vision or language models, analog in-memory accelerators present a promising solution for energy-efficient AI. While inference on analog accelerators has been studied recently, the training perspective is underexplored. Recent studies have shown that the "workhorse" of digital AI training - stochastic gradient descent (SGD) algorithm converges inexactly when applied to model training on non-ideal devices. This paper puts forth a theoretical foundation for gradient-based training on analog devices. We begin by characterizing the non-convergent issue of SGD, which is caused by the asymmetric updates on the analog devices. We then provide a lower bound of the asymptotic error to show that there is a fundamental performance limit of SGD-based analog training rather than an artifact of our analysis. To address this issue, we study a heuristic analog algorithm called Tiki-Taka that has recently exhibited superior empirical performance compared to SGD and rigorously show its ability to exactly converge to a critical point and hence eliminates the asymptotic error. The simulations verify the correctness of the analyses.</description><subject>Computer Science - Hardware Architecture</subject><subject>Computer Science - Learning</subject><subject>Mathematics - Optimization and Control</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotj71uwjAUhb10qGgfoBN-AQcnvrGdEUVAkZC6ZI8u_kGWiI2ctMDbk9JOZzhHn85HyEfJC9B1zVeYb-GnqIDLoqyUglfSdumK2Y50c0Mz0V1GG1yc2BFHZ2mXMcQQTzRFuo54Tie6j2xwQ8p32qbh8j3N7Rt58Xge3ft_Lki33XTtJzt87fbt-sBQKmDGNBp8CboU8wGHKAGdFN4pY2AeKGuc9tgI0QgAdURuFYKWkntZ1ZURC7L8wz4t-ksOA-Z7_2vTP23EA8WERFs</recordid><startdate>20240618</startdate><enddate>20240618</enddate><creator>Wu, Zhaoxian</creator><creator>Gokmen, Tayfun</creator><creator>Rasch, Malte J</creator><creator>Chen, Tianyi</creator><scope>AKY</scope><scope>AKZ</scope><scope>GOX</scope></search><sort><creationdate>20240618</creationdate><title>Towards Exact Gradient-based Training on Analog In-memory Computing</title><author>Wu, Zhaoxian ; Gokmen, Tayfun ; Rasch, Malte J ; Chen, Tianyi</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a674-cc984f14813240eaa64ae63fe7cc46747dce8fa93393447ba0d7a48660f6252c3</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Computer Science - Hardware Architecture</topic><topic>Computer Science - Learning</topic><topic>Mathematics - Optimization and Control</topic><toplevel>online_resources</toplevel><creatorcontrib>Wu, Zhaoxian</creatorcontrib><creatorcontrib>Gokmen, Tayfun</creatorcontrib><creatorcontrib>Rasch, Malte J</creatorcontrib><creatorcontrib>Chen, Tianyi</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv Mathematics</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Wu, Zhaoxian</au><au>Gokmen, Tayfun</au><au>Rasch, Malte J</au><au>Chen, Tianyi</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Towards Exact Gradient-based Training on Analog In-memory Computing</atitle><date>2024-06-18</date><risdate>2024</risdate><abstract>Given the high economic and environmental costs of using large vision or language models, analog in-memory accelerators present a promising solution for energy-efficient AI. While inference on analog accelerators has been studied recently, the training perspective is underexplored. Recent studies have shown that the "workhorse" of digital AI training - stochastic gradient descent (SGD) algorithm converges inexactly when applied to model training on non-ideal devices. This paper puts forth a theoretical foundation for gradient-based training on analog devices. We begin by characterizing the non-convergent issue of SGD, which is caused by the asymmetric updates on the analog devices. We then provide a lower bound of the asymptotic error to show that there is a fundamental performance limit of SGD-based analog training rather than an artifact of our analysis. To address this issue, we study a heuristic analog algorithm called Tiki-Taka that has recently exhibited superior empirical performance compared to SGD and rigorously show its ability to exactly converge to a critical point and hence eliminates the asymptotic error. The simulations verify the correctness of the analyses.</abstract><doi>10.48550/arxiv.2406.12774</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2406.12774
ispartof
issn
language eng
recordid cdi_arxiv_primary_2406_12774
source arXiv.org
subjects Computer Science - Hardware Architecture
Computer Science - Learning
Mathematics - Optimization and Control
title Towards Exact Gradient-based Training on Analog In-memory Computing
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-21T15%3A00%3A18IST&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=Towards%20Exact%20Gradient-based%20Training%20on%20Analog%20In-memory%20Computing&rft.au=Wu,%20Zhaoxian&rft.date=2024-06-18&rft_id=info:doi/10.48550/arxiv.2406.12774&rft_dat=%3Carxiv_GOX%3E2406_12774%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