Manuscript Offprint

arXiv:2609.08354

Geometry-Aware Bayesian Parameter-Efficient Fine-Tuning on the Stiefel Manifold via Stein Variational Gradient Descent

Quang-Duy Tran, Trung Le, Bao Duong, Phuoc Nguyen, Thin Nguyen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Quang-Duy Tran*†§, Trung Le‡, Bao Duong*, Phuoc Nguyen*, Thin Nguyen*

*Deakin Applied Artificial Intelligence Initiative, Deakin University, Geelong, Australia

†Department of Computer Science, Aalto University, Espoo, Finland

‡Department of Data Science & AI, Monash University, Melbourne, Australia

quang-duy.tran@aalto.fi, trunglm@monash.edu, {b.duong, phuoc.nguyen, thin.nguyen}@deakin.edu.au

§This work was completed at the Deakin Applied Artificial Intelligence Initiative, Deakin University.

Abstract—Several geometry-aware approaches to low-rank adaptation have emerged for parameter-efficient fine-tuning of large pre-trained models. These methods aim to take full advantage of the geometric structure of low-rank manifolds for improving the efficiency in subspace utilization and reducing redundancy by enforcing orthogonality constraints during optimization. The strong empirical results of these techniques have motivated further study into whether predictions from such geometry-based adaptation methods could be overconfident. In this paper, we build on the singular value decomposition factorization of adapters to develop a framework based on Stein variational gradient descent (SVGD). In this formulation, the low-rank matrices are transported along the Stiefel manifold to match the targeted distributions while retaining their crucial geometric structure. Since this geometry-aware SVGD approach provides multiple solutions during inference, it supports uncertainty quantification and produces better-calibrated adapters on the Stiefel manifold. Extensive experiments show that our method delivers strong model calibration and attains higher prediction accuracy than SVGD and related uncertainty estimation methods that are formulated in Euclidean space.

Index Terms—PEFT, Bayesian Inference, Stiefel Manifold, Approximate Inference

I. INTRODUCTION

Various large pre-trained models, such as large language models (LLMs) [1]–[3], are emerging as valuable tools for safety-critical domains [4], [5]. To efficiently adapt these pre-trained models to a specific domain, parameter-efficient fine-tuning (PEFT) formulations are often utilized to create general instruction-following models [6]–[9]. Low-rank adaptation (LoRA) [6] treats the fine-tuned weights ΔW\Delta \mathbf{W} as an additive adapter to the pre-trained weights W0∈Rm×n\mathbf{W}_0 \in \mathbb{R}^{m \times n} as W:=W0+ΔW\mathbf{W} := \mathbf{W}_0 + \Delta \mathbf{W} and reduces the computational cost with a low-rank decomposition ΔW:=αrBA\Delta \mathbf{W} := \frac{\alpha}{r} \mathbf{B}\mathbf{A}, where B∈Rm×r\mathbf{B} \in \mathbb{R}^{m \times r}, A∈Rr×n\mathbf{A} \in \mathbb{R}^{r \times n}, rr is the rank such that r≪min⁡(m,n)r \ll \min(m, n), and α\alpha is a scale factor.

However, despite showing improved accuracy, it has been shown that fine-tuning can break the calibration of the models and cause them to produce overconfident predictions [1], [10], [11]. Bayesian deep learning [12]–[14] has been a principled choice for estimating the epistemic uncertainty as well

as allowing the production of better calibrated predictions through Bayesian posterior predictive distributions of these models. Although these methods are often challenging in large models due to the high dimensionality of the parameters, applying them to a significantly reduced subset of parameters during PEFT is more feasible. In addition, due to a lower amount of training data during, fine-tuning is more prone to epistemic uncertainty compared to pre-training [15]. Hence, various Bayesian inference studies have been presented [15]–[17] to address the uncertainty and calibration during LoRA fine-tuning.

