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

通过变分学习改进LoRA

Improving LoRA with Variational Learning

Institute of Science Tokyo(东京科学研究院);RIKEN Center for AI Project(RIKEN人工智能项目研究中心);Ubiquitous Knowledge Processing Lab (UKP Lab), Department of Computer Science, Technical University of Darmstadt(通用知识处理实验室(UKP实验室),计算机科学系,达姆施塔特技术大学);National Research Center for Applied Cybersecurity ATHENE, Germany(应用网络安全国家研究中心ATHENE,德国);Huawei Hong Kong Research Center(华为香港研究中心)

Bai Cong, Nico Daheim, Yuesong Shen, Rio Yokota, Mohammad Emtiyaz Khan, Thomas Möllenhoff

AI总结:

针对现有贝叶斯方法改进LoRA微调时准确率提升有限、计算开销大的问题,本研究采用变分算法IVON结合后验剪枝技术,在十亿级大模型上实现了准确率与校准效果的双重提升,且成本与AdamW相当。

摘要:

贝叶斯方法近期被用于改进LoRA微调,尽管它们提升了校准效果,但对准确率等其他指标的作用甚微,有时甚至会产生负面影响。此外,贝叶斯方法还会增加计算开销,且需要额外的技巧才能良好运行。本文中,我们采用一种新近提出的名为IVON(变分在线自然梯度优化)的变分算法解决了这些问题。我们证明IVON易于实现,计算成本与AdamW相近,且通过一种简单的后验剪枝技术,还能大幅提升多项指标。我们在十亿参数规模的大语言模型(Llama和Qwen系列)上给出了大量实验结果,规模远超现有IVON的应用场景。例如,我们在一组常识推理任务上微调Llama-3.2-3B模型,相比AdamW将准确率提升了1.3%,预期校准误差(ECE)降低了5.4%,性能优于AdamW及Laplace-LoRA、BLoB等近期贝叶斯方法。总体而言,我们的结果表明,采用IVON的变分学习可有效改进LoRA微调。

英文摘要:

Bayesian methods have recently been used to improve LoRA finetuning and, although they improve calibration, their effect on other metrics (such as accuracy) is marginal and can sometimes even be detrimental. Moreover, Bayesian methods also increase computational overheads and require additional tricks for them to work well. Here, we fix these issues by using a recently proposed variational algorithm called IVON. We show that IVON is easy to implement and has similar costs to AdamW, and yet it can also drastically improve many metrics by using a simple posterior pruning technique. We present extensive results on billion-scale LLMs (Llama and Qwen series) going way beyond the scale of existing applications of IVON. For example, we finetune a Llama-3.2-3B model on a set of commonsense reasoning tasks and improve accuracy over AdamW by 1.3% and reduce ECE by 5.4%, outperforming AdamW and other recent Bayesian methods like Laplace-LoRA and BLoB. Overall, our results show that variational learning with IVON can effectively improve LoRA finetuning.

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

↑