arXiv(opens in a new tab)cs.CLJul 2022Cited by 218 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2207.05221

Language Models (Mostly) Know What They Know

Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, Scott Johnston, Sheer El-Showk, Andy Jones, Nelson Elhage, Tristan Hume, Anna Chen, Yuntao Bai, Sam Bowman, Stanislav Fort, Deep Ganguli, Danny Hernandez, Josh Jacobson, Jackson Kernion, Shauna Kravec, Liane Lovitt, Kamal Ndousse, Catherine Olsson, Sam Ringer, Dario Amodei, Tom Brown, Jack Clark, Nicholas Joseph, Ben Mann, Sam McCandlish, Chris Olah, Jared Kaplan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Saurav Kadavath,* Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, Scott Johnston, Sheer El-Showk, Andy Jones, Nelson Elhage, Tristan Hume, Anna Chen, Yuntao Bai, Sam Bowman, Stanislav Fort, Deep Ganguli, Danny Hernandez, Josh Jacobson, Jackson Kernion, Shauna Kravec, Liane Lovitt, Kamal Ndousse, Catherine Olsson, Sam Ringer, Dario Amodei, Tom Brown, Jack Clark, Nicholas Joseph, Ben Mann, Sam McCandlish, Chris Olah, Jared Kaplan*

Anthropic

Abstract

We study whether language models can evaluate the validity of their own claims and predict which questions they will be able to answer correctly. We first show that larger models are well-calibrated on diverse multiple choice and true/false questions when they are provided in the right format. Thus we can approach self-evaluation on open-ended sampling tasks by asking models to first propose answers, and then to evaluate the probability "P(True)" that their answers are correct. We find encouraging performance, calibration, and scaling for P(True) on a diverse array of tasks. Performance at self-evaluation further improves when we allow models to consider many of their own samples before predicting the validity of one specific possibility. Next, we investigate whether models can be trained to predict "P(IK)", the probability that "I know" the answer to a question, without reference to any particular proposed answer. Models perform well at predicting P(IK) and partially generalize across tasks, though they struggle with calibration of P(IK) on new tasks. The predicted P(IK) probabilities also increase appropriately in the presence of relevant source materials in the context, and in the presence of hints towards the solution of mathematical word problems. We hope these observations lay the groundwork for training more honest models, and for investigating how honesty generalizes to cases where models are trained on objectives other than the imitation of human writing.

*Correspondence to: {saurav, jared}@anthropic.com Author contributions are listed at the end of the paper.

Contents

1 Introduction 3
1.1 Contributions 4
1.2 Models and Evaluation Tasks 5
1.3 Related Work 6

2 Larger Models are Calibrated on Diverse Multiple Choice Questions 7

3 From Calibration to Knowing What You Know 8
3.1 Replacing an Option with ‘None of the Above’ Harms Performance and Calibration 8
3.2 Models are Well-Calibrated on True/False Tasks 10
3.3 RLHF Policy Miscalibration Can Be Remediated with a Temperature Tuning 11

4 Ask the AI: Is your proposed answer True or False? 11
4.1 Basic Self-Evaluation 11
4.2 Showing Many T = 1 Samples Improves Self-Evaluation 12

5 Training Models to Predict Whether They Can Answer Questions Correctly 14
5.1 Evaluating P(IK) Training and Model Size Trends 14
5.2 Out of Distribution Generalization of P(IK) 14
5.3 P(IK) Generalizes to Account for Source Materials 18
5.4 P(IK) Generalizes to Account for Hints Towards GSM8k Solutions 19
5.5 Comparing Models Trained with Distinct Pretraining Distributions 20

6 Discussion 22
6.1 Limitations and Future Work 22
6.2 Broader Impacts 23

7 Contribution Statement 23

A Metrics, Formatting Details, and P(IK) Training 24

B Discriminating What Models Know with Entropy or Loss 28

C More P(True) Evaluation Results and Details 30

D Mixed-Arithmetic and Function Synthesis Dataset Descriptions 30

Figure

Accuracy Improvement Conditioning on P(True) > 0.5

Figure 1 (left) We show the overall ability of a 52B language model to evaluate its own proposed answers (sampled at unit temperature) to questions from TriviaQA, Lambada, Arithmetic, GSM8k, and Codex HumanEval. We have weighted the overall contribution from each of these five datasets equally. We evaluate 20-shot using the method of section 4, where we show the model several of its own samples and then ask for the probability P(True) that a specific sample is correct. (right) We show the improvement in the accuracy on each sampling task when only including questions where a randomly sampled (unit temperature) response achieved P(True) > 0.5.

References (67)

Cited by (218)