기본 정보
- 저자
- DOI
- 10.18653/v1/2025.findings-acl.996
- 저널
- –
- 발행년도
- 2025
- 발행기관
- –
- 피인용수
- 2
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.18653/v1/2025.findings-acl.996
- 토픽
- Advancements in Photolithography Techniques
- OpenAlex ID
- W4412887850
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (11) 배리어 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 배리어 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 53,145자
본문 펼치기
섹션 본문 59문단 · 28,919자
(제목 없음)
1The rapid advancements in Large Language Models (LLMs) have revolutionized various natural language processing tasks.However, the substantial size of LLMs presents significant challenges in training or fine-tuning.While parameter-efficient approaches such as low-rank adaptation (LoRA) have gained popularity, they often compromise performance compared to full-rank fine-tuning.In this paper, we propose Outlier-weighed Layerwise Sampling (OWS), a new memory-efficient finetuning approach, inspired by the layerwise outlier distribution of LLMs.Unlike LoRA, which adds extra adapters to all layers, OWS strategically assigns higher sampling probabilities to layers with more outliers, selectively sampling only a few layers and fine-tuning their pre-trained weights.To further increase the number of fine-tuned layers without a proportional rise in memory costs, we incorporate gradient low-rank projection, further boosting the approach's performance.Our extensive experiments across various architectures, including LLaMa2, and Mistral, demonstrate that OWS consistently outperforms baseline approaches, including full fine-tuning.Specifically, it achieves up to a 1.1% average accuracy gain on the Commonsense Reasoning benchmark, a 3.0% improvement on MMLU, and a notable 10% boost on MT-Bench, while being more memory efficient.OWS allows us to fine-tune 7B LLMs with only 21GB of memory.Our code is available at https: //github.com/pixeli99/OWS.
Introduction
2The rapid advancements in AI driven by Large Language Models (LLMs) have fundamentally transformed how people work and communicate.The impressive language capabilities of LLMs enable a single model to handle various tasks simultaneously, including but not limited to natural language * Equal contribution.† Corresponding author.
3understanding (Brown et al., 2020;Touvron et al., 2023), text generation (Kocoń et al., 2023;Anil et al., 2023), machine translation (Jiao et al., 2023), and programming (Surameery and Shakor, 2023;Tian et al., 2023).However, the massive size of LLMs presents significant challenges for practical applications and deployment.
4To address these challenges, various parameterefficient fine-tuning (PEFT) approaches have been proposed, including prompt tuning (Lester et al., 2021;Liu et al., 2021a), adaptors (Houlsby et al., 2019;He et al., 2021), and low-rank adaptation (LoRA) (Hu et al., 2021;Dettmers et al., 2024).These approaches enable the fine-tuning of pretrained LLMs with substantially fewer trainable parameters, making LLM fine-tuning more feasible in practice.Among these, LoRA (Hu et al., 2021) stands out for its re-parameterization technique of the pre-trained weight matrix W ∈ R m×n , expressed as W 0 + AB, where A ∈ R m×r , B ∈ R r×n , and r ≪ min(m, n).By fine-tuning only the low-rank adaptor AB while keeping the pretrained weight W 0 frozen, LoRA significantly reduces the memory usage and computational costs associated with fine-tuning LLMs, rapidly becoming the preferred method for such tasks.Despite its efficiency, recent research has highlighted the inferior performance of low-rank reparameterization compared to full-rank updates in both fine-tuning scenarios (Xia et al., 2024;Biderman et al., 2024) and pre-training contexts (Lialin et al., 2023b;Zhao et al., 2024).These findings underscore the need for further exploration into balancing training efficiency with model performance, particularly in the context of large-scale language models.
5Recently, Layerwise Importance Sampled AdamW (LISA) (Pan et al., 2024) has emerged as a promising alternative for LLM fine-tuning, integrating the concept of importance sampling (Kloek and Van Dijk, 1978;Zhao and Zhang, 2015) into the fine-tuning process.Unlike methods that add adapters to all layers, LISA selectively samples a small subset of layers and directly fine-tunes their pre-trained weights, demonstrating notable performance improvements over LoRA.However, our investigation reveals two limitations of LISA:
6⋆ LISA employs random sampling of layers for fine-tuning, which results in suboptimal performance due to the varying importance of layers in LLMs.To illustrate this, we demonstrate that random sampling underperforms compared to a simple baseline-monotonic decreasing sampling probabilities from top to bottom layers-as shown in Table 1.
7⋆ The fine-tuning of sampled layers is conducted in a full-rank manner, leading to substantial memory overhead as the number of sampled layers increases.While fine-tuning accuracy improves with the inclusion of more sampled layers, this improvement comes at the cost of escalating memory usage, as detailed in Table 8.
8Overview.To address these limitations, we introduce Outlier-weighted Layerwise Sampling (OWS), a novel layerwise sampling approach to fine-tune LLMs.OWS leverages the unique characteristic of LLMs where certain features and weights-referred to as outliers-have significantly larger magnitudes than the rest (Kovaleva et al., 2021;Puccetti et al., 2022;Dettmers et al., 2022;Yin et al., 2024;Lu et al., 2024).Our rationale is that layers with more outliers play a more active role in learning the data distribution of the text corpus, as they have received larger gradients during pre-training.Therefore, we assign higher sampling probabilities to layers with a greater concentration of outliers, in a way that the features in these layers will be leveraged more frequently to adapt to downstream datasets.To further reduce the memory costs of fine-tuning, we update the optimization status of sampled layers in a low-rank subspace, which allows us to increase the number of fine-tuned layers without a proportional rise in memory costs.
9Built upon these techniques, OWS achieves a large performance boost to LISA.Our extensive experiments across commonly used architectures including LLaMa2 (Touvron et al., 2023) and Mistral (Jiang et al., 2023) demonstrate that OWS consistently outperforms its baseline approaches including full-parameter fine-tuning.OWS achieves up to a 1.1% average accuracy gain on the Commonsense Reasoning benchmark, a 3.0% improvement on MMLU, and a notable 10% boost on MT-Bench.
Background and Motivation
10In this section, we first introduce LISA's algorithm and then present our findings of two key limitations of LISA: the shortcomings of its sampling approach and the significant memory overhead associated with the sampled layers.
112.1 Background: LISA Pan et al. (2024) conducted an in-depth analysis of LoRA's training dynamics across layers and revealed an unusual skew in the distribution of layerwise weight norms, particularly towards the top layer and/or the bottom layer1 , where the norms are significantly larger compared to other layers.Building upon this insight, the authors proposed LISA, a novel fine-tuning approach for LLMs, which incorporates the concept of importance sampling (Kloek and Van Dijk, 1978;Zhao and Zhang, 2015) into the fine-tuning process.In LISA, layers of the base model are sampled to be unfrozen during training based on a prescribed probability, with the exception of the top and bottom layers, which remain activated throughout the process.Given a network with N L layers, the sampling probability of layer ℓ is given as follows:
12where γ controls the expected number of unfrozen layers during optimization.Since LISA does not require additional adaptors and only fine-tunes an expected γ layers, it notably reduces the memory usage of LLM fine-tuning.
Limitations of LISA
13While demonstrating promising results, we observe that the LISA algorithm inherently has two shortcomings that constrain its memory-performance trade-off: i.The middle layers of LISA are sampled uniformly, which can result in suboptimal performance.To verify this point, we conduct a small experiment where we replace the uniform sampling with a very simple baseline, i.e. monotonic decreasing sampling, where the sample probability is monotonically decreasing from shallow layers to deep layers (noted as LISA-D).Table 1 shows that this simple sampling method often outperforms uniform sampling, verifying our concern.
14ii.The sampled layers of LISA are fine-tuned in a full-rank manner, causing a significant memory increase as the number of sampled layers increases.To illustrate this, we fine-tune LLaMA2-7B on the GSM8K training set and report the GSM8K score and memory usage of LISA with various numbers of sampled layers γ, as shown in Table 8.The memory requirement of LISA rises significantly from 23GB to 36GB as γ increases from 1 to 12. Similarly, the performance improves consistently with the increase in sampled layers.Since sampling more layers results in stronger finetuning performance, it is crucial to reduce the associated memory overhead as the number of sampled layers grows.
153 Outlier-weighed Layerwise Sampling (OWS)
16In this section, we introduce our approach, Outlierweighed Layerwise Low-Rank Projection (OWS).
17We will discuss the underlying rationales, present preliminary results, and detail the algorithm design.
18The above findings shed light on a principle for designing non-uniform layerwise sampling for LLM fine-tuning: layers with higher outlier ratios should be prioritized during the fine-tuning process.This forms the foundation of our proposed method, Outlier-weighed Layerwise Low-Rank Projection (OWS), which we will present in detail.
19Outlier-Weighed Sampling (OWS).Although LISA-D achieves good performance, it is more desirable to seek a more principled approach to determine the layerwise sampling probability.In the context of LLMs, we get inspiration from the unique characteristic of LLMs, outliers, defined as features and weights exhibiting significantly larger magnitudes compared to the majority of others (Kovaleva et al., 2021;Puccetti et al., 2022;Dettmers et al., 2022).It has been widely demonstrated that removing outliers significantly degrades the capacity of LLMs (Dettmers et al., 2022).
20Our motivation stems from the crucial role outliers play in preserving LLM performance (Yin et al., 2024).We hypothesize that layers with more outliers likely contain more essential information, as they have received larger gradients during training.Therefore, we assign higher sampling probabilities to layers with more outliers during fine-tuning, leading to a substantial improvement in performance.To formulate, let us consider the input of a layer as X with dimensions (N ×L, C in ), where N and L represent the batch and sequence dimensions, respectively; and the weight matrix W has dimensions
21We first calculate the layerwise outlier distribution of a N L -layer as [D 1 , D 2 , ..., D N L ], where D ℓ characterizes the outlier ratio of layer ℓ:
22where Āℓ is the mean of A ℓ and I(•) is the indicator function, returning 1 if A ℓ ij is larger than τ • Āℓ , else 0. The layerwise outlier distribution essentially counts up weights whose outlier score is τ2 times greater than that layer's average outlier score.Larger D means more outliers are presented in the corresponding layer.The sampling probability p ℓ of layer ℓ is then calculated as p ℓ = γD ℓ / N L i=1 D i , where γ is the hyperparameter inherited from LISA to control the expected number of unfreeze layers during optimization.At each iteration, only the sampled layers will be fine-tuned, while the remaining layers are kept frozen.The visualization of layerwise outlier distribution of OWS is illustrated in Figure 2.
23Can the weights in the sampled layer be further updated in a low-rank subspace?Outlierweighed sampling addresses our first research question: how to optimally sample layers for samplingbased LLM fine-tuning.To tackle the second issue of the substantial memory cost associated with an increasing number of unfrozen layers, we propose to integrate outlier-weighed sampling with gradient low-rank training.In this approach, the sampled layers are updated in a low-rank manner (Zhao et al., 2024).Specifically, for each sampled layer, the gradient matrix is projected into a low-rank subspace using Singular Value Decomposition (SVD).The optimizer states are subsequently updated in the corresponding low-rank subspace with a rank level of r, significantly reducing the memory cost of optimization.We update the gradient subspace every 200 iterations to better capture the dynamic trajectory of fine-tuning.The above two innovations significantly boost the memory efficiency of OWS, unlocking the performance-memory tradeoff of sampling-based fine-tuning.At the macro level, we dynamically sample a limited number of layers to fine-tune at each iteration.At the micro level, each sampled layers are updated with lowrank gradients.
24Since the sampled layers are updated in the lowrank subspace, we can efficiently increase the number of sampled layers γ with only a marginal increase in memory cost compared to LISA.Additionally, as we sample only a few layers at each finetuning iteration, we can increase the rank levels r without significantly raising the memory requirements compared to LoRA.Memory usage analysis is given in Section 4.3.We perform a small search and find that γ = 5 and r = 128 consistently give us robust performance across models and downstream tasks.Therefore, we choose γ = 5 and r = 128 as our default settings.We present our algorithm in Algorithm 1.
Experiments
25In this section, we conduct extensive experiments3 to evaluate the effectiveness of OWS on multiple fine-tuning tasks.Details are provided below.
Experimental Setup
26We choose multiple open-source LLMs that are widely used in research and practice, such as LLaMa2-7B (Touvron et al., 2023) and Mistral-7B (Jiang et al., 2023).
27Fine-tuning Tasks.We choose an extensive range of fine-tuning tasks aiming to provide a thorough evaluation of OWS .Our fine-tuning tasks cover three categories: (i) Commonsense Reasoning (Hu et al., 2023), which includes 8 reasoning tasks including.(ii) MT-Bench (Zheng et al., 2024), a challenging multi-turn question set to assess the conversational and instruction-following abilities of models.We apply GPT-3.5-turbo and GPT-4o as the judge for MT-Bench; (iii) MMLU (Hendrycks et al., 2020), a massive multitask test consisting of multiple-choice questions from various branches of knowledge.We adopt the 5-shot setting for MMLU.For Commonsense Reasoning, all models are first fine-tuned on common-sense170k and then evaluated separately on different tasks, following Hu et al. (2023); For MT-Bench, we first fine-tune models on the Alpaca GPT-4 dataset (Peng et al., 2023) and then evaluate on MT-Bench following LISA.The results of MMLU are fine-tuned on the auxiliary training dataset and then evaluated on MMLU with 5 shots.
28PEFT Baselines.We mainly consider four stateof-the-art baselines that are closely related to our approach: (i) Full fine-tuning (Full FT): all parameters of pre-trained models are fine-tuned.Weights, gradients, and optimization states are maintained with full rank; (ii) LoRA (Hu et al., 2021): LoRA introduces additional low-rank adaptors and only fine-tunes adaptors, while maintaining pre-trained et al., 2024): pre-trained LLMs are fine-tuned with low-rank gradient projection.We follow (Zhao et al., 2024) and set the rank level to 8 for both Ga-Lore and LoRA in all fine-tuning tasks; (iv) LISA (Pan et al., 2024): LISA is a sampling-based LLM fine-tuning method, which by default samples 2 layers to fine-tune with full rank at each iteration.GaLore and LISA directly fine-tune pre-trained weights without additional adaptors.
29Hyperparameter Tuning.Regarding the hyperparameters of the baselines, we have conducted extensive hyperparameter tuning for all baselines with LLaMa2-7B and reported the results with the best ones.For Mistral-7B, we directly use the best hyperparameters of LLaMa2-7B.Specifically, for the learning rate, we performed a hyperparameter sweep over [1e-4, 3e-4, 7e-5, 5e-5, 1e-5, 5e-6] for each method.For GaLore, we tested several update frequencies for the subspace [50,100,200,500] and found that 200 works best, consistent with GaLore's reports.To ensure a fair comparison, we followed GaLore's approach and set the rank level to 8 for GaLore and LoRA, resulting in approximately 24GB of memory usage for all methods.Additionally, we thoroughly analyzed the effect of two hyperparameters, such as rank level and sampled layers, as shown in Figure 3, where our approach consistently demonstrates superior memory benefits.More configurations details are reported in Appendix D.
Experimental Results
30In this section, we present the empirical results of OWS in comparison to other baseline methods.
31Commonsense Reasoning Benchmark.We first evaluate with 8 commonsense reasoning tasks.The results are reported in Table 2. Overall, OWS consistently outperforms Full FT and other PEFT baselines by a large margin across various LLMs, demonstrating the superiority of OWS in LLM finetuning.We summarize our key observations below:
321 OWS approaches significantly outperform other efficient fine-tuning approaches by a large margin.OWS consistently outperforms its layerwise sampling baseline, LISA, on nearly all tasks with LLaMA2-7B, delivering an average of 1.1% performance gain.
332 OWS outperforms full fine-tuning across tasks on LLaMa.We can observe that OWS can achieve better performance than full fine-tuning with all models.LISA can match the performance of full fine-tuning for LLaMa models, whereas Ga-Lore and LoRA perform no better than full finetuning.However, only OWS is able to match the performance of full fine-tuning with Mistral-7B and all other baselines fail to do so.This result suggests that LLMs gain greater benefits by leveraging features within important layers rather than uniformly distributing resources across all layers for fine-tuning.MT-Bench.We next evaluate OWS on a more comprehensive benchmark, MT-Bench, featuring 80 high-quality, multi-turn questions designed to assess LLMs on 8 common categories.Results are presented in Table 3.We can observe that the benefits of OWS over other PEFT approaches are more pronounced.Using GPT-3.5-turbo as a judge, all other baselines fail to match the performance of full fine-tuning on MT-Bench with scores below 6.0, whereas OWS outperforms the full fine-tuning by a large margin.To be specific, OWS significantly boosts the average score of LISA from 5.92 to 6.52.The performance trend when using GPT-4 is very similar to that of GPT-3.5-turbo,although the scores evaluated by GPT-4 are generally lower.Notably, only OWS outperforms full fine-tuning, achieving a higher score over full fine-tuning.
34MMLU Benchmark.To draw a more solid con-clusion, we also test another widely used benchmark, i.e., MMLU.The results are shown in Table 5.Our findings highlight that OWS consistently outperforms Full FT, while other PEFT methods fall short of dense fine-tuning.Specifically, OWS achieves an average score of 52.6, demonstrating significant improvements across various domains such as Humanities, STEM, Social Sciences, and Others.These results underscore OWS's efficacy beyond full fine-tuning while maintaining superior memory efficiency.GSM8K.We extend our evaluation to compare OWS with two recent memory-efficient finetuning methods, HiFT (Liu et al., 2024b) and MeZO (Malladi et al., 2023), on the GSM8K benchmark.
Memory Efficiency of OWS
35Thanks to its layerwise sampling and low-rank characteristics, OWS significantly improves the memory efficiency of LLM fine-tuning.To verify, we report the memory cost of various approaches when used to fine-tune LLaMa2-7B, with a token batch size of 1 in Figure 3. On the one hand, the low-rank nature of OWS allows us to unfreeze more layers without a substantial increase in memory cost compared to LISA.As illustrated in Figure 3-Left, when increasing γ from 1 to 8, LISA exhibits a notable memory growth from 23GB to 32GB, whereas OWS's memory cost slightly increases from 21GB to 25GB.Compared to LoRA with r = 4, OWS facilitates training with a much higher rank (r = 128) while still maintaining a lower memory cost.On the other hand, Figure 3-Right demonstrates that OWS enables high-rank training without significantly compromising memory efficiency, in stark contrast to LoRA.It is important to note that we do not utilize the layer-wise weight update technique used in GaLore for the memory measurement, hence the memory cost of GaLore is higher than reported in GaLore.
36We further break down the memory usage during LLM fine-tuning, presenting the results in Figure 4-Left.For this analysis, the number of fine-tuned layers γ is set to 2 for both LISA and OWS, and rank level r is set to 8 for both LoRA and OWS.LoRA incurs a substantial activation memory cost, although its optimizer and gradient memory requirements are relatively small.In contrast, LISA's optimizer memory cost is large because each layer is trained in full rank, yet it benefits from a small activation memory cost.OWS effectively combines the advantages of both methods, inheriting the small activation memory of LISA while significantly reducing the optimizer memory requirement.
Superiority of OWS under Varying
37Hyperparameters Over LISA
38The primary hyperparameters of LISA, GaLore, and OWS are the number of fine-tuned layers γ, and the rank level within each layer r.To evaluate their effect on the performance of different approaches, we vary these two hyperparameters and report the results in Table 8.We set γ = 32 for GaLore and r = 'full rank' for LISA as their default.We see that GaLore's performance does improve as rank levels, having the lowest score across most cases.Notably, OWS significantly reduces the memory cost compared to LISA alone-reducing from 36G to 27G with r = full, γ = 12-while achieving a significant improvement of 6.1.
OWS Serves as A Better Layerwise Important Metric than Others
39OWS serves as a better layer-wise importance metric than previous ones.We compare OWS with other layerwise importance scores for samplingbased fine-tuning, including Uniform (Pan et al., 2024), Relative Magnitude (RM) (Samragh et al., 2023) and Block Influence (BI) (Men et al., 2024) in Table 9. OWS consistently performs better than other layer importance scores.Note that reversing OWS gives us the worse performance as shown in Appendix A.
Memory Usage Breakdown and Training Loss Curve
40The training loss curve is an effective way to understand the training dynamics of various methods.
41Following LISA, we present fine-tuning loss curves of LLaMa2-7B on the Alpaca-GPT4 dataset using Full FT, LoRA, LISA, and OWS in Figure 4-Right.At first glance, methods that directly fine-tune pretrained weights (i.e., LISA and OWS) can better
Model Sampling Method Average
42LlaMa2-7B Uniform (Pan et al., 2024) 62.25 LlaMa2-7B BI (Men et al., 2024) 62.15 LlaMa2-7B RM (Samragh et al., 2023) 61.97 LlaMa2-7B OWS (ours) 63.23 mimic the training landscape of full fine-tuning, compared to LoRA.It is worth noting that while OWS initially falls short of LISA in the early phase of training, it gradually catches up after 60 iterations and eventually outperforms LISA with a lower loss.We conjecture that the underlying reason here is that the low-rank update of OWS is less accurate than the full-rank update of LISA at the beginning.However, as training progresses, OWS keeps updating the subspace, leading to an optimal one.
Related Work
43Parameter-Effieient Fine-Tuning (PEFT).PEFT is proposed to reduce the prohibitive cost of LLM fine-tuning.Various techniques have been proposed in this dynamic field.For instance, prompt tuning only optimizes input tokens or embeddings while keeping the rest of the model frozen, as demonstrated in studies (Lester et al., 2021;Li and Liang, 2021;Hambardzumyan et al., 2021;Zhong et al., 2021).Layer-freezing techniques (Liu et al., 2021b;Brock et al., 2017;Li et al., 2024) enhance training and fine-tuning efficiency by freezing parts of the layers.Adapter methods (Houlsby et al., 2019;He et al., 2021;Mahabadi et al., 2021;Diao et al., 2022), incorporate a small auxiliary module within the model's architecture, which becomes the exclusive focus of updates during training, thus minimizing the number of trainable parameters and optimizer states.Among these techniques, Low-Rank Adaptation (LoRA) (Hu et al., 2021) gains massive attention by applying low-rank matrices to approximate weight changes during fine-tuning, which can be merged into the pre-trained weights, leading to no inference overhead.LoRA has been enhanced through various modifications (Zhang et al., 2023;Renduchintala et al., 2023;Sheng et al., 2023;Liu et al., 2024a;Kopiczko et al., 2023;Dettmers et al., 2024;Zhao et al., 2024) aimed at improving performance and efficiency.Recently, low-rank has also been explored to pre-train LLM from scratch (Lialin et al., 2023a;Zhao et al., 2024).GaLore (Zhao et al., 2024) projects the gradient into a low-rank subspace for the update to enable full-parameter learning while significantly reduc-ing memory usage during optimization.BAdam (Luo et al., 2024) partitions the entire model into distinct blocks and utilizes a block coordinate descent framework to update each block individually, either in a deterministic or random sequence.
44Layerwise Sampling for LLM Fine-tuning.Importance sampling is a powerful statistical technique used in machine learning to estimate properties of a particular distribution by sampling from a different, more convenient distribution.Recently, Pan et al. (2024) explored the idea of importance sampling to LLM fine-tuning, with the key idea of sampling only γ layers at each step to finetuning while keeping the rest of layers frozen.The proposed method, Layerwise Importance Sampled AdamW (LISA), outperforms LoRA by a large margin on various benchmarks and even outperforms full parameters training under certain settings.Inspired by LISA, our paper advances the performance of layerwise sampling for LLM fine-tuning, by addressing a couple of shortfalls of LISA.
Conclusion
45In this paper, we study the sampling-based LLM fine-tuning, where at each iteration, only a few layers are sampled and fine-tuned, instead of the whole model.Specifically, we delve into recently-proposed LISA (Pan et al., 2024) and unveil two shortcomings that constrain its memoryperformance trade-off: (1) The middle layers of LISA are sampled uniformly, which can result in suboptimal performance.(2) The sampled layers of LISA are fine-tuned in a full-rank manner, causing a significant memory increase as the number of sampled layers increases.To address these challenges, we introduced OWS, which assigns higher sampling probabilities to outlier-rich layers and incorporates low-rank gradient projection for improved memory efficiency.Our experiments on LLaMa2 and Mistral demonstrate that OWS significantly boosts performance while reducing memory usage compared to full-rank fine-tuning.
Limitations
46While our proposed OWS approach demonstrates notable improvements in fine-tuning performance and memory efficiency, there are some factors to consider.Our evaluation primarily focuses on LLaMa2 and Mistral models, and further research could investigate the generalizability of OWS across a broader range of models and ar-chitectures.
Figure 1 :
47Figure 1: The comparison among Full Fine-tuning, training with LoRA, and OWS.Blue modules are frozen, while orange modules are activated.OWS non-uniformly samples layers to fine-tune models with low-rank gradients.
Figure 2 :
48Figure 2: OWS Layerwise outlier distribution of LLaMa2 of Equation2.The Y-axis is presented in percentage.Higher values mean higher outlier ratios.
Figure 4 :
49Figure 4: Left: Memeory breakdown of various methods using LLaMa2-7B.Right: Fine-tuning loss of LLaMA2-7B on Alpaca GPT-4 dataset using various methods.
Table 1 :
50Fine-tuning performance of LLaMA2-7B with various dataset.The results are averaged under three random seeds.
Table 2 :
51Fine-tuning performance of LLaMa2-7B and Mistral-7B with various approaches on commonsense reasoning datasets.The results are averaged under three random seeds.
52weights frozen during training; (iii) GaLore (Zhao
Table 3 :
53Fine-tuning performance of LLaMa2-7B with various approaches on MT-Bench using GPT-3.5-turboas a judge.The results are averaged under three random seeds.Method Writing Roleplay Reasoning Math Coding Extraction STEM Humanities Avg.Fine-tuning memory usage of using various with LLaMa2-7B.Left: varying sampled layers.In this scenario, we also vary the rank of LoRA and OWS from 4 to 128 to provide a comprehensive analysis.OWS consistently demonstrates superior memory efficiency across all configurations.Notably, LISA's memory advantage over LoRA diminishes as the number of sampled layers increases.Right: varying ranks.The sampled layer of LISA and OWS is set as γ = 2.
Table 4 :
54Mean score of LLaMA-2-7B on MT-Bench over three seeds.The results are averaged under three random seeds.
Table 5 :
55Fine-tuning performance of LLaMa2-7B with various approaches on MMLU benchmark.The results are averaged under three random seeds.
Table 6 :
56GSM8K accuracy (%) of LLaMA2-7B with different memory-efficient fine-tuning strategies.
Table 7 :
57GSM8K accuracy (%) on Qwen2.5-7B.
Table 8 :
58GSM8K scores/memory usage for fine-tuning LLaMA2-7B with various sampled layers γ.The results are averaged under three random seeds.
Table 9 :
59Comparison with other layer-wise importance metrics, using LLaMA2-7B on Commonsense Reasoning.
참고문헌
참고문헌 정보가 없습니다.