arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.00522cs.CL
收藏

高效寻找平坦极小值以提升大型语言模型及其他模型的泛化能力

Efficiently Seeking Flat Minima for Better Generalization in Fine-Tuning Large Language Models and Beyond

Jiaxin Deng, Qingcheng Zhu, Junbiao Pang, Linlin Yang, Zhongqian Fu, Baochang Zhang

AI总结:

本文提出EFMLoRA,通过寻找LoRA的平坦极小值提升模型泛化能力,实验表明其在效率和性能上均优于传统LoRA方法。

摘要:

针对低秩适应(LoRA)的表达能力与泛化能力之间的关联性研究较少,本文提出Flat Minima LoRA(FMLoRA)及其高效版本EFMLoRA,旨在寻找LoRA的平坦极小值。具体而言,我们理论证明全参数空间中的扰动可以转移到低秩子空间,从而消除低秩子空间中多矩阵扰动可能带来的干扰。我们在大型语言模型和视觉-语言模型上进行了广泛实验,结果表明EFMLoRA在优化效率上与LoRA相当,同时在性能上达到可比或更优的水平。例如,在GLUE数据集上使用RoBERTa-large时,EFMLoRA在平均上优于LoRA和全微调分别为1.0%和0.5%。在视觉-语言模型如Qwen-VL-Chat上,EFMLoRA在SQA和VizWiz数据集上的性能分别提升了1.5%和1.0%。这些实验证实了LoRA的泛化能力与尖锐度密切相关,而这一点在先前方法中被忽略。

英文摘要:

Little research explores the correlation between the expressive ability and generalization ability of the low-rank adaptation (LoRA). Sharpness-Aware Minimization (SAM) improves model generalization for both Convolutional Neural Networks (CNNs) and Transformers by encouraging convergence to locally flat minima. However, the connection between sharpness and generalization has not been fully explored for LoRA due to the lack of tools to either empirically seek flat minima or develop theoretical methods. In this work, we propose Flat Minima LoRA (FMLoRA) and its efficient version, i.e., EFMLoRA, to seek flat minima for LoRA. Concretely, we theoretically demonstrate that perturbations in the full parameter space can be transferred to the low-rank subspace. This approach eliminates the potential interference introduced by perturbations across multiple matrices in the low-rank subspace. Our extensive experiments on large language models and vision-language models demonstrate that EFMLoRA achieves optimize efficiency comparable to that of LoRA while simultaneously attaining comparable or even better performance. For example, on the GLUE dataset with RoBERTa-large, EFMLoRA outperforms LoRA and full fine-tuning by 1.0% and 0.5% on average, respectively. On vision-language models, e.g., Qwen-VL-Chat, there are performance improvements of 1.5% and 1.0% on the SQA and VizWiz datasets, respectively. These empirical results also verify that the generalization of LoRA is closely related to sharpness, which is omitted by previous methods.

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

↑