Improving Quantization-aware Training of Low-Precision Network via Block Replacement on Full-Precision Counterpart
Quantization-aware training (QAT) is a common paradigm for network quantization, in which the training phase incorporates the simulation of the low-precision computation to optimize the quantization parameters in alignment with the task goals. However, direct training of low-precision networks gener...
Gespeichert in:
Veröffentlicht in: | arXiv.org 2024-12 |
---|---|
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 | Yu, Chengting Yang, Shu Zhang, Fengzhao Ma, Hanzhi Wang, Aili Er-Ping, Li |
description | Quantization-aware training (QAT) is a common paradigm for network quantization, in which the training phase incorporates the simulation of the low-precision computation to optimize the quantization parameters in alignment with the task goals. However, direct training of low-precision networks generally faces two obstacles: 1. The low-precision model exhibits limited representation capabilities and cannot directly replicate full-precision calculations, which constitutes a deficiency compared to full-precision alternatives; 2. Non-ideal deviations during gradient propagation are a common consequence of employing pseudo-gradients as approximations in derived quantized functions. In this paper, we propose a general QAT framework for alleviating the aforementioned concerns by permitting the forward and backward processes of the low-precision network to be guided by the full-precision partner during training. In conjunction with the direct training of the quantization model, intermediate mixed-precision models are generated through the block-by-block replacement on the full-precision model and working simultaneously with the low-precision backbone, which enables the integration of quantized low-precision blocks into full-precision networks throughout the training phase. Consequently, each quantized block is capable of: 1. simulating full-precision representation during forward passes; 2. obtaining gradients with improved estimation during backward passes. We demonstrate that the proposed method achieves state-of-the-art results for 4-, 3-, and 2-bit quantization on ImageNet and CIFAR-10. The proposed framework provides a compatible extension for most QAT methods and only requires a concise wrapper for existing codes. |
format | Article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_3148682003</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>3148682003</sourcerecordid><originalsourceid>FETCH-proquest_journals_31486820033</originalsourceid><addsrcrecordid>eNqNzj0LwjAUheEgCBb1PwScCzHxo7PFoiCi0l0u5SrRNKk3iQV_vRUcHJ3O8LzD6bFEKjVNs5mUAzb2_iaEkIulnM9VwmhbN-Se2l75MYIN-gVBO5tCC4S8JND2Y-7Cd65ND4SV9p3zPYbW0Z0_NfCVcdWdn7AxUGGNNvAuKKIxP33uog1IDVAYsf4FjMfxd4dsUqzLfJN2Rx4RfTjfXCTb0VlNZ9kik0Io9V_1Btx3TB0</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>3148682003</pqid></control><display><type>article</type><title>Improving Quantization-aware Training of Low-Precision Network via Block Replacement on Full-Precision Counterpart</title><source>Free E- Journals</source><creator>Yu, Chengting ; Yang, Shu ; Zhang, Fengzhao ; Ma, Hanzhi ; Wang, Aili ; Er-Ping, Li</creator><creatorcontrib>Yu, Chengting ; Yang, Shu ; Zhang, Fengzhao ; Ma, Hanzhi ; Wang, Aili ; Er-Ping, Li</creatorcontrib><description>Quantization-aware training (QAT) is a common paradigm for network quantization, in which the training phase incorporates the simulation of the low-precision computation to optimize the quantization parameters in alignment with the task goals. However, direct training of low-precision networks generally faces two obstacles: 1. The low-precision model exhibits limited representation capabilities and cannot directly replicate full-precision calculations, which constitutes a deficiency compared to full-precision alternatives; 2. Non-ideal deviations during gradient propagation are a common consequence of employing pseudo-gradients as approximations in derived quantized functions. In this paper, we propose a general QAT framework for alleviating the aforementioned concerns by permitting the forward and backward processes of the low-precision network to be guided by the full-precision partner during training. In conjunction with the direct training of the quantization model, intermediate mixed-precision models are generated through the block-by-block replacement on the full-precision model and working simultaneously with the low-precision backbone, which enables the integration of quantized low-precision blocks into full-precision networks throughout the training phase. Consequently, each quantized block is capable of: 1. simulating full-precision representation during forward passes; 2. obtaining gradients with improved estimation during backward passes. We demonstrate that the proposed method achieves state-of-the-art results for 4-, 3-, and 2-bit quantization on ImageNet and CIFAR-10. The proposed framework provides a compatible extension for most QAT methods and only requires a concise wrapper for existing codes.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Representations</subject><ispartof>arXiv.org, 2024-12</ispartof><rights>2024. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.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>780,784</link.rule.ids></links><search><creatorcontrib>Yu, Chengting</creatorcontrib><creatorcontrib>Yang, Shu</creatorcontrib><creatorcontrib>Zhang, Fengzhao</creatorcontrib><creatorcontrib>Ma, Hanzhi</creatorcontrib><creatorcontrib>Wang, Aili</creatorcontrib><creatorcontrib>Er-Ping, Li</creatorcontrib><title>Improving Quantization-aware Training of Low-Precision Network via Block Replacement on Full-Precision Counterpart</title><title>arXiv.org</title><description>Quantization-aware training (QAT) is a common paradigm for network quantization, in which the training phase incorporates the simulation of the low-precision computation to optimize the quantization parameters in alignment with the task goals. However, direct training of low-precision networks generally faces two obstacles: 1. The low-precision model exhibits limited representation capabilities and cannot directly replicate full-precision calculations, which constitutes a deficiency compared to full-precision alternatives; 2. Non-ideal deviations during gradient propagation are a common consequence of employing pseudo-gradients as approximations in derived quantized functions. In this paper, we propose a general QAT framework for alleviating the aforementioned concerns by permitting the forward and backward processes of the low-precision network to be guided by the full-precision partner during training. In conjunction with the direct training of the quantization model, intermediate mixed-precision models are generated through the block-by-block replacement on the full-precision model and working simultaneously with the low-precision backbone, which enables the integration of quantized low-precision blocks into full-precision networks throughout the training phase. Consequently, each quantized block is capable of: 1. simulating full-precision representation during forward passes; 2. obtaining gradients with improved estimation during backward passes. We demonstrate that the proposed method achieves state-of-the-art results for 4-, 3-, and 2-bit quantization on ImageNet and CIFAR-10. The proposed framework provides a compatible extension for most QAT methods and only requires a concise wrapper for existing codes.</description><subject>Representations</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><recordid>eNqNzj0LwjAUheEgCBb1PwScCzHxo7PFoiCi0l0u5SrRNKk3iQV_vRUcHJ3O8LzD6bFEKjVNs5mUAzb2_iaEkIulnM9VwmhbN-Se2l75MYIN-gVBO5tCC4S8JND2Y-7Cd65ND4SV9p3zPYbW0Z0_NfCVcdWdn7AxUGGNNvAuKKIxP33uog1IDVAYsf4FjMfxd4dsUqzLfJN2Rx4RfTjfXCTb0VlNZ9kik0Io9V_1Btx3TB0</recordid><startdate>20241220</startdate><enddate>20241220</enddate><creator>Yu, Chengting</creator><creator>Yang, Shu</creator><creator>Zhang, Fengzhao</creator><creator>Ma, Hanzhi</creator><creator>Wang, Aili</creator><creator>Er-Ping, Li</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>20241220</creationdate><title>Improving Quantization-aware Training of Low-Precision Network via Block Replacement on Full-Precision Counterpart</title><author>Yu, Chengting ; Yang, Shu ; Zhang, Fengzhao ; Ma, Hanzhi ; Wang, Aili ; Er-Ping, Li</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_31486820033</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Representations</topic><toplevel>online_resources</toplevel><creatorcontrib>Yu, Chengting</creatorcontrib><creatorcontrib>Yang, Shu</creatorcontrib><creatorcontrib>Zhang, Fengzhao</creatorcontrib><creatorcontrib>Ma, Hanzhi</creatorcontrib><creatorcontrib>Wang, Aili</creatorcontrib><creatorcontrib>Er-Ping, Li</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>Access via ProQuest (Open Access)</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>Yu, Chengting</au><au>Yang, Shu</au><au>Zhang, Fengzhao</au><au>Ma, Hanzhi</au><au>Wang, Aili</au><au>Er-Ping, Li</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Improving Quantization-aware Training of Low-Precision Network via Block Replacement on Full-Precision Counterpart</atitle><jtitle>arXiv.org</jtitle><date>2024-12-20</date><risdate>2024</risdate><eissn>2331-8422</eissn><abstract>Quantization-aware training (QAT) is a common paradigm for network quantization, in which the training phase incorporates the simulation of the low-precision computation to optimize the quantization parameters in alignment with the task goals. However, direct training of low-precision networks generally faces two obstacles: 1. The low-precision model exhibits limited representation capabilities and cannot directly replicate full-precision calculations, which constitutes a deficiency compared to full-precision alternatives; 2. Non-ideal deviations during gradient propagation are a common consequence of employing pseudo-gradients as approximations in derived quantized functions. In this paper, we propose a general QAT framework for alleviating the aforementioned concerns by permitting the forward and backward processes of the low-precision network to be guided by the full-precision partner during training. In conjunction with the direct training of the quantization model, intermediate mixed-precision models are generated through the block-by-block replacement on the full-precision model and working simultaneously with the low-precision backbone, which enables the integration of quantized low-precision blocks into full-precision networks throughout the training phase. Consequently, each quantized block is capable of: 1. simulating full-precision representation during forward passes; 2. obtaining gradients with improved estimation during backward passes. We demonstrate that the proposed method achieves state-of-the-art results for 4-, 3-, and 2-bit quantization on ImageNet and CIFAR-10. The proposed framework provides a compatible extension for most QAT methods and only requires a concise wrapper for existing codes.</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-12 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_3148682003 |
source | Free E- Journals |
subjects | Representations |
title | Improving Quantization-aware Training of Low-Precision Network via Block Replacement on Full-Precision Counterpart |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-01T13%3A25%3A43IST&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=Improving%20Quantization-aware%20Training%20of%20Low-Precision%20Network%20via%20Block%20Replacement%20on%20Full-Precision%20Counterpart&rft.jtitle=arXiv.org&rft.au=Yu,%20Chengting&rft.date=2024-12-20&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E3148682003%3C/proquest%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=3148682003&rft_id=info:pmid/&rfr_iscdi=true |