paper-with-me

홈 › Papers

Textual Bayes: Quantifying Uncertainty in LLM-Based Systems

2025-06-11 · Brendan Leigh Ross, Noël Vouitsis, Atiyeh Ashari Ghomi, Rasa Hosseinzadeh, Ji Xin, Zhaoyan Liu, Yi Sui, Shiyi Hou, Kin Kwan Leung, Gabriel Loaiza-Ganem, Jesse C. Cresswell

Although large language models (LLMs) are becoming increasingly capable of solving challenging real-world tasks, accurately quantifying their uncertainty remains a critical open problem, which limits their applicability in high-stakes domains. This challenge is further compounded by the closed-source, black-box nature of many state-of-the-art LLMs. Moreover, LLM-based systems can be highly sensitive to the prompts that bind them together, which often require significant manual tuning (i.e., prompt engineering). In this work, we address these challenges by viewing LLM-based systems through a Bayesian lens. We interpret prompts as textual parameters in a statistical model, allowing us to use a small training dataset to perform Bayesian inference over these prompts. This novel perspective enables principled uncertainty quantification over both the model's textual parameters and its downstream predictions, while also incorporating prior beliefs about these parameters expressed in free-form text. To perform Bayesian inference, a difficult problem even for well-studied data modalities, we introduce Metropolis-Hastings through LLM Proposals (MHLP), a novel Markov chain Monte Carlo (MCMC) algorithm that combines prompt optimization techniques with standard MCMC methods. MHLP is a turnkey modification to existing LLM pipelines, including those that rely exclusively on closed-source models. Empirically, we demonstrate that our method yields improvements in both predictive accuracy and uncertainty quantification (UQ) on a range of LLM benchmarks and UQ tasks. More broadly, our work demonstrates a viable path for incorporating methods from the rich Bayesian literature into the era of LLMs, paving the way for more reliable and calibrated LLM-based systems.

📄 PDF Abstract BibTeX arXiv:2506.10060

Code (0)

등록된 구현이 없습니다.

Tasks

Bayesian InferencePrompt EngineeringUncertainty Quantification

Similar Papers 제목 키워드 기반

Bayesian Spillover Graphs for Dynamic Networks

2022-03-03 · Grace Deng, David S. Matteson

We present Bayesian Spillover Graphs (BSG), a novel method for learning temporal relationships, identifying critical nodes, and quantifying uncertainty for multi-horizon spillover effects in a dynamic system. BSG leverag…

Time SeriesTime Series AnalysisUncertainty Quantification

Affine Invariant Ensemble Transform Methods to Improve Predictive Uncertainty in Neural Networks

2023-09-09 · Diksha Bhandari, Jakiw Pidstrigach, Sebastian Reich

We consider the problem of performing Bayesian inference for logistic regression using appropriate extensions of the ensemble Kalman filter. Two interacting particle systems are proposed that sample from an approximate p…

Bayesian Inferenceregression

Uncertainty Quantification and Data Efficiency in AI: An Information-Theoretic Perspective

2025-12-04 · Osvaldo Simeone, Yaniv Romano arxiv

In context-specific applications such as robotics, telecommunications, and healthcare, artificial intelligence systems often face the challenge of limited training data. This scarcity introduces epistemic uncertainty, i.…

Data Augmentation

Bayesian NeRF: Quantifying Uncertainty with Volume Density for Neural Implicit Fields

2024-04-10 · Sibeak Lee, Kyeongsu Kang, Seongbo Ha, Hyeonwoo Yu

We present a Bayesian Neural Radiance Field (NeRF), which explicitly quantifies uncertainty in the volume density by modeling uncertainty in the occupancy, without the need for additional networks, making it particularly…

NeRFSimultaneous Localization and Mapping

Quantifying uncertainty with GAN-based priors

2019-09-25 · Dhruv V. Patel, Assad A. Oberai

Bayesian inference is used extensively to quantify the uncertainty in an inferred field given the measurement of a related field when the two are linked by a mathematical model. Despite its many applications, Bayesian in…

Bayesian InferenceGenerative Adversarial Network