Certification Frontiers for Gaussian LoRA: Independent Priors, Posterior Risk, and Prediction-Preserving Balancing
Organizations: Department of Computer and Information Sciences, University of Delaware, USA · Department of Computer Science, Iowa State University, USA
Abstract
Post-hoc Bayesian fine-tuning places Gaussians around trained low-rank adapters, yet a calibrated posterior does not by itself yield a useful generalization certificate. Such a posterior admits an informative PAC-Bayes certificate only when both the loss of its sampled predictors and its KL divergence from an admissible prior are small. In this research, we characterize this certification frontier for Gaussian LoRA posteriors and separate three interventions: changing the prior, changing the stochastic predictor, and changing only how its complexity is counted. First, an exact isotropic KL envelope eliminates the prior scale and yields a width threshold that excludes posterior widths before sampling, while a zero-KL floor identifies targets that no complexity reduction can reach at a measured risk bound. Second, we minimize KL in closed form over the full symmetry of the low-rank factors, leaving every sampled adapter product unchanged, and derive the noncentral objective required when the prior center is trained on an independent split. On a small-pool RoBERTa audit of 567 configurations, the recorded 64-draw summaries imply a certificate floor of even with zero KL and Chernoff accounting, so reducing complexity alone cannot certify these posteriors at the recorded budgets. For a stable posterior in a controlled Gaussian-factor task, Chernoff accounting certifies risk below on 20 of 20 datasets with 1024 draws, whereas Hoeffding certifies none. On deliberately deformed synthetic rank-four factors, matrix balancing reduces KL by on average beyond scalar balancing without changing any prediction. Numerical split-prior scenarios make the remaining risk and complexity budgets explicit.
Figures & tables
| Draws | Configurations | Mean KL | Reported certificate | Accounting floor |
|---|---|---|---|---|
| 8 | 567 | 12.49 | ||
| 64 | 216 | 12.67 | – |
| Posterior width | Draws | Hoeffding certificate | Chernoff certificate |
|---|---|---|---|
| 0.1 | 8 | ||
| 0.1 | 64 | ||
| 0.1 | 256 | ||
| 0.1 | 1024 | ||
| 4 | 8 | ||
| 4 | 64 |
| Rank | Raw KL | Scalar optimum | Matrix optimum | Extra reduction (%) |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 4 | ||||
| 8 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| Data, predictor, and certificate | |
| , , | certification sample, its size, and the data distribution |
| bounded loss | |
| , | configuration and its prior weight, |
| , , , | frozen matrix, LoRA factors, and scaling of adapted layer |
| , , | adapter rank and factor dimensions, , |
| Component | Setting |
|---|---|
| Backbone | RoBERTa-base and its tokenizer; fitted sequence-classification head |
| Training pools | Requested sizes ; three seeds ; seven tasks |
| Sequence processing | Maximum 128 tokens; dynamic padding |
| Optimization | AdamW, base learning rate , head multiplier 10; three epochs with a floor of 400 optimizer steps; batch size 16 |
| Adapters | Query/value matrices; ranks ; scaling ; dropout zero; no adapter bias |
| Regularization | LoRA decay ; other trained blocks have zero decay |
| Selector on matched 21 problems | Accuracy | Effect relative to validation |
|---|---|---|
| Five-fold cross-validation | .7180 | |
| Center-risk proxy | .7166 | |
| Proxy minus cross-validation | – |
| Selector | Center | Stochastic | Effect [95% interval] | Wins |
|---|---|---|---|---|
| Center-risk Gaussian-KL proxy | .7053 | .5107 | 5/7 | |
| Training risk | .7066 | .5186 | 5/7 | |
| Validation, retrained | .7088 | .5152 | – | |
| BIC | .6883 | .5235 | 1/7 | |
| Smallest rank | .6877 | .5229 | 1/7 |
| Quantity | Center-risk proxy | Certificate, | Certificate, |
|---|---|---|---|
| Charged blocks | LoRA only | All trained | All trained |
| Mean KL (nats) | 4.29 | 12.49 | 12.67 |
| Risk input | Center | Upper bound | Upper bound – |
| Score or certificate | Mean | Constant | – |
| Selected accuracy, matched 24 | .7634 | .7257 | .7388 |
| Draws | Configurations | Chernoff risk UCB floor | Zero-KL certificate floor |
|---|---|---|---|
| 8 | 567 | ||
| 64 | 216 |
| Task | |||||||
|---|---|---|---|---|---|---|---|
| SST-2 | 1,000 | 0.42 | 0.059 | 0.0973 | 525.00 | 490.35 | 0.5719 |
| SST-2 | 4,000 | 0.46 | 0.066 | 0.1059 | 575.00 | 547.40 | 0.3321 |
| SST-2 | 16,000 | 0.50 | 0.071 | 0.1121 | 625.00 | 601.25 | 0.2182 |
| SST-2 | 33,000 | 0.54 | 0.076 | 0.1181 | 675.00 | 652.73 | 0.1928 |
| QNLI | 1,000 | 0.62 | 0.081 | 0.1241 | 775.00 | 713.77 | 0.7003 |
| QNLI | 4,000 | 0.70 | 0.089 | 0.1336 | 875.00 | 821.62 | 0.4314 |
| Task | |||||||
|---|---|---|---|---|---|---|---|
| SST-2 | 0.005 | 0.005 | 0.051 | 0.0873 | 10800.0 | 10568.3 | 0.4510 |
| SST-2 | 0.010 | 0.010 | 0.058 | 0.0961 | 2700.0 | 2642.1 | 0.2543 |
| SST-2 | 0.015 | 0.020 | 0.064 | 0.1035 | 10839.4 | 10606.9 | 0.4748 |
| SST-2 | 0.020 | 0.020 | 0.076 | 0.1181 | 675.0 | 652.7 | 0.1928 |
| SST-2 | 0.025 | 0.020 | 0.102 | 0.1489 | 9243.1 | 9044.9 | 0.5015 |
| SST-2 | 0.030 | 0.040 | 0.161 | 0.2161 | 10333.2 | 10111.6 | 0.6000 |
| Task | Reduction (%) | |||||
|---|---|---|---|---|---|---|
| SST-2 | 675.00 | 667.87 | 652.73 | 3.30 | 0.1942 | 0.1928 |
| QNLI | 1125.00 | 1110.96 | 1081.12 | 3.90 | 0.2270 | 0.2255 |
| Task | Pass | |||||
|---|---|---|---|---|---|---|
| SST-2 | 1,000 | 0.03143 | 0.1467 | 28.1 | -462.3 | 0 |
| SST-2 | 4,000 | 0.01611 | 0.1308 | 116.7 | -430.7 | 0 |
| SST-2 | 16,000 | 0.00828 | 0.1248 | 430.9 | -170.3 | 0 |
| SST-2 | 33,000 | 0.00591 | 0.1272 | 770.9 | 118.1 | 1 |
| QNLI | 1,000 | 0.03818 | 0.1779 | 9.3 | -704.4 | 0 |
| QNLI | 4,000 | 0.01987 | 0.1609 | 49.1 | -772.5 | 0 |
| Task | Pilot mean | Projected | Forecast | Final | Pass | |
|---|---|---|---|---|---|---|
| SST-2 | 1,000 | 0.056 | 0.5671 | 0 | 0.5719 | 0 |
| SST-2 | 4,000 | 0.068 | 0.3356 | 0 | 0.3321 | 0 |
| SST-2 | 16,000 | 0.068 | 0.2135 | 0 | 0.2182 | 0 |
| SST-2 | 33,000 | 0.078 | 0.1957 | 1 | 0.1928 | 1 |
| QNLI | 1,000 | 0.078 | 0.6966 | 0 | 0.7003 | 0 |
| QNLI | 4,000 | 0.091 | 0.4345 | 0 | 0.4314 | 0 |
| Task | Reference error | Reference lower | Below lower | ||
|---|---|---|---|---|---|
| SST-2 | 1,000 | 0.4700 | 0.4221 | 0.5719 | 0 |
| SST-2 | 4,000 | 0.4700 | 0.4461 | 0.3321 | 1 |
| SST-2 | 16,000 | 0.4700 | 0.4581 | 0.2182 | 1 |
| SST-2 | 33,000 | 0.4700 | 0.4617 | 0.1928 | 1 |
| QNLI | 1,000 | 0.4900 | 0.4419 | 0.7003 | 0 |
| QNLI | 4,000 | 0.4900 | 0.4660 | 0.4314 | 1 |
| Task | Bit depth | Decoded error | |||
|---|---|---|---|---|---|
| SST-2 | 33,000 | 4 | 226,144 | 0.088 | 0.996054 |
| SST-2 | 33,000 | 8 | 607,264 | 0.079 | 0.999999 |
| SST-2 | 33,000 | 16 | 1,605,248 | 0.078 | 1.000000 |
| QNLI | 70,000 | 4 | 251,808 | 0.123 | 0.961728 |
| QNLI | 70,000 | 8 | 638,624 | 0.113 | 0.999462 |
| QNLI | 70,000 | 16 | 1,687,168 | 0.111 | 1.000000 |
| KL | |||||
|---|---|---|---|---|---|
| 0.15625 | 0.463 | 4324787.3 | 1.0000 | 1.0000 | |
| 0.31250 | 0.474 | 3505952.0 | 1.0000 | 1.0000 | |
| 0.62500 | 0.486 | 2688415.3 | 1.0000 | 1.0000 | |
| 1.25000 | 0.495 | 1876072.8 | 1.0000 | 1.0000 | |
| 2.50000 | 0.501 | 1084506.7 | 1.0000 | 1.0000 | |
| 5.00000 | 0.504 | 376046.8 | 1.0000 | 1.0000 |
| Task | Profiles | Draws | Final evaluations | Pilot evaluations | |
|---|---|---|---|---|---|
| SST-2 | 33,000 | 23 | 1024 | 777,216,000 | 1,605,632 |
| QNLI | 70,000 | 23 | 1024 | 1,648,640,000 | 1,605,632 |
Bayesian LoRA
Bayesian low-rank adaptation (LoRA) adds probabilistic parameter-efficient updates to estimate uncertainty while fine-tuning large models.
See all 17 papers