arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.00035cs.LGcs.AI
收藏

用于大语言模型微调的LoRA集成

LoRA ensembles for large language model fine-tuning

UMass Amherst(马萨诸塞大学阿默斯特分校);University of Bristol(布里斯托大学);Bosch Center for AI(博世人工智能中心)

Xi Wang, Laurence Aitchison, Maja Rudolph

AI总结:

针对大语言模型微调后不确定性量化差、集成存储成本高的问题,提出基于参数高效微调技术LoRA的集成方法,以极低开销实现预测精度与不确定性量化的稳定提升。

摘要:

微调后的大语言模型(LLM)往往存在不确定性量化效果不佳的问题,表现为在测试数据或分布外样本上过度自信、校准效果差以及预测结果不可靠。在计算机视觉领域,缓解这一问题的一种常用方法是深度集成,即通过不同的随机初始化多次训练同一模型来构建集成模型。然而,大语言模型的集成面临着巨大挑战:性能最优的大语言模型体量极为庞大,将单个大语言模型存入内存已颇具难度,在许多场景下,存储例如5个大语言模型的集成模型更是不可能的。为解决这些问题,我们提出了一种使用低秩适配器(Low-Rank Adapters,LoRA)——一种参数高效的微调技术——的集成方法。关键在于,这些低秩适配器的参数量极少,比底层预训练模型的参数量小几个数量级。因此,构建大规模的LoRA适配器集成是可行的,其计算开销与使用原始模型几乎相当。我们发现,无论是单独使用LoRA集成,还是将其应用于已有的正则化技术之上,都能持续提升预测准确率和不确定性量化效果。

英文摘要:

Finetuned LLMs often exhibit poor uncertainty quantification, manifesting as overconfidence, poor calibration, and unreliable prediction results on test data or out-of-distribution samples. One approach commonly used in vision for alleviating this issue is a deep ensemble, which constructs an ensemble by training the same model multiple times using different random initializations. However, there is a huge challenge to ensembling LLMs: the most effective LLMs are very, very large. Keeping a single LLM in memory is already challenging enough: keeping an ensemble of e.g. 5 LLMs in memory is impossible in many settings. To address these issues, we propose an ensemble approach using Low-Rank Adapters (LoRA), a parameter-efficient fine-tuning technique. Critically, these low-rank adapters represent a very small number of parameters, orders of magnitude less than the underlying pre-trained model. Thus, it is possible to construct large ensembles of LoRA adapters with almost the same computational overhead as using the original model. We find that LoRA ensembles, applied on its own or on top of pre-existing regularization techniques, gives consistent improvements in predictive accuracy and uncertainty quantification.

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

↑