Abstract
Large Language Models (LLMs) often exhibit overconfidence, providing incorrect answers with high certainty. While Bayesian methods can improve calibration, they typically introduce significant parameter overhead and training instability. We present B-LoRA-XS, a method that enables reliable uncertainty quantification within an extremely compressed subspace. By combining Singular Value Decomposition (SVD)-based projections with Stochastic Weight Averaging-Gaussian (SWAG) on a minimal trainable matrix, B-LoRA-XS achieves superior calibration and competitive accuracy with up to 10x fewer parameters than standard LoRA.
Introduction: The Overconfidence Problem
The deployment of LLMs in high-stakes domains like medicine or law is hindered by their tendency to be "overconfident." Standard fine-tuning techniques like Low-Rank Adaptation (LoRA) focus on parameter efficiency but often exacerbate calibration issues. Existing Bayesian LoRA variants attempt to estimate weight distributions but struggle with scaling the covariance matrix, leading to a trade-off between efficiency and calibration.
Methods: B-LoRA-XS
B-LoRA-XS addresses this by performing Bayesian inference in an "extra-small" (XS) subspace. The method integrates two core components:
- SVD Projections (LoRA-XS): Instead of learning full low-rank matrices, B-LoRA-XS uses the SVD of pre-trained weights to create fixed projections. A tiny, trainable square matrix ($R$) is inserted between these projections, reducing the parameter space from $O(rank \times (dim\_in + dim\_out))$ to $O(rank^2)$.
- Subspace Bayesian Inference: The authors apply Stochastic Weight Averaging-Gaussian (SWAG) specifically to this tiny $R$ matrix. By tracking weight averages and variances during training, B-LoRA-XS approximates a posterior distribution, capturing epistemic uncertainty with minimal overhead.
Empirical Evaluation
The method was evaluated using RoBERTa-large on four tasks from the GLUE benchmark: CoLA (linguistic acceptability), MRPC (paraphrase detection), RTE (natural language inference), and SST-2 (sentiment analysis). The researchers compared B-LoRA-XS against standard LoRA, LoRA-XS, and SWAG-LoRA across various ranks and parameter counts.
Key Results: Efficiency and Calibration
B-LoRA-XS demonstrates that effective uncertainty quantification does not require high-dimensional parameter spaces.
- Superior Calibration: The method consistently achieved lower Expected Calibration Error (ECE) and Negative Log-Likelihood (NLL) than its counterparts. At rank $r=8$, it reduced ECE by half compared to standard LoRA.
- Extreme Parameter Efficiency: B-LoRA-XS matches the accuracy of SWAG-LoRA while using 5 to 15 times fewer parameters. For instance, a 74k-parameter B-LoRA-XS model outperformed an 800k-parameter standard LoRA model in calibration.
- Training Stability: Operating in a smaller parameter space makes the training process more stable and less sensitive to hyperparameter choices compared to high-dimensional Bayesian models.
Conclusion
B-LoRA-XS proves that "meaningful" uncertainty lives in a very small subspace aligned with the principal components of pre-trained weights. By decoupling parameter count from calibration quality, it offers a path toward robust, well-calibrated LLMs that remain computationally efficient. Future work will explore scaling this approach to generative tasks and larger model architectures.
Summary updated