[Paper Review] LoRA ensembles for large language model fine-tuning
This paper proposes LoRA ensembles, a parameter-efficient method for improving uncertainty calibration and predictive accuracy in large language model (LLM) fine-tuning by training multiple low-rank adapters (LoRAs) with different random initializations. Despite the high memory cost of full LLM ensembles, LoRA ensembles achieve significant gains in both accuracy and calibration—especially under regularization—by leveraging the low storage and inference overhead of LoRA while maintaining model diversity.
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.
Motivation & Objective
- To address poor uncertainty quantification in fine-tuned LLMs, such as overconfidence and poor calibration on out-of-distribution data.
- To overcome the prohibitive memory and computational costs of training full-model ensembles for large LLMs.
- To enable scalable, efficient ensembling of LLMs using Low-Rank Adapters (LoRA), which require orders of magnitude fewer parameters than the base model.
- To investigate the compatibility of LoRA ensembles with regularization techniques to further improve generalization and calibration.
- To empirically validate that random initialization and dataset shuffling contribute meaningfully to ensemble diversity and performance.
Proposed method
- Train multiple LoRA adapters with different random initializations on the same pre-trained LLM, using the same fine-tuning data.
- Use the full pre-trained LLM weights as the base for all LoRA adapters, ensuring consistent initialization while preserving diversity through random adapter weights.
- Combine predictions from all LoRA adapters at inference time via averaging logits or probabilities to form an ensemble prediction.
- Apply regularization techniques (e.g., weight decay, KL regularization, early stopping) during LoRA training to improve generalization and reduce overfitting.
- Use stochastic gradient descent with dataset shuffling to introduce additional randomness (SGD noise), enhancing diversity among ensemble components.
- Evaluate ensemble performance using metrics like accuracy, expected calibration error (ECE), and AUROC on in-distribution and out-of-distribution (OOD) test sets.

Experimental results
Research questions
- RQ1Can LoRA ensembles significantly improve both accuracy and calibration of fine-tuned LLMs compared to single LoRA fine-tuning?
- RQ2Does combining LoRA ensembles with regularization techniques lead to further improvements in model calibration and generalization?
- RQ3How do different sources of randomness—random initialization and SGD noise from dataset shuffling—contribute to ensemble diversity and performance?
- RQ4What is the impact of increasing the number of ensemble components (M) on model performance, and does the benefit diminish with larger M?
- RQ5How do LoRA ensembles compare to alternative uncertainty estimation methods like Monte Carlo dropout or last-layer fine-tuning in terms of accuracy and calibration?
Key findings
- LoRA ensembles consistently improve both accuracy and calibration across six commonsense reasoning datasets, with a notable reduction in expected calibration error (ECE).
- The ensemble with five LoRA components outperforms both single LoRA models and alternative methods like Monte Carlo dropout and last-layer fine-tuning in terms of both accuracy and ECE.
- LoRA ensembles remain effective even when combined with regularization: weight decay shows the most robust performance, while strong KL regularization or early stopping can reduce ensemble benefits by suppressing diversity.
- Increasing the number of ensemble components (M) improves performance, but the marginal gains diminish as M grows larger, indicating diminishing returns beyond a certain point.
- Both random initialization and dataset shuffling contribute to ensemble diversity, with SGD noise (from shuffling) having a stronger impact than initialization alone, and both being necessary for optimal performance.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.