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

通过正交化低秩适配器实现大规模语言模型的可扩展变分贝叶斯微调

Scalable Variational Bayesian Fine-Tuning of LLMs via Orthogonalized Low-Rank Adapters

School of Electrical and Computer Engineering, University of Georgia(佐治亚大学电气与计算机工程学院);Department of Computer Science, ETH Zurich(苏黎世联邦理工学院计算机科学系)

Haotian Xiang, Bingcong Li, Qin Lu

AI总结:

本文提出PoLAR-VBLL框架,通过正交化低秩适配器与变分推断结合,实现大规模语言模型的可扩展贝叶斯微调,提升不确定性量化能力。

摘要:

当将大型语言模型(LLMs)应用于安全关键应用时,不确定性量化(UQ)对自我评估LLM决策的可靠性至关重要。然而,此类决策通常存在过度自信的问题,特别是在有限数据下进行参数高效微调(PEFT)后。现有方法要么依赖于基于拉普拉斯近似的后验框架,可能因训练轨迹不同而产生次优校准,要么需要在推理时多次完整通过整个LLM主干进行前向传递以进行蒙特卡洛估计,这在部署时面临可扩展性挑战。为了解决这些限制,我们基于贝叶斯最后一层(BLL)模型,其中LLM的确定性特征提取器后接随机最后一层参数用于不确定性推理。由于现有低秩适配器(LoRA)用于PEFT时因秩坍缩而表达性有限,我们通过极分解低秩适配器表示(PoLAR),一种正交化参数化与黎曼优化相结合的方法,以实现更稳定和表达性的适应。基于此PoLAR-BLL模型,我们利用变分(V)推断框架提出了一种可扩展的贝叶斯微调方法,通过交替优化联合寻找PoLAR参数和最后一层参数的近似后验。所得到的PoLAR-VBLL是一种灵活的框架,能够很好地整合架构增强优化与可扩展贝叶斯推断,使LLM具备良好的校准UQ能力。我们的实验结果验证了PoLAR-VBLL在各种常识推理任务中对分布内和分布外数据的泛化能力和不确定性估计的有效性。

英文摘要:

When deploying large language models (LLMs) to safety-critical applications, uncertainty quantification (UQ) is of utmost importance to self-assess the reliability of the LLM-based decisions. However, such decisions typically suffer from overconfidence, particularly after parameter-efficient fine-tuning (PEFT) for downstream domain-specific tasks with limited data. Existing methods to alleviate this issue either rely on Laplace approximation based post-hoc framework, which may yield suboptimal calibration depending on the training trajectory, or variational Bayesian training that requires multiple complete forward passes through the entire LLM backbone at inference time for Monte Carlo estimation, posing scalability challenges for deployment. To address these limitations, we build on the Bayesian last layer (BLL) model, where the LLM-based deterministic feature extractor is followed by random last layer parameters for uncertainty reasoning. Since existing low-rank adapters (LoRA) for PEFT have limited expressiveness due to rank collapse, we address this with Polar-decomposed Low-rank Adapter Representation (PoLAR), an orthogonalized parameterization paired with Riemannian optimization to enable more stable and expressive adaptation. Building on this PoLAR-BLL model, we leverage the variational (V) inference framework to put forth a scalable Bayesian fine-tuning approach which jointly seeks the PoLAR parameters and approximate posterior of the last layer parameters via alternating optimization. The resulting PoLAR-VBLL is a flexible framework that nicely integrates architecture-enhanced optimization with scalable Bayesian inference to endow LLMs with well-calibrated UQ. Our empirical results verify the effectiveness of PoLAR-VBLL in terms of generalization and uncertainty estimation on both in-distribution and out-of-distribution data for various common-sense reasoning tasks.

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

↑