LoRA ensembles for large language model fine-tuning
Xi Wang, Laurence Aitchison, Maja Rudolph
TL;DR
This work tackles the poor uncertainty quantification of fine-tuned LLMs and the impracticality of large model ensembles by proposing LoRA ensembles, which attach low-rank adapters to a shared base model to form scalable, memory-efficient ensembles. The method enables many ensemble components with minimal overhead and demonstrates improvements in both predictive accuracy and calibration across multiple QA tasks, including out-of-distribution scenarios. The authors further study how regularization (e.g., KL, early stopping, and large weight decay on the adapter matrices) interacts with ensembling, showing that LoRA ensembles are complementary to existing strategies and can yield robust uncertainty estimates. Overall, LoRA ensembles provide a practical avenue for reliable, scalable uncertainty quantification in large language models for real-world applications.
Abstract
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.
