arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.15330cs.AIcs.CL
收藏

基于梯度的参数选择增强大语言模型性能

Enhancing Large Language Model Performance with Gradient-Based Parameter Selection

Microsoft(微软)

Haoling Li, Xin Zhang, Xiao Liu, Yeyun Gong, Yifan Wang, Qi Chen, Peng Cheng

AI总结:

针对现有LLM参数微调方法未利用任务特定信息的问题,提出基于梯度的参数选择方法GMT,在多任务上优于传统微调且计算高效,还提升了LLM性能上限。

摘要:

大语言模型(LLMs)已革新众多研究领域。尽管微调对增强LLMs能力至关重要是众所周知的,但现有研究表明微调过程存在潜在冗余,因此提出仅更新参数子集。然而,这些方法未能在训练期间利用任务特定信息识别重要参数。基于梯度本质上包含任务特定数据信息的见解,我们提出梯度掩码微调(GMT)方法,该方法在训练期间基于参数的梯度信息选择性更新参数。具体而言,我们计算梯度的绝对值,并对幅度相对较小的参数应用掩码。我们在各种任务上的实证结果表明,GMT不仅优于传统微调方法,还提升了LLM性能的上限。进一步分析表明,GMT对掩码比率不敏感,且计算效率与普通监督微调(SFT)相当。

英文摘要:

Large language models (LLMs) have revolutionized lots of fields of research. Although it is well-known that fine-tuning is essential for enhancing the capabilities of LLMs, existing research suggests that there is potential redundancy in the fine-tuning process and therefore proposes to update only a subset of parameters. However, these methods fail to leverage the task-specific information to identify important parameters during training. Based on the insight that gradients inherently contain information on task-specific data, we propose Gradient-Mask Tuning (GMT), a method that selectively updates parameters during training based on their gradient information. Specifically, we compute the absolute values of the gradients and apply masking to those with relatively smaller magnitudes. Our empirical results across various tasks demonstrate that GMT not only outperforms traditional fine-tuning methods but also elevates the upper limits of LLM performance. Further analysis indicates that GMT exhibits insensitivity to mask ratio and possesses computational efficiency comparable to vanilla SFT.

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

↑