Skip to main content
QUICK REVIEW

[Paper Review] Conformal Prediction with Large Language Models for Multi-Choice Question Answering

Bhawesh Kumar, Charlie Lu|arXiv (Cornell University)|May 28, 2023
Topic ModelingComputer Science14 citations
TL;DR

The paper adapts conformal prediction to MCQA with LLaMA-13B, showing coverage guarantees and useful uncertainty for selective classification, and examines exchangeability across tasks.

ABSTRACT

As large language models continue to be widely developed, robust uncertainty quantification techniques will become crucial for their safe deployment in high-stakes scenarios. In this work, we explore how conformal prediction can be used to provide uncertainty quantification in language models for the specific task of multiple-choice question-answering. We find that the uncertainty estimates from conformal prediction are tightly correlated with prediction accuracy. This observation can be useful for downstream applications such as selective classification and filtering out low-quality predictions. We also investigate the exchangeability assumption required by conformal prediction to out-of-subject questions, which may be a more realistic scenario for many practical applications. Our work contributes towards more trustworthy and reliable usage of large language models in safety-critical situations, where robust guarantees of error rate are required.

Motivation & Objective

  • Motivate robust uncertainty quantification for LLMs in high-stakes MCQA tasks.
  • Adapt conformal prediction to produce prediction sets with guaranteed coverage for MCQA outputs.
  • Assess how conformal uncertainty correlates with accuracy and can enable selective classification.
  • Evaluate the impact of exchangeability assumptions on coverage when calibration data differ from evaluation data.

Proposed method

  • Frame MCQA as a supervised classification task using four options (A-D) and compute logits for each option with LLaMA-13B.
  • Convert logits to softmax probabilities and generate ten prompts per subject to obtain multiple probability outputs per question.
  • Apply conformal prediction with least ambiguous set-valued classifiers (LAC) to calibrate a threshold q_alpha for target coverage.
  • Construct prediction sets C(X) = {y : S(X,y) ≤ q_alpha} to guarantee user-specified coverage under exchangeability.
  • Experiment with random calibration/evaluation splits across 16 subjects grouped into business, medicine, and computer science.
  • Compare conformal prediction to naive top-k predictions and analyze set-size vs. accuracy relationships.
Figure 1 : LLaMA MCQA accuracy is similar for GPT-4 generated questions and real MMLU questions across subjects. For most MMLU subjects, prediction accuracy using one-shot GPT-4 generated questions is similar to when actual MMLU questions are used in one-shot prompts. Results are averaged over ten r
Figure 1 : LLaMA MCQA accuracy is similar for GPT-4 generated questions and real MMLU questions across subjects. For most MMLU subjects, prediction accuracy using one-shot GPT-4 generated questions is similar to when actual MMLU questions are used in one-shot prompts. Results are averaged over ten r

Experimental results

Research questions

  • RQ1Does conformal prediction provide valid coverage guarantees for MCQA tasks using LLMs?
  • RQ2How does the conformal prediction uncertainty (prediction set size) relate to actual accuracy across different subjects?
  • RQ3Can conformal prediction support selective classification by filtering high-uncertainty predictions?
  • RQ4How does violating exchangeability between calibration and evaluation data affect coverage guarantees?
  • RQ5What is the calibration state of naive softmax outputs in LLM MCQA before applying conformal calibration?

Key findings

  • Conformal prediction achieves the desired coverage (e.g., 90% at alpha = 0.1) across all subjects.
  • Prediction set size correlates negatively with top-1 accuracy, enabling selective classification by filtering uncertain cases.
  • Prediction sets produced by conformal prediction adapt in size across inputs, maintaining coverage more reliably than fixed-size top-k sets.
  • Calibrating on one subject and evaluating on a different subject can reduce coverage when subjects are from dissimilar domains, highlighting the exchangeability limitation.
  • Naive softmax calibration is reasonably good on average but exhibits under- and over-confidence at tail distributions, justifying the conformal calibration step.
Figure 2 : The accuracy distribution across subjects for ten prompts. We plot the distribution of accuracy for ten different one-shot prompts.
Figure 2 : The accuracy distribution across subjects for ten prompts. We plot the distribution of accuracy for ten different one-shot prompts.

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.