Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LoRA-Ensemble: Efficient Uncertainty Modelling for Self-Attention Networks

About

Numerous real-world decisions rely on machine learning algorithms and require calibrated uncertainty estimates. However, modern methods often yield overconfident, uncalibrated predictions. The dominant approach to quantifying the uncertainty inherent in the model is to train an ensemble of separate predictors and measure their empirical variance. In an explicit implementation, the ensemble has a high computational cost and memory footprint, especially if the base model itself is already large, like modern transformers. This motivates efforts to develop implicit ensemble methods that emulate the ensemble without explicitly instantiating all its members. We introduce LoRA-Ensemble, a parameter-efficient ensembling method for self-attention networks. It is based on Low-Rank Adaptation (LoRA), originally developed for efficient LLM fine-tuning, and extends it into an implicit ensembling scheme, where all ensemble members share the same, pre-trained self-attention network, but have individual low-rank matrices for the attention projections. The resulting method not only outperforms state-of-the-art implicit techniques like BatchEnsemble, but even matches or exceeds the accuracy of an Explicit Ensemble, while at the same time achieving superior calibration.

Dominik J. M\"uhlematter, Michelle Halbheer, Alexander Becker, Dominik Narnhofer, Helge Aasen, Konrad Schindler, Mehmet Ozgur Turkoglu• 2024

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR100 (ID) vs SVHN (OOD) (test)
AUROC89.9
67
Image ClassificationiNaturalist 2017 (test)
Top-1 Accuracy49.3
24
Out-of-Distribution DetectionCIFAR-100 (In-distribution) vs CIFAR-10 (OOD) (test)
AUROC82.1
23
Sentiment ClassificationSST-2 (val)
Accuracy92.7
14
Image ClassificationCIFAR-100
Accuracy82.5
10
Skin lesion classificationHAM10000
Accuracy88
9
Image ClassificationCIFAR-10 (test)
Accuracy95.9
7
Showing 7 of 7 rows

Other info

Follow for update