arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.07808cs.CLcs.LG
收藏

GRASS:基于梯度的自适应层级重要性采样用于内存高效的大型语言模型微调

GRASS: Gradient-based Adaptive Layer-wise Importance Sampling for Memory-efficient Large Language Model Fine-tuning

National University of Defense Technology(国防科技大学);Information Support Force Engineering University(信息支援部队工程大学)

Kaiyuan Tian, Yu Tang, Gongqingjian Jiang, Baihui Liu, Yifu Gao, Xialin Su, Linbo Qiao, Dongsheng Li

AI总结:

GRASS提出一种基于梯度的自适应层级重要性采样方法,通过动态调整层采样概率和优化器状态卸载机制,在降低内存使用的同时提升微调性能,实验显示其在多个模型和基准测试中均优于现有方法。

摘要:

大型语言模型的全参数微调受限于显著的GPU内存需求。低秩适应方法通过仅更新部分参数缓解这一挑战,但往往限制模型表达能力并导致性能低于全参数微调。层级微调方法通过静态层重要性采样策略实现内存高效训练,但忽略了任务和训练阶段间层重要性的变化,导致下游任务性能不佳。为解决这些限制,我们提出了GRASS,一种基于梯度的自适应层级重要性采样框架。GRASS利用均梯度范数作为任务感知和训练阶段感知的指标来估计层重要性。此外,GRASS通过自适应训练策略动态调整层采样概率。我们还引入了一种层级优化器状态卸载机制,通过计算与通信的重叠进一步减少内存使用,同时保持可比的训练吞吐量。在多个模型和基准测试中的广泛实验表明,GRASS在多个模型和基准测试中均优于现有方法,平均准确率提升达4.38个百分点,内存使用减少达19.97%。

英文摘要:

Full-parameter fine-tuning of large language models is constrained by substantial GPU memory requirements. Low-rank adaptation methods mitigate this challenge by updating only a subset of parameters. However, these approaches often limit model expressiveness and yield lower performance than full-parameter fine-tuning. Layer-wise fine-tuning methods have emerged as an alternative, enabling memory-efficient training through static layer importance sampling strategies. However, these methods overlook variations in layer importance across tasks and training stages, resulting in suboptimal performance on downstream tasks. To address these limitations, we propose GRASS, a gradient-based adaptive layer-wise importance sampling framework. GRASS utilizes mean gradient norms as a task-aware and training-stage-aware metric for estimating layer importance. Furthermore, GRASS adaptively adjusts layer sampling probabilities through an adaptive training strategy. We also introduce a layer-wise optimizer state offloading mechanism that overlaps computation and communication to further reduce memory usage while maintaining comparable training throughput. Extensive experiments across multiple models and benchmarks demonstrate that GRASS consistently outperforms state-of-the-art methods, achieving an average accuracy improvement of up to 4.38 points and reducing memory usage by up to 19.97\%.

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

↑