Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs
Large Language Models (LLMs) have demonstrated exceptional proficiency in language-related tasks, but their deployment poses significant challenges due to substantial memory and storage requirements. Weight-only quantization has emerged as a promising solution, significantly reducing memory and stor...
Gespeichert in:
Veröffentlicht in: | arXiv.org 2024-10 |
---|---|
Hauptverfasser: | , , , , , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | |
---|---|
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Cheng, Wenhua Zhang, Weiwei Shen, Haihao Cai, Yiyang He, Xin Lv, Kaokao Liu, Yi |
description | Large Language Models (LLMs) have demonstrated exceptional proficiency in language-related tasks, but their deployment poses significant challenges due to substantial memory and storage requirements. Weight-only quantization has emerged as a promising solution, significantly reducing memory and storage needs without sacrificing too much performance. In this study, we introduce SignRound, a method that leverages signed gradient descent (SignSGD) to optimize rounding values and weight clipping in just 200 steps. SignRound integrates the advantages of Quantization-Aware Training (QAT) and Post-Training Quantization (PTQ), delivering exceptional results across 2 to 4 bits while minimizing tuning costs and avoiding additional inference overhead. For example, SignRound achieved absolute average accuracy improvements ranging from 6.91% to 33.22% at 2bits, as measured by the average zero-shot accuracy across 11 tasks. It also demonstrates strong generalization in recent models, achieving near-lossless 4-bit quantization in most scenarios. The source code is publicly available at https://github.com/intel/auto-round. |
format | Article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_2864020996</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2864020996</sourcerecordid><originalsourceid>FETCH-proquest_journals_28640209963</originalsourceid><addsrcrecordid>eNqNyssKgkAUgOEhCJLyHQ60Fqbxkq67LoywgpYy5KhHasbm0sKnr6AHaPUt_n9EPBaGiyCNGJsQ35iOUsqSJYvj0CPFsbf4wEHAVWDTWjgpJyuUDbyQwxkbKSrYaV6hkBbWwty-1kqDbQUUjkuLA7eoJKga8vxgZmRc87sR_s8pmW83l9U-6LV6OmFs2Smn5SeVLE0iymiWJeF_1xtzXz7b</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2864020996</pqid></control><display><type>article</type><title>Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs</title><source>Free E- Journals</source><creator>Cheng, Wenhua ; Zhang, Weiwei ; Shen, Haihao ; Cai, Yiyang ; He, Xin ; Lv, Kaokao ; Liu, Yi</creator><creatorcontrib>Cheng, Wenhua ; Zhang, Weiwei ; Shen, Haihao ; Cai, Yiyang ; He, Xin ; Lv, Kaokao ; Liu, Yi</creatorcontrib><description>Large Language Models (LLMs) have demonstrated exceptional proficiency in language-related tasks, but their deployment poses significant challenges due to substantial memory and storage requirements. Weight-only quantization has emerged as a promising solution, significantly reducing memory and storage needs without sacrificing too much performance. In this study, we introduce SignRound, a method that leverages signed gradient descent (SignSGD) to optimize rounding values and weight clipping in just 200 steps. SignRound integrates the advantages of Quantization-Aware Training (QAT) and Post-Training Quantization (PTQ), delivering exceptional results across 2 to 4 bits while minimizing tuning costs and avoiding additional inference overhead. For example, SignRound achieved absolute average accuracy improvements ranging from 6.91% to 33.22% at 2bits, as measured by the average zero-shot accuracy across 11 tasks. It also demonstrates strong generalization in recent models, achieving near-lossless 4-bit quantization in most scenarios. The source code is publicly available at https://github.com/intel/auto-round.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Large language models ; Optimization ; Perturbation ; Rounding ; Source code</subject><ispartof>arXiv.org, 2024-10</ispartof><rights>2024. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</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>776,780</link.rule.ids></links><search><creatorcontrib>Cheng, Wenhua</creatorcontrib><creatorcontrib>Zhang, Weiwei</creatorcontrib><creatorcontrib>Shen, Haihao</creatorcontrib><creatorcontrib>Cai, Yiyang</creatorcontrib><creatorcontrib>He, Xin</creatorcontrib><creatorcontrib>Lv, Kaokao</creatorcontrib><creatorcontrib>Liu, Yi</creatorcontrib><title>Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs</title><title>arXiv.org</title><description>Large Language Models (LLMs) have demonstrated exceptional proficiency in language-related tasks, but their deployment poses significant challenges due to substantial memory and storage requirements. Weight-only quantization has emerged as a promising solution, significantly reducing memory and storage needs without sacrificing too much performance. In this study, we introduce SignRound, a method that leverages signed gradient descent (SignSGD) to optimize rounding values and weight clipping in just 200 steps. SignRound integrates the advantages of Quantization-Aware Training (QAT) and Post-Training Quantization (PTQ), delivering exceptional results across 2 to 4 bits while minimizing tuning costs and avoiding additional inference overhead. For example, SignRound achieved absolute average accuracy improvements ranging from 6.91% to 33.22% at 2bits, as measured by the average zero-shot accuracy across 11 tasks. It also demonstrates strong generalization in recent models, achieving near-lossless 4-bit quantization in most scenarios. The source code is publicly available at https://github.com/intel/auto-round.</description><subject>Large language models</subject><subject>Optimization</subject><subject>Perturbation</subject><subject>Rounding</subject><subject>Source code</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>BENPR</sourceid><recordid>eNqNyssKgkAUgOEhCJLyHQ60Fqbxkq67LoywgpYy5KhHasbm0sKnr6AHaPUt_n9EPBaGiyCNGJsQ35iOUsqSJYvj0CPFsbf4wEHAVWDTWjgpJyuUDbyQwxkbKSrYaV6hkBbWwty-1kqDbQUUjkuLA7eoJKga8vxgZmRc87sR_s8pmW83l9U-6LV6OmFs2Smn5SeVLE0iymiWJeF_1xtzXz7b</recordid><startdate>20241008</startdate><enddate>20241008</enddate><creator>Cheng, Wenhua</creator><creator>Zhang, Weiwei</creator><creator>Shen, Haihao</creator><creator>Cai, Yiyang</creator><creator>He, Xin</creator><creator>Lv, Kaokao</creator><creator>Liu, Yi</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20241008</creationdate><title>Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs</title><author>Cheng, Wenhua ; Zhang, Weiwei ; Shen, Haihao ; Cai, Yiyang ; He, Xin ; Lv, Kaokao ; Liu, Yi</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_28640209963</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Large language models</topic><topic>Optimization</topic><topic>Perturbation</topic><topic>Rounding</topic><topic>Source code</topic><toplevel>online_resources</toplevel><creatorcontrib>Cheng, Wenhua</creatorcontrib><creatorcontrib>Zhang, Weiwei</creatorcontrib><creatorcontrib>Shen, Haihao</creatorcontrib><creatorcontrib>Cai, Yiyang</creatorcontrib><creatorcontrib>He, Xin</creatorcontrib><creatorcontrib>Lv, Kaokao</creatorcontrib><creatorcontrib>Liu, Yi</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science & Engineering Collection</collection><collection>ProQuest Central (Alumni Edition)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Cheng, Wenhua</au><au>Zhang, Weiwei</au><au>Shen, Haihao</au><au>Cai, Yiyang</au><au>He, Xin</au><au>Lv, Kaokao</au><au>Liu, Yi</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs</atitle><jtitle>arXiv.org</jtitle><date>2024-10-08</date><risdate>2024</risdate><eissn>2331-8422</eissn><abstract>Large Language Models (LLMs) have demonstrated exceptional proficiency in language-related tasks, but their deployment poses significant challenges due to substantial memory and storage requirements. Weight-only quantization has emerged as a promising solution, significantly reducing memory and storage needs without sacrificing too much performance. In this study, we introduce SignRound, a method that leverages signed gradient descent (SignSGD) to optimize rounding values and weight clipping in just 200 steps. SignRound integrates the advantages of Quantization-Aware Training (QAT) and Post-Training Quantization (PTQ), delivering exceptional results across 2 to 4 bits while minimizing tuning costs and avoiding additional inference overhead. For example, SignRound achieved absolute average accuracy improvements ranging from 6.91% to 33.22% at 2bits, as measured by the average zero-shot accuracy across 11 tasks. It also demonstrates strong generalization in recent models, achieving near-lossless 4-bit quantization in most scenarios. The source code is publicly available at https://github.com/intel/auto-round.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | EISSN: 2331-8422 |
ispartof | arXiv.org, 2024-10 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_2864020996 |
source | Free E- Journals |
subjects | Large language models Optimization Perturbation Rounding Source code |
title | Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMs |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-02-01T22%3A08%3A19IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=Optimize%20Weight%20Rounding%20via%20Signed%20Gradient%20Descent%20for%20the%20Quantization%20of%20LLMs&rft.jtitle=arXiv.org&rft.au=Cheng,%20Wenhua&rft.date=2024-10-08&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E2864020996%3C/proquest%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2864020996&rft_id=info:pmid/&rfr_iscdi=true |