Uncertainty Quantification of Large Language Models using Approximate Bayesian Computation

Mridul Sharma, Adeetya Patel, Zaneta D' Souza, Samira Abbasgholizadeh Rahimi, Siva Reddy +1 more
9/19/2025
cs.LGcs.AIstat.ML

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Despite their widespread applications, Large Language Models (LLMs) often struggle to express uncertainty, posing a challenge for reliable deployment in high stakes and safety critical domains like clinical diagnostics. Existing standard baseline methods such as model logits and elicited probabilities produce overconfident and poorly calibrated estimates. In this work, we propose Approximate Bayesian Computation (ABC), a likelihood-free Bayesian inference, based approach that treats LLMs as a stochastic simulator to infer posterior distributions over predictive probabilities. We evaluate our ABC approach on two clinically relevant benchmarks: a synthetic oral lesion diagnosis dataset and the publicly available GretelAI symptom-to-diagnosis dataset. Compared to standard baselines, our approach improves accuracy by up to 46.9\%, reduces Brier scores by 74.4\%, and enhances calibration as measured by Expected Calibration Error (ECE) and predictive entropy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sharma2025uncertainty,
  title  = {Uncertainty Quantification of Large Language Models using Approximate Bayesian Computation},
  author = {Mridul Sharma and Adeetya Patel and Zaneta D' Souza and Samira Abbasgholizadeh Rahimi and Siva Reddy and Sreenath Madathil},
  year   = {2025},
  eprint = {2509.19375},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.19375v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.19375.svg)](https://codeofpaper.com/paper/2509.19375)

Discussion