Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Addressing Uncertainty in LLMs to Enhance Reliability in Generative AI

About

In this paper, we present a dynamic semantic clustering approach inspired by the Chinese Restaurant Process, aimed at addressing uncertainty in the inference of Large Language Models (LLMs). We quantify uncertainty of an LLM on a given query by calculating entropy of the generated semantic clusters. Further, we propose leveraging the (negative) likelihood of these clusters as the (non)conformity score within Conformal Prediction framework, allowing the model to predict a set of responses instead of a single output, thereby accounting for uncertainty in its predictions. We demonstrate the effectiveness of our uncertainty quantification (UQ) technique on two well known question answering benchmarks, COQA and TriviaQA, utilizing two LLMs, Llama2 and Mistral. Our approach achieves SOTA performance in UQ, as assessed by metrics such as AUROC, AUARC, and AURAC. The proposed conformal predictor is also shown to produce smaller prediction sets while maintaining the same probabilistic guarantee of including the correct response, in comparison to existing SOTA conformal prediction baseline.

Ramneet Kaur, Colin Samplawski, Adam D. Cobb, Anirban Roy, Brian Matejek, Manoj Acharya, Daniel Elenius, Alexander M. Berenbeim, John A. Pavlik, Nathaniel D. Bastian, Susmit Jha• 2024

Related benchmarks

TaskDatasetResultRank
Hallucination DetectionTriviaQA
AUROC0.9565
621
Hallucination DetectionTriviaQA (test)
AUC-ROC77
243
Hallucination DetectionHaluEval
AUROC0.8748
131
Hallucination DetectionGSM8K
AUROC62.34
115
Hallucination DetectionTruthfulQA (test)
AUC-ROC74
112
Hallucination DetectionNQ (test)
AUC ROC78
91
Hallucination DetectionCoQA
AUROC90.8
39
Hallucination DetectionTriviaQA (40% test)
AUROC82
28
Conformal Hallucination DetectionDiverse Benchmarks Aggregated (test)
R-Cov94.1
12
Probabilistic Model CalibrationTriviaQA, CoQA, and NQ
ECE0.07
12
Showing 10 of 12 rows

Other info

Follow for update