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

并非所有LoRA参数都是必需的:关于推理必要性的见解

Not All LoRA Parameters Are Essential: Insights on Inference Necessity

University of Macau(澳门大学)

Guanhua Chen, Yutong Yao, Ci-Jun Gao, Lidia S. Chao, Feng Wan, Derek F. Wong

AI总结:

本文提出一种简单有效的方法,通过识别并仅保留推理中关键的LoRA层,提升微调后大语言模型的性能,并在多个数据集上验证了其有效性。

摘要:

当前关于LoRA的研究主要聚焦于最小化微调参数数量或优化其架构。然而,在推理过程中,所有微调后的LoRA层是否都是必要的这一问题仍未得到充分探索。在本文中,我们研究了每个LoRA层对模型预测真实标签能力的贡献,并假设较低层的LoRA模块在模型推理和理解中扮演更关键的角色。为解决这一问题,我们提出了一种简单而有效的方法来增强使用LoRA微调的大语言模型(LLMs)的性能。具体而言,我们通过分析一小部分验证样本,识别出一个“边界层”,用以区分必要的LoRA层。在推理过程中,我们丢弃该边界层之后的所有LoRA层。我们在四个广泛使用的文本生成数据集上,基于三个强基线模型评估了我们的方法。我们的结果显示出持续且显著的改进,强调了在推理过程中选择性保留关键LoRA层的有效性。

英文摘要:

Current research on LoRA primarily focuses on minimizing the number of fine-tuned parameters or optimizing its architecture. However, the necessity of all fine-tuned LoRA layers during inference remains underexplored. In this paper, we investigate the contribution of each LoRA layer to the model's ability to predict the ground truth and hypothesize that lower-layer LoRA modules play a more critical role in model reasoning and understanding. To address this, we propose a simple yet effective method to enhance the performance of large language models (LLMs) fine-tuned with LoRA. Specifically, we identify a ``boundary layer'' that distinguishes essential LoRA layers by analyzing a small set of validation samples. During inference, we drop all LoRA layers beyond this boundary. We evaluate our approach on three strong baselines across four widely-used text generation datasets. Our results demonstrate consistent and significant improvements, underscoring the effectiveness of selectively retaining critical LoRA layers during inference.

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

↑