Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking LLMs via Uncertainty Quantification

Fanghua Ye, Mingming Yang|arXiv (Cornell University)|Jan 23, 2024
Topic ModelingComputer Science8 citations
TL;DR

The paper introduces an uncertainty-aware benchmarking framework for open-source LLMs using conformal prediction, yielding a new metric UAcc that blends accuracy and uncertainty.

ABSTRACT

The proliferation of open-source Large Language Models (LLMs) from various institutions has highlighted the urgent need for comprehensive evaluation methods. However, current evaluation platforms, such as the widely recognized HuggingFace open LLM leaderboard, neglect a crucial aspect -- uncertainty, which is vital for thoroughly assessing LLMs. To bridge this gap, we introduce a new benchmarking approach for LLMs that integrates uncertainty quantification. Our examination involves nine LLMs (LLM series) spanning five representative natural language processing tasks. Our findings reveal that: I) LLMs with higher accuracy may exhibit lower certainty; II) Larger-scale LLMs may display greater uncertainty compared to their smaller counterparts; and III) Instruction-finetuning tends to increase the uncertainty of LLMs. These results underscore the significance of incorporating uncertainty in the evaluation of LLMs.

Motivation & Objective

  • Motivate the need to evaluate LLMs with uncertainty in addition to accuracy.
  • Propose an uncertainty quantification method based on conformal prediction for LLMs.
  • Benchmark eight open-source LLMs across five NLP tasks using MCQA reformulation.
  • Introduce and validate the Uncertainty-aware Accuracy (UAcc) metric.

Proposed method

  • Convert five NLP tasks into multiple-choice questions to obtain per-option softmax scores from LLMs.
  • Apply conformal prediction with two conformal scores (LAC and APS) to produce prediction sets with a coverage guarantee.
  • Compare base pretrained and instruction-finetuned LLM variants under three prompting strategies (Base, Shared Instruction, Task-specific Instruction).
  • Evaluate using Accuracy (Acc), Set Size (SS), and Uncertainty-aware Accuracy (UAcc) defined as Acc/SS * sqrt(|Y|).
  • Investigate effects of model scale, instruction finetuning, and calibration data share on uncertainty and performance.
Figure 1: An illustration of two LLMs accurately predicting the true answer (with option A possessing the highest probability), but showing different levels of uncertainty. Note that when both LLMs predict a wrong answer, they may also display different uncertainties.
Figure 1: An illustration of two LLMs accurately predicting the true answer (with option A possessing the highest probability), but showing different levels of uncertainty. Note that when both LLMs predict a wrong answer, they may also display different uncertainties.

Experimental results

Research questions

  • RQ1How does uncertainty, quantified via conformal prediction, relate to traditional accuracy across diverse LLMs?
  • RQ2Does larger model size increase or decrease uncertainty in practical benchmarks?
  • RQ3How does instruction-finetuning affect accuracy, uncertainty, and the proposed UAcc metric?
  • RQ4Can UAcc alter the relative ranking of LLMs compared to accuracy alone?
  • RQ5What is the impact of calibration data proportion on uncertainty quantification?

Key findings

  • Higher accuracy LLMs may exhibit higher uncertainty in practice.
  • Larger-scale LLMs can display greater uncertainty than smaller ones in some tasks.
  • Instruction-finetuning tends to increase uncertainty.
  • The UAcc metric can amplify or dampen relative improvements and may change rankings.
  • Calibration data proportion shows little effect on coverage, SS, and UAcc in their setup.
Figure 2: The overall process of applying conformal prediction for uncertainty quantification in LLMs. (a) Five distinct tasks are considered, and a dataset comprising 10,000 instances is prepared for each task. (b) Each data instance is transformed into a multiple-choice question, and eight LLMs (L
Figure 2: The overall process of applying conformal prediction for uncertainty quantification in LLMs. (a) Five distinct tasks are considered, and a dataset comprising 10,000 instances is prepared for each task. (b) Each data instance is transformed into a multiple-choice question, and eight LLMs (L

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.