Training-Free Bayesianization for Low-Rank Adapters of Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shi, Haizhou, Wang, Yibin, Han, Ligong, Zhang, Huan, Wang, Hao
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908559587934208
author Shi, Haizhou
Wang, Yibin
Han, Ligong
Zhang, Huan
Wang, Hao
author_facet Shi, Haizhou
Wang, Yibin
Han, Ligong
Zhang, Huan
Wang, Hao
contents Estimating the uncertainty of responses from Large Language Models (LLMs) remains a critical challenge. While recent Bayesian methods have demonstrated effectiveness in quantifying uncertainty through low-rank weight updates, they typically require complex fine-tuning or post-training procedures. In this paper, we propose Training-Free Bayesianization (TFB), a simple yet theoretically grounded framework that efficiently transforms trained low-rank adapters into Bayesian ones without additional training. TFB systematically searches for the maximally acceptable level of variance in the weight posterior, constrained within a family of low-rank isotropic Gaussian distributions. Our theoretical analysis shows that under mild conditions, this search process is equivalent to KL-regularized variational optimization, a generalized form of variational inference. Through comprehensive experiments, we show that TFB achieves superior uncertainty estimation and generalization compared to existing methods while eliminating the need for complex Bayesianization training procedures. Code will be available at https://github.com/Wang-ML-Lab/bayesian-peft.
format Preprint
id arxiv_https___arxiv_org_abs_2412_05723
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Training-Free Bayesianization for Low-Rank Adapters of Large Language Models
Shi, Haizhou
Wang, Yibin
Han, Ligong
Zhang, Huan
Wang, Hao
Machine Learning
Artificial Intelligence
Computation and Language
Estimating the uncertainty of responses from Large Language Models (LLMs) remains a critical challenge. While recent Bayesian methods have demonstrated effectiveness in quantifying uncertainty through low-rank weight updates, they typically require complex fine-tuning or post-training procedures. In this paper, we propose Training-Free Bayesianization (TFB), a simple yet theoretically grounded framework that efficiently transforms trained low-rank adapters into Bayesian ones without additional training. TFB systematically searches for the maximally acceptable level of variance in the weight posterior, constrained within a family of low-rank isotropic Gaussian distributions. Our theoretical analysis shows that under mild conditions, this search process is equivalent to KL-regularized variational optimization, a generalized form of variational inference. Through comprehensive experiments, we show that TFB achieves superior uncertainty estimation and generalization compared to existing methods while eliminating the need for complex Bayesianization training procedures. Code will be available at https://github.com/Wang-ML-Lab/bayesian-peft.
title Training-Free Bayesianization for Low-Rank Adapters of Large Language Models
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2412.05723