Introduction
Fine-tuning Large Language Models (LLMs) using Low-Rank Adaptation (LoRA) has become the industry standard for efficiency. However, these models often suffer from overconfidence, frequently assigning high probabilities to incorrect predictions. While Bayesian methods like SWAG-LoRA can mitigate this by estimating weight distributions, they typically incur a significant "parameter tax," often quadrupling the trainable parameter count. This paper introduces B-LoRA-XS, a method that achieves high-quality uncertainty quantification within a minimal SVD-projected subspace, maintaining extreme parameter efficiency.
Methodology: Bayesian Subspace Projection
B-LoRA-XS builds upon the LoRA-XS architecture, which utilizes Singular Value Decomposition (SVD) to initialize frozen projection matrices.
The core innovation involves:
- Subspace Bottleneck: Instead of training large matrices, a tiny $r \times r$ trainable matrix $R$ is inserted between frozen SVD-derived matrices $A$ and $B$. The weight update is defined as $\Delta W = ARB$.
- Bayesian Inference: The matrix $R$ is treated as a random variable. Stochastic Weight Averaging-Gaussian (SWAG) is employed to estimate its posterior distribution.
- Efficient Covariance Modeling: Due to the small size of $R$, the covariance matrix $\Sigma$ can be modeled efficiently across layers, capturing essential dependencies with minimal overhead.
Experimental Results
The method was evaluated using RoBERTa-large on four GLUE benchmark tasks: CoLA, MRPC, RTE, and SST-2.
Key Findings
- Superior Calibration: B-LoRA-XS consistently reduces Expected Calibration Error (ECE) and Negative Log-Likelihood (NLL) compared to standard LoRA and LoRA-XS.
- Extreme Efficiency: At rank $r=8$, B-LoRA-XS utilizes approximately 74k parameters—a fraction of the ~800k required by standard LoRA and the ~9.4M required by SWAG-LoRA.
- Low-Dimensional Uncertainty: Results suggest that effective uncertainty quantification can be achieved in a remarkably low-dimensional manifold, with even a rank $k=2$ covariance matrix providing excellent calibration.
Discussion and Future Work
B-LoRA-XS demonstrates that uncertainty is inherently low-dimensional in fine-tuned LLMs. By projecting uncertainty onto SVD-favored directions, the method provides a powerful inductive bias and stable convergence.
However, limitations remain. The reliance on pre-trained SVD components may be suboptimal for tasks significantly different from the pre-training data. Additionally, Bayesian inference requires multiple forward passes, increasing inference latency. Future research will explore the application of B-LoRA-XS to generative tasks and larger-scale models like Llama-3.
Summary updated