arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.15764cs.LGcs.AIcs.PF
收藏

AdaGradSelect: 一种基于自适应梯度引导的层选择方法,用于高效微调小型语言模型

AdaGradSelect: An adaptive gradient-guided layer selection method for efficient fine-tuning of SLMs

IIT Bhilai(比哈尔理工学院)

Anshul Kumar, Gagan Raj Gupta, Manisha Chawla

AI总结:

AdaGradSelect通过自适应梯度引导选择Transformer块,实现高效微调SLMs,训练速度快35%且性能接近全微调。

摘要:

大型语言模型(LLMs)能够执行许多自然语言处理任务,但完全微调它们成本高昂且需要大量内存。参数高效微调(PEFT)方法如LoRA通过在冻结的模型权重上添加小的低秩更新来降低此成本。然而,这些方法限制了训练仅在一个有限的子空间中,这有时会降低性能。对于小型语言模型(SLMs),效率提升尤为重要,我们引入了AdaGradSelect,一种自适应方法,根据梯度选择要更新的Transformer块。早期观察表明,仅更新梯度范数最高的Transformer块可以实现接近完全微调的性能。在此基础上,AdaGradSelect自适应地选择要训练的块。它结合了基于Dirichlet的采样,这取决于块在以往更新中被更新的频率,以及epsilon-贪心探索策略。这使该方法能够在早期训练中探索不同的块,并在后期epoch中逐渐专注于最重要的块。实验显示,AdaGradSelect训练速度比全微调快约12%,GPU内存使用减少35%,同时性能非常接近全微调。在GSM8K数据集上,它在Qwen2.5-0.5B、LLaMA3.2-1B和Phi4-mini-3.8B等模型上平均比LoRA(rank 256)高出约3%。它在MATH数据集上也实现了相似的准确率。总体而言,AdaGradSelect为传统微调方法提供了一种更有效且资源更高效的替代方案。

英文摘要:

Large Language Models (LLMs) can perform many NLP tasks well, but fully fine-tuning them is expensive and requires a lot of memory. Parameter-Efficient Fine-Tuning (PEFT) methods such as LoRA reduce this cost by adding small low-rank updates to frozen model weights. However, these methods restrict the training to a limited subspace, which can sometimes reduce performance. For Small Language Models (SLMs), where efficiency gains matter even more, we introduce AdaGradSelect, an adaptive method that selects which transformer blocks to update based on gradients. Early observations showed that updating only the transformer blocks with the highest gradient norms can achieve performance close to full fine-tuning. Building on this insight, AdaGradSelect adaptively chooses which blocks to train. It uses a combination of Dirichlet-based sampling, which depends on how frequently blocks were updated in the past, and an epsilon-greedy exploration strategy. This lets the method explore different blocks in early training and gradually focus on the most important ones in later epochs. Experiments show that AdaGradSelect trains about 12 percent faster and uses 35 percent less GPU memory while delivering performance very close to full fine-tuning. On the GSM8K dataset, it outperforms LoRA (rank 256) by about 3 percent on average across models such as Qwen2.5-0.5B, LLaMA3.2-1B, and Phi4-mini-3.8B. It also achieves similar accuracy on the MATH dataset. Overall, AdaGradSelect provides a more effective and resource-efficient alternative to traditional fine-tuning methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