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

使用IVON的变分低秩适配

Variational Low-Rank Adaptation Using IVON

Institute of Science Tokyo(东京科学研究所);RIKEN Center for AI Project(理化学研究所AI项目中心);Technical University of Darmstadt(达姆施塔特工业大学);Technical University of Munich(慕尼黑工业大学)

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

AI总结:

本文提出用IVON算法替代AdamW进行LoRA微调,在Llama-2(70亿参数)上准确率提升2.8%,校准误差降低4.6%,且成本更低、实现更简单,验证了变分学习的有效性。

摘要:

我们证明,变分学习可以显著提高低秩适配(LoRA)的准确性和校准度,而无需大幅增加成本。我们用改进的变分在线牛顿(IVON)算法替代AdamW来微调大型语言模型。对于具有70亿参数的Llama-2,IVON相比AdamW将准确率提高了2.8%,预期校准误差降低了4.6%。其准确性也优于其他贝叶斯替代方法,且成本更低,实现更简单。我们的工作为IVON在大型语言模型中的有效性提供了额外证据。代码可在https://github.com/team-approx-bayes/ivon-lora获取。

英文摘要:

We show that variational learning can significantly improve the accuracy and calibration of Low-Rank Adaptation (LoRA) without a substantial increase in the cost. We replace AdamW by the Improved Variational Online Newton (IVON) algorithm to finetune large language models. For Llama-2 with 7 billion parameters, IVON improves the accuracy over AdamW by 2.8% and expected calibration error by 4.6%. The accuracy is also better than the other Bayesian alternatives, yet the cost is lower and the implementation is easier. Our work provides additional evidence for the effectiveness of IVON for large language models. The code is available at https://github.com/team-approx-bayes/ivon-lora.

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

↑