Sparse is Enough in Fine-tuning Pre-trained Large Language Models

With the prevalence of pre-training-fine-tuning paradigm, how to efficiently adapt the pre-trained model to the downstream tasks has been an intriguing issue. Parameter-Efficient Fine-Tuning (PEFT) methods have been proposed for low-cost adaptation. Although PEFT has demonstrated effectiveness and b...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Song, Weixi, Li, Zuchao, Zhang, Lefei, Zhao, Hai, Du, Bo
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 Song, Weixi
Li, Zuchao
Zhang, Lefei
Zhao, Hai
Du, Bo
description With the prevalence of pre-training-fine-tuning paradigm, how to efficiently adapt the pre-trained model to the downstream tasks has been an intriguing issue. Parameter-Efficient Fine-Tuning (PEFT) methods have been proposed for low-cost adaptation. Although PEFT has demonstrated effectiveness and been widely applied, the underlying principles are still unclear. In this paper, we adopt the PAC-Bayesian generalization error bound, viewing pre-training as a shift of prior distribution which leads to a tighter bound for generalization error. We validate this shift from the perspectives of oscillations in the loss landscape and the quasi-sparsity in gradient distribution. Based on this, we propose a gradient-based sparse fine-tuning algorithm, named Sparse Increment Fine-Tuning (SIFT), and validate its effectiveness on a range of tasks including the GLUE Benchmark and Instruction-tuning. The code is accessible at https://github.com/song-wx/SIFT/.
doi_str_mv 10.48550/arxiv.2312.11875
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2312_11875</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2312_11875</sourcerecordid><originalsourceid>FETCH-arxiv_primary_2312_118753</originalsourceid><addsrcrecordid>eNpjYJA0NNAzsTA1NdBPLKrILNMzMjY00jM0tDA35WRwDC5ILCpOVcgsVnDNyy9Nz1DIzFNwy8xL1S0pzcvMS1cIKAIyixKBIikKPolF6alAMi-9NBHI8M1PSc0p5mFgTUvMKU7lhdLcDPJuriHOHrpgy-ILijJzE4sq40GWxoMtNSasAgDTFjZI</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Sparse is Enough in Fine-tuning Pre-trained Large Language Models</title><source>arXiv.org</source><creator>Song, Weixi ; Li, Zuchao ; Zhang, Lefei ; Zhao, Hai ; Du, Bo</creator><creatorcontrib>Song, Weixi ; Li, Zuchao ; Zhang, Lefei ; Zhao, Hai ; Du, Bo</creatorcontrib><description>With the prevalence of pre-training-fine-tuning paradigm, how to efficiently adapt the pre-trained model to the downstream tasks has been an intriguing issue. Parameter-Efficient Fine-Tuning (PEFT) methods have been proposed for low-cost adaptation. Although PEFT has demonstrated effectiveness and been widely applied, the underlying principles are still unclear. In this paper, we adopt the PAC-Bayesian generalization error bound, viewing pre-training as a shift of prior distribution which leads to a tighter bound for generalization error. We validate this shift from the perspectives of oscillations in the loss landscape and the quasi-sparsity in gradient distribution. Based on this, we propose a gradient-based sparse fine-tuning algorithm, named Sparse Increment Fine-Tuning (SIFT), and validate its effectiveness on a range of tasks including the GLUE Benchmark and Instruction-tuning. The code is accessible at https://github.com/song-wx/SIFT/.</description><identifier>DOI: 10.48550/arxiv.2312.11875</identifier><language>eng</language><subject>Computer Science - Artificial Intelligence ; Computer Science - Computation and Language ; Computer Science - Learning</subject><creationdate>2023-12</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/2312.11875$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2312.11875$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Song, Weixi</creatorcontrib><creatorcontrib>Li, Zuchao</creatorcontrib><creatorcontrib>Zhang, Lefei</creatorcontrib><creatorcontrib>Zhao, Hai</creatorcontrib><creatorcontrib>Du, Bo</creatorcontrib><title>Sparse is Enough in Fine-tuning Pre-trained Large Language Models</title><description>With the prevalence of pre-training-fine-tuning paradigm, how to efficiently adapt the pre-trained model to the downstream tasks has been an intriguing issue. Parameter-Efficient Fine-Tuning (PEFT) methods have been proposed for low-cost adaptation. Although PEFT has demonstrated effectiveness and been widely applied, the underlying principles are still unclear. In this paper, we adopt the PAC-Bayesian generalization error bound, viewing pre-training as a shift of prior distribution which leads to a tighter bound for generalization error. We validate this shift from the perspectives of oscillations in the loss landscape and the quasi-sparsity in gradient distribution. Based on this, we propose a gradient-based sparse fine-tuning algorithm, named Sparse Increment Fine-Tuning (SIFT), and validate its effectiveness on a range of tasks including the GLUE Benchmark and Instruction-tuning. The code is accessible at https://github.com/song-wx/SIFT/.</description><subject>Computer Science - Artificial Intelligence</subject><subject>Computer Science - Computation and Language</subject><subject>Computer Science - Learning</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNpjYJA0NNAzsTA1NdBPLKrILNMzMjY00jM0tDA35WRwDC5ILCpOVcgsVnDNyy9Nz1DIzFNwy8xL1S0pzcvMS1cIKAIyixKBIikKPolF6alAMi-9NBHI8M1PSc0p5mFgTUvMKU7lhdLcDPJuriHOHrpgy-ILijJzE4sq40GWxoMtNSasAgDTFjZI</recordid><startdate>20231219</startdate><enddate>20231219</enddate><creator>Song, Weixi</creator><creator>Li, Zuchao</creator><creator>Zhang, Lefei</creator><creator>Zhao, Hai</creator><creator>Du, Bo</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20231219</creationdate><title>Sparse is Enough in Fine-tuning Pre-trained Large Language Models</title><author>Song, Weixi ; Li, Zuchao ; Zhang, Lefei ; Zhao, Hai ; Du, Bo</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-arxiv_primary_2312_118753</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Computer Science - Artificial Intelligence</topic><topic>Computer Science - Computation and Language</topic><topic>Computer Science - Learning</topic><toplevel>online_resources</toplevel><creatorcontrib>Song, Weixi</creatorcontrib><creatorcontrib>Li, Zuchao</creatorcontrib><creatorcontrib>Zhang, Lefei</creatorcontrib><creatorcontrib>Zhao, Hai</creatorcontrib><creatorcontrib>Du, Bo</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Song, Weixi</au><au>Li, Zuchao</au><au>Zhang, Lefei</au><au>Zhao, Hai</au><au>Du, Bo</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Sparse is Enough in Fine-tuning Pre-trained Large Language Models</atitle><date>2023-12-19</date><risdate>2023</risdate><abstract>With the prevalence of pre-training-fine-tuning paradigm, how to efficiently adapt the pre-trained model to the downstream tasks has been an intriguing issue. Parameter-Efficient Fine-Tuning (PEFT) methods have been proposed for low-cost adaptation. Although PEFT has demonstrated effectiveness and been widely applied, the underlying principles are still unclear. In this paper, we adopt the PAC-Bayesian generalization error bound, viewing pre-training as a shift of prior distribution which leads to a tighter bound for generalization error. We validate this shift from the perspectives of oscillations in the loss landscape and the quasi-sparsity in gradient distribution. Based on this, we propose a gradient-based sparse fine-tuning algorithm, named Sparse Increment Fine-Tuning (SIFT), and validate its effectiveness on a range of tasks including the GLUE Benchmark and Instruction-tuning. The code is accessible at https://github.com/song-wx/SIFT/.</abstract><doi>10.48550/arxiv.2312.11875</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2312.11875
ispartof
issn
language eng
recordid cdi_arxiv_primary_2312_11875
source arXiv.org
subjects Computer Science - Artificial Intelligence
Computer Science - Computation and Language
Computer Science - Learning
title Sparse is Enough in Fine-tuning Pre-trained Large Language Models
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-02-08T11%3A14%3A35IST&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=Sparse%20is%20Enough%20in%20Fine-tuning%20Pre-trained%20Large%20Language%20Models&rft.au=Song,%20Weixi&rft.date=2023-12-19&rft_id=info:doi/10.48550/arxiv.2312.11875&rft_dat=%3Carxiv_GOX%3E2312_11875%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