On the other hand, to further enhance the rank efficiency of LoRA, approaches [8], [9], [18] have been introduced to enforce orthogonality between the rr basis vectors of the up-projection matrix, as in Stiefel-LoRA [9], or both the basis vectors of up-projection and down-projection matrices, as in StellA [8]. These constraints are based on the assumption that the weights belong to the Stiefel manifolds and geometry-aware optimization on Riemannian manifold [19] can straightforwardly be applied to enforce the orthogonality. With this constraint, these methods can fully exploit all subspace dimensions of the rank, leading to promising performance enhancements over diverse fine-tuning tasks [8], [9].

Despite promising predictive results, these methods lack evaluations on calibration and epistemic uncertainty. As a result, we present this study to examine the calibration errors of geometry-aware low-rank fine-tuning adaptations (specifically, StellA [8]) and proposed a Bayesian inference framework on the Stiefel manifold for evaluating their uncertainty and improving the calibration. Due to the complexity of distributional definitions for Bayesian inference on the manifold, particle-based variational inference approaches, notably Stein variational gradient descent (SVGD) [20], [21], are ideal for this setting due to their approximation flexibility compared to model-based variational inference and better iteration-effectiveness compared to Monte Carlo methods [21]. As a result, we choose SVGD [20], [21] as our inference engine and solve to find the optimal update function to iteratively transport the particles on the Riemannian/Stiefel manifold to the target distributions. Through evaluations on diverse experimental settings, our proposed approach—Riemannian Stein variational gradient descent for PEFT on the Stiefel manifold (StePS)—has demonstrated favorable accuracy and expected calibration errors compared to related methods on both in-distribution and out-of-distribution settings of the commonsense reasoning fine-tuning benchmarks.

Contributions: The key contributions of this work can be highlighted as follows:

  • We address the uncertainty estimation and calibration problems in geometry-aware PEFT by performing the Bayesian inference on the Stiefel manifold, allowing explicit and principled estimation of the epistemic uncertainty and enhancing the calibration of the predictions via the Bayesian posterior predictive distribution.

  • We find the optimal transport function with the gradient flow formulation on the Stiefel manifold, resulting in the closed-formed solution for steepest descent to iteratively transport the particles to match the target distributions on the manifold.

  • The effectiveness of our approach is evaluated through extensive experiments on fine-tuning and inference on both in-distribution and out-of-distribution data, demonstrating beneficial improvements on predictive accuracy and model calibration results compared to related Bayesian PEFT frameworks.

References (31)

  • GPT-4 Technical Report
  • Llama 2: Open Foundation and Fine-Tuned Chat Models
  • The Llama 3 Herd of Models
  • The future landscape of large language models in medicine
  • A comprehensive survey of scientific large language models and their applications in scientific discovery
  • LoRA: Low-rank adaptation of large language models
  • Self-Instruct: Aligning language models with self-generated instructions
  • StellaA: Subspace learning in low-rank adaptation using Stiefel manifold
  • Riemannian optimization for LoRA on the Stiefel manifold
  • How can we know when language models know? On the calibration of language models for question answering
  • Language Models (Mostly) Know What They Know
  • Weight uncertainty in neural network
  • Dropout as a Bayesian approximation: Representing model uncertainty in deep learning
  • Simple and scalable predictive uncertainty estimation using deep ensembles
  • Bayesian low-rank adaptation for large language models
  • BLOB: Bayesian low-rank adaptation by backpropagation for large language models
  • Scalable Bayesian low-rank adaptation of large language models via stochastic variational subspace inference
  • PoLAR: Polar-decomposed low-rank adapter representation
  • Stein variational gradient descent: A general purpose Bayesian inference algorithm
  • Riemannian Stein variational gradient descent for Bayesian inference
  • Adaptive budget allocation for parameter-efficient fine-tuning
  • GeoLoRA: Geometric integration for parameter efficient fine-tuning
  • Uncertainty quantification in fine-tuned LLMs using LoRA ensembles
  • WinoGrande: An adversarial Winograd schema challenge at scale
  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • Can a suit of armor conduct electricity? a new dataset for open book question answering
  • BoolQ: Exploring the surprising difficulty of natural yes/no questions
  • Measuring massive multitask language understanding
  • On calibration of modern neural networks
  • Adam: A method for stochastic optimization
  • Decoupled weight decay regularization