Bayesian Low-rank Adaptation for Large Language Models
Adam X. Yang, Maxime Robeyns, Xi Wang, Laurence Aitchison
TL;DR
Fine-tuned LLMs often exhibit overconfidence, particularly with limited data. The paper introduces Laplace-LoRA, a post-hoc Bayesian method that applies a Laplace approximation to the LoRA parameter posterior, enabling uncertainty estimation without modifying existing fine-tuning pipelines. Across six common-sense tasks and distribution-shift scenarios, Laplace-LoRA substantially improves calibration metrics (ECE, NLL) with only modest memory and runtime overhead. This approach demonstrates that scalable, uncertainty-aware fine-tuning is feasible for parameter-efficient adapters in large language models.
Abstract
Low-rank adaptation (LoRA) has emerged as a new paradigm for cost-efficient fine-tuning of large language models (LLMs). However, fine-tuned LLMs often become overconfident especially when fine-tuned on small datasets. Bayesian methods, with their inherent ability to estimate uncertainty, serve as potent tools to mitigate overconfidence and enhance calibration. In this work, we introduce Laplace-LoRA, which applies a Bayesian approach to the LoRA parameters. Specifically, Laplace-LoRA applies a Laplace approximation to the posterior over the LoRA parameters, considerably improving the calibration of fine-tuned LLMs.
