mlsanityData to 14 Oct 2026

Textual Bayes: Quantifying Prompt Uncertainty in LLM-Based Systems

arXiv 2506.10060 ↗First posted 11 Jun 2025cs.LG cs.AI stat.MLcited by 8

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

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  4. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  7. 2017On Calibration of Modern Neural Networkscited by 4,960
  8. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
  9. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  10. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  11. 2022Language Models (Mostly) Know What They Knowcited by 1,856
  12. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
38 more
  1. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
  2. 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,282
  3. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  4. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  5. 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 900
  6. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
  7. 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
  8. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
  9. 2025Agent Laboratory: Using LLM Agents as Research Assistantscited by 425
  10. 2025The AI Scientist-v2: Workshop-Level Automated Scientific Discovery via Agentic Tree Searchcited by 422
  11. 2024Measuring short-form factuality in large language modelscited by 373
  12. 2021Laplace Redux -- Effortless Bayesian Deep Learningcited by 365
  13. 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 332
  14. 2021What Are Bayesian Neural Network Posteriors Really Like?cited by 308
  15. 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 293
  16. 2020Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networkscited by 231
  17. 2024Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similaritiescited by 159
  18. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 157
  19. 2023Emergent autonomous scientific research capabilities of large language modelscited by 132
  20. 2024Language Models with Conformal Factuality Guaranteescited by 131
  21. 2024HelpSteer2-Preference: Complementing Ratings with Preferencescited by 130
  22. 2021Bayesian Neural Network Priors Revisitedcited by 121
  23. 2024To Believe or Not to Believe Your LLMcited by 120
  24. 2023Bayesian Low-rank Adaptation for Large Language Modelscited by 115
  25. 2023Decomposing Uncertainty for Large Language Models through Input Clarification Ensemblingcited by 114
  26. 2023A Confederacy of Models: a Comprehensive Evaluation of LLMs on Creative Writingcited by 99
  27. 2024On Verbalized Confidence Scores for LLMscited by 83
  28. 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 69
  29. 2023LoRA ensembles for large language model fine-tuningcited by 67
  30. 2024SPUQ: Perturbation-Based Uncertainty Quantification for Large Language Modelscited by 56
  31. 2020A statistical theory of cold posteriors in deep neural networkscited by 54
  32. 2023Knowing What LLMs DO NOT Know: A Simple Yet Effective Self-Detection Methodcited by 51
  33. 2022On Uncertainty, Tempering, and Data Augmentation in Bayesian Classificationcited by 46
  34. 2024Uncertainty Quantification for In-Context Learning of Large Language Modelscited by 45
  35. 2021Data augmentation in Bayesian neural networks and the cold posterior effectcited by 36
  36. 2024Improving Uncertainty Quantification in Large Language Models via Semantic Embeddingscited by 30
  37. 2024Characterizing LLM Abstention Behavior in Science QA with Context Perturbationscited by 26
  38. 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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 6.

8 papers.