在流形上建模参数不确定性,让小模型微调更可靠。
Calibrated Adaptation: Bayesian Stiefel Manifold Priors for Reliable Parameter-Efficient Fine-Tuning
- 用流形上的马尔可夫先验替代传统正态分布,天然保证子空间正交性。
- 在多个基准测试中,校准误差降低18%至34%,域外检测性能优于五模型集成。
- 适合需要可信不确定性的场景,如医疗、金融等高风险应用。
参数高效微调(PEFT)方法如LoRA虽能实用地适配大模型,但缺乏合理的不确定性估计,导致域偏移下预测不可靠。本文提出Stiefel-Bayes适配器(SBA),在斯特费尔流形$\ ext{St}$上对正交适配因子施加矩阵兰金先验,并通过切空间拉普拉斯近似与测地线回缩实现近似后验推断。相比将高斯先验投影到正交约束的平面方法,该流形先验自然编码了子空间应良好条件化且正交的归纳偏置,后验提供校准的预测不确定性而无需再校准。理论证明切空间近似严格避免了从环境空间投影带来的结构方差膨胀,确立了内在流形推断的严格优势。在RoBERTa-large、LLaMA-2-7B、LLaMA-2-13B、Mistral-7B和Qwen2.5-7B上,基于GLUE与SuperGLUE基准、域偏移评估、选择性预测协议及摘要任务的实验表明,SBA性能媲美LoRA和DoRA,预期校准误差(ECE)比确定性基线降低18%至34%,域偏移下选择性预测的AUROC提升12%至25%,且以极低参数代价超越五个LoRA模型的深度集成在域外检测上的表现。结果表明,不确定性建模的几何结构选择比简单添加贝叶斯处理更为关键。
原文摘要 · Abstract (English)
Parameter-efficient fine-tuning methods such as LoRA enable practical adaptation of large language models but provide no principled uncertainty estimates, leading to poorly calibrated predictions and unreliable behavior under domain shift. We introduce Stiefel-Bayes Adapters (SBA), a Bayesian PEFT framework that places a Matrix Langevin prior over orthonormal adapter factors on the Stiefel manifold $\St$ and performs approximate posterior inference via tangent space Laplace approximation with geodesic retraction. Unlike Gaussian priors in flat space projected onto orthogonality constraints, our prior on the manifold naturally encodes the inductive bias that adapter subspaces should be well conditioned and orthogonal, while the posterior provides calibrated predictive uncertainty without recalibration. We prove formally that the tangent space approximation strictly avoids the structural variance inflation inherent in projecting from ambient space, establishing a rigorous theoretical advantage for intrinsic manifold inference. Across GLUE and SuperGLUE benchmarks on RoBERTa-large, LLaMA-2-7B, LLaMA-2-13B, Mistral-7B, and Qwen2.5-7B, domain shift evaluations, selective prediction protocols, and an abstractive summarization task, SBA achieves task performance comparable to LoRA and DoRA while reducing Expected Calibration Error by 18 to 34\% over deterministic baselines, improving selective prediction AUROC by 12 to 25\% under domain shift, and outperforming deep ensembles of five LoRA models on OOD detection at a fraction of the parameter cost. Our results demonstrate that where you place uncertainty, on the right geometric structure, matters more than simply adding any Bayesian treatment to adapters.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。