Large Language Models Must Be Taught to Know What They Don't Know

Sanyam Kapoor, Nate Gruver, Manley Roberts, Katherine Collins, Arka Pal +5 more
6/12/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: activatedgeek/calibration-tuning (53 stars, Apache-2.0, last commit 2025-04-09).

Abstract

When using large language models (LLMs) in high-stakes applications, we need to know when we can trust their predictions. Some works argue that prompting high-performance LLMs is sufficient to produce calibrated uncertainties, while others introduce sampling methods that can be prohibitively expensive. In this work, we first argue that prompting on its own is insufficient to achieve good calibration and then show that fine-tuning on a small dataset of correct and incorrect answers can create an uncertainty estimate with good generalization and small computational overhead. We show that a thousand graded examples are sufficient to outperform baseline methods and that training through the features of a model is necessary for good performance and tractable for large open-source models when using LoRA. We also investigate the mechanisms that enable reliable LLM uncertainty estimation, finding that many models can be used as general-purpose uncertainty estimators, applicable not just to their own uncertainties but also the uncertainty of other models. Lastly, we show that uncertainty estimates inform human use of LLMs in human-AI collaborative settings through a user study.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
537Python, DockerfileJun 20, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{kapoor2024large,
  title  = {Large Language Models Must Be Taught to Know What They Don't Know},
  author = {Sanyam Kapoor and Nate Gruver and Manley Roberts and Katherine Collins and Arka Pal and Umang Bhatt and Adrian Weller and Samuel Dooley and Micah Goldblum and Andrew Gordon Wilson},
  year   = {2024},
  eprint = {2406.08391},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.08391},
  url    = {http://arxiv.org/abs/2406.08391v3},
  journal = {NEURIPS 2024 2024}
}

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/2406.08391.svg)](https://codeofpaper.com/paper/2406.08391)

Discussion