Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systems
Not on the map. Why?
Abstract (arXiv)
Although large language models (LLMs) are becoming increasingly capable of solving challenging real-world tasks, accurately quantifying their uncertainty remains a critical open problem--one that 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.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 57 of its 83 references that are in the map. First posted on arXiv 11 Jun 2025.
Builds on
57 of 83 references.
References · 57
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Language Models (Mostly) Know What They Knowcited by 1,856
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
38 more
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
- 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,282
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 900
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
- 2025Agent Laboratory: Using LLM Agents as Research Assistantscited by 425
- 2025The AI Scientist-v2: Workshop-Level Automated Scientific Discovery via Agentic Tree Searchcited by 422
- 2024Measuring short-form factuality in large language modelscited by 373
- 2021Laplace Redux -- Effortless Bayesian Deep Learningcited by 365
- 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 332
- 2021What Are Bayesian Neural Network Posteriors Really Like?cited by 308
- 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 293
- 2020Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networkscited by 231
- 2024Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similaritiescited by 159
- 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 157
- 2023Emergent autonomous scientific research capabilities of large language modelscited by 132
- 2024Language Models with Conformal Factuality Guaranteescited by 131
- 2024HelpSteer2-Preference: Complementing Ratings with Preferencescited by 130
- 2021Bayesian Neural Network Priors Revisitedcited by 121
- 2024To Believe or Not to Believe Your LLMcited by 120
- 2023Bayesian Low-rank Adaptation for Large Language Modelscited by 115
- 2023Decomposing Uncertainty for Large Language Models through Input Clarification Ensemblingcited by 114
- 2023A Confederacy of Models: a Comprehensive Evaluation of LLMs on Creative Writingcited by 99
- 2024On Verbalized Confidence Scores for LLMscited by 83
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 69
- 2023LoRA ensembles for large language model fine-tuningcited by 67
- 2024SPUQ: Perturbation-Based Uncertainty Quantification for Large Language Modelscited by 56
- 2020A statistical theory of cold posteriors in deep neural networkscited by 54
- 2023Knowing What LLMs DO NOT Know: A Simple Yet Effective Self-Detection Methodcited by 51
- 2022On Uncertainty, Tempering, and Data Augmentation in Bayesian Classificationcited by 46
- 2024Uncertainty Quantification for In-Context Learning of Large Language Modelscited by 45
- 2021Data augmentation in Bayesian neural networks and the cold posterior effectcited by 36
- 2024Improving Uncertainty Quantification in Large Language Models via Semantic Embeddingscited by 30
- 2024Characterizing LLM Abstention Behavior in Science QA with Context Perturbationscited by 26
- 2021Disentangling the Roles of Curation, Data-Augmentation and the Prior in the Cold Posterior Effectcited by 22
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2025Don't Pass@k: A Bayesian Framework for Large Language Model Evaluationcited by 15
- 2026Conformal Agent Error Attributioncited by 4
- 2026Towards Generation-Efficient Uncertainty Estimation in Large Language Modelscited by 2
- 2025Sequential Bayesian Evaluation of Large Language Model Behaviorcited by 1
- 2026RankJudge: A Multi-Turn LLM-as-a-Judge Synthetic Benchmark Generatorcited by 1
- 2026Conf-Gen: Conformal Uncertainty Quantification for Generative Modelscited by 1
- 2026Agentic Monte Carlo: Simulating Reinforcement Learning for Black-Box Agentscited by 1
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levelscited by 0
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levels24 Aug 2026
- 2026Agentic Monte Carlo: Simulating Reinforcement Learning for Black-Box Agents3 Jun 2026
- 2026Conf-Gen: Conformal Uncertainty Quantification for Generative Models27 May 2026
- 2026RankJudge: A Multi-Turn LLM-as-a-Judge Synthetic Benchmark Generator20 May 2026
- 2026Conformal Agent Error Attribution7 May 2026
- 2026Towards Generation-Efficient Uncertainty Estimation in Large Language Models7 May 2026
- 2025Sequential Bayesian Evaluation of Large Language Model Behavior4 Nov 2025
- 2025Don't Pass@k: A Bayesian Framework for Large Language Model Evaluation5 Oct 2025