techlist.io

Calibration

3 posts

OpenAI2025-09-044 min readCurated summary

Why language models hallucinate

# Why Language Models Hallucinate OpenAI's research argues that language models hallucinate because standard training and evaluation procedures reward confident guessing over honest acknowledgment of uncertainty. Hallucinations are plausible but false statements, and they persist because accuracy-only benchmarks treat abstaining the same as a wrong answer or penalize it less. The authors conclude that the fix lies in redesigning the widely used evaluations so that they penalize confident errors and give credit for appropriate uncertainty, since hallucinations cannot be fully eliminated by accuracy gains alone. ## What Hallucinations Look Like - Hallucinations are plausible-sounding but false statements, which can appear even for simple factual questions. - In one example, a widely used chatbot gave three different, all-incorrect answers for the title of a PhD dissertation by an author of the paper, and three different wrong birthdays for the same person. - GPT-5 hallucinates significantly less than earlier models, especially when reasoning, but hallucinations still occur. ## Teaching to the Test - Accuracy-based scoring works like a multiple-choice test with no penalty for wrong answers: guessing can earn points, while "I don't know" always earns zero. - A model guessing a birthday has a 1-in-365 chance of being right, so a guessing model looks better on scoreboards than a careful model that admits uncertainty. - The SimpleQA results from the GPT-5 system card illustrate the trade-off: - gpt-5-thinking-mini: 52% abstention, 22% accuracy, 26% error rate - OpenAI o4-mini: 1% abstention, 24% accuracy, 75% error rate - o4-mini is slightly more accurate but far more error-prone. Guessing raises accuracy a little while substantially increasing hallucinations. - Accuracy caps below 100% on harder evaluations and in real use, because some questions are unanswerable due to missing information, limited model capability, or ambiguity. - Because leaderboards and model cards prioritize accuracy, developers are incentivized to build models that guess rather than abstain. ### A Better Way to Grade - Penalize confident errors more heavily than uncertainty, and award partial credit for appropriate expressions of doubt. Standardized tests have used similar methods such as negative marking for wrong answers. - The authors argue that adding a few uncertainty-aware tests is insufficient. The widely used accuracy-based benchmarks themselves need rescoring so that guessing is not rewarded. ## Where Hallucinations Come From - Pretraining teaches models to predict the next word from vast amounts of fluent text, with no true/false labels attached to statements. - Consistent patterns such as spelling and parentheses are learned well and their errors vanish with scale. Arbitrary, low-frequency facts such as a person's birthday cannot be predicted from patterns alone, so models hallucinate on them. - The authors use an analogy: classifying pet photos as cat or dog is learnable, but predicting each pet's birthday from its photo will always produce errors, regardless of algorithm sophistication. - Post-training stages are meant to remove these errors but do not fully succeed, for the evaluation reasons above. ## Common Misconceptions - **Accuracy alone will eliminate hallucinations:** A 100% accurate model is impossible in practice, since some real-world questions are inherently unanswerable. - **Hallucinations are inevitable:** They are not, because models can abstain when uncertain. - **Avoiding hallucinations requires large models:** Small models can sometimes be better at knowing their limits. A small model that knows no Māori can simply say "I don't know," whereas a model with partial knowledge must judge its own confidence. Calibration requires far less computation than accuracy. - **Hallucinations are a mysterious glitch:** The statistical mechanisms that produce and reward them are understood. - **A good hallucination eval is enough:** Published hallucination evals exist, but they have little effect while hundreds of accuracy-based benchmarks reward guessing. All primary metrics need to reward expressions of uncertainty.

OpenAI2024-10-293 min readCurated summary

Introducing SimpleQA

# SimpleQA: A Factuality Benchmark for Short, Fact-Seeking Questions OpenAI has open-sourced SimpleQA, a benchmark that measures whether language models can answer short, fact-seeking questions correctly. The authors argue that factual accuracy is a key open problem, since hallucinations limit how far models can be trusted. Their benchmark deliberately narrows the scope to short questions with single verifiable answers, which makes factuality measurable. Even frontier models struggle with it: GPT-4o scores below 40%. ## Benchmark Design - The dataset contains 4,326 questions covering topics from science and technology to TV shows and video games. - AI trainers browsed the web to write questions with single, indisputable answers that don't change over time. Most questions were chosen to induce hallucinations from GPT-4o or GPT-3.5. - A second independent trainer answered each question without seeing the original response, and only questions where both answers agreed were kept. - A third trainer re-answered a random sample of 1,000 questions and matched the original answer 94.4% of the time. Manual review attributed half the disagreements to grading or human error and half to genuine question issues, so the authors estimate the inherent error rate at about 3%. - Compared with older benchmarks like TriviaQA and NQ, which are now saturated, SimpleQA is designed to remain challenging. Its concise questions and answers also make it fast and cheap to run. ## Grading - A ChatGPT-based classifier grades each response as "correct," "incorrect," or "not attempted." - Hedged answers that include multiple candidates or incorrect information are graded as incorrect, while answers that decline to answer or direct the user elsewhere are graded as not attempted. - An ideal model maximizes correct answers while minimizing incorrect ones. ## Model Comparisons - Smaller models (gpt-4o-mini and o1-mini) answer fewer questions correctly than gpt-4o and o1-preview, likely because they have less world knowledge. - The reasoning models (o1-mini and o1-preview) choose "not attempted" more often than their counterparts, which the authors suggest reflects their ability to recognize when they don't know an answer instead of guessing. ## Calibration Measurements - **Stated confidence:** Models were asked to give a confidence percentage with each answer. Stated confidence correlates positively with accuracy, but models consistently overstate their confidence, with performance falling well below the perfect-calibration line. - **Answer consistency:** Each question was asked 100 times, and answer frequency was compared with accuracy. Accuracy rises with frequency across all models, and o1-preview is the best calibrated, with frequency roughly matching accuracy. - Larger models are better calibrated than smaller ones in both measurements, consistent with prior work. ## Limitations The authors acknowledge that SimpleQA only tests short, single-answer factual queries. It is unknown whether performance on these questions predicts accuracy in long-form responses that contain many facts. The authors invite researchers to use the benchmark and provide feedback.

OpenAI2022-05-271 min readCurated summary

Teaching models to express their uncertainty in words

GPT-3 can learn to state its uncertainty in natural language, giving a confidence level such as "90% confidence" or "high confidence" alongside its answer, without relying on model logits. These verbalized confidence levels map to well-calibrated probabilities, and the ability holds moderately well under distribution shift. The authors present this as the first demonstration of calibrated, natural-language uncertainty about a model's own answers. ## Verbalized Confidence and Calibration - Given a question, the model produces both an answer and a confidence level expressed in words. - The stated levels correspond to probabilities that are well calibrated. - The model stays moderately calibrated when the input distribution changes. - Its confidence tracks uncertainty in its own answers rather than imitating confidence patterns in human examples. ## The CalibratedMath Benchmark - The authors introduce the CalibratedMath suite of tasks to test calibration. - They compare verbalized probabilities with uncertainty extracted from the model's logits. - Both approaches generalize calibration under distribution shift. ## Why Generalization Works - The authors provide evidence that GPT-3's ability to generalize calibration depends on pre-trained latent representations. - These representations correlate with the model's epistemic uncertainty about its answers.