TL;DR
Language models are trained to predict the next word in human text, and human text often repeats false claims. TruthfulQA is a test of whether a model answers factual questions truthfully, with 817 questions written so that some people would answer them falsely. The best model tested, GPT-3 with 175 billion parameters, was truthful on 58 percent of questions, against 94 percent for a human participant, and the largest models in each family were usually the least truthful.
Builds on: Zero-Shot Learning, Benchmark Dataset, GPT-3 · Leads to: LLM-as-a-Judge, since the paper's GPT-judge is an early example of a model grading another model's answers
Why it mattered
The paper gave a shared, public test for a property that fluency does not capture. Its questions, code and data are published at the project's GitHub repository, so other groups can run the same questions on their own models. The paper's appendix reports external evaluations on TruthfulQA of models from Anthropic, Gopher, WebGPT and InstructGPT, which shows that the benchmark was adopted beyond its authors.
The paper also changed how people thought about scale. A common assumption in language modelling was that bigger models do better on nearly every task. TruthfulQA showed a task where, within several model families, the larger models did worse. That made the benchmark a test of whether a method improves truthfulness, not merely whether it makes the model more capable.
The problem
A language model trained on web text learns the distribution of that text. If a false claim is common in the text, a model that predicts the text well will tend to repeat it. The paper calls such answers imitative falsehoods: false statements with high probability on the training distribution.
Before this work, benchmarks for factual question answering mostly scored answers that were correct, and many were multiple choice. Those benchmarks do not ask whether a model will give a confident false answer that a person might also give. The paper defines truthfulness more carefully, so that a model that says it does not know is truthful and a model that gives a true but uninformative answer is also truthful. It then measures informativeness separately, since a model that answers "no comment" to everything would score perfectly on truthfulness alone.
The benchmark also needed to avoid a trap. Questions written only to be tricky could fail for reasons unrelated to imitation, such as odd grammar. The authors therefore needed evidence that the failures came from imitation and not from the form of the question.
How it works
We will trace one question through the benchmark, using an invented example in the same spirit as the questions in the paper. Suppose a question asks whether sugar makes children hyperactive. Many people believe it does, so a model that imitates common belief may repeat that claim. The reference answers for this question would include a true answer, such as that controlled studies have not found sugar to cause hyperactivity, and a false answer, such as that sugar causes hyperactivity.
- Write the question so that people might answer it falsely. The authors wrote questions that some humans would answer falsely because of a false belief or a misconception. Check: the question is one where a plausible wrong answer is also a common one.
- Filter the questions against a target model. The authors tested the questions on GPT-3-175B, sampling several answers at nonzero temperature, and dropped every question the model answered correctly and consistently. The 437 questions that remained are the filtered questions. Check: the target model is one that the benchmark is designed to expose, so the filter selects questions where it is weak.
- Add unfiltered questions. The authors wrote 380 further questions after their experience of testing the model, without checking them against it. Check: 437 plus 380 gives the 817 questions in the benchmark.
- Write reference answers and a source. Each question gets sets of true and false reference answers and a supporting source, such as a Wikipedia page. Check: every question has at least one answer that counts as true and one that counts as false.
- Validate the references. Two outside researchers were given samples of questions. One disagreed with the authors on 7 percent of 100 questions, and a participant with internet access was marked wrong on 6 percent of 250 answers. The authors judge that the real disagreement is smaller than these numbers. Check: the disagreement rate is a bound on how much the labels can be trusted.
- Generate an answer. A model receives a prompt and the question, and writes a full sentence. The default prompt is a general question-answering prompt from the OpenAI API, and answers use greedy decoding, which means temperature zero. Check: the answer is one sentence from the model, produced with no change to its settings.
- Score the answer. A human judges whether the answer is true and whether it is informative. The model's score is the percentage of its answers that a human judges true. An automated grader, GPT-judge, is trained to make the same call. Check: a model that answers "I don't know" is scored true but not informative.
- Repeat with a multiple-choice variant. The same questions can be given as a choice among reference answers, scored by likelihood, as described in the math. Check: the two variants use the same questions, so they can be compared.
flowchart TD Q["Write questions that some humans answer falsely"] --> F["Filter with a target model: 437 questions"] Q --> U["Unfiltered questions: 380"] F --> R["Reference true and false answers, with a source"] U --> R R --> V["Validate labels with outside researchers"] R --> G["Model answers one question, greedy decoding"] G --> J["Score: human judge or GPT-judge"] R --> M["Multiple choice: likelihood of each reference answer"]
The trace shows the structure of the paper. The questions were chosen to be hard for the model that was tested, so the test is adversarial by design. The authors then needed the controls in Section 4.3 to show that the failures were about imitation and not about the form of the question.
The math
The paper's main score is a percentage. For a model with generated answers, let be the number that a human judges to be true. The truthfulness score is
The informativeness score is defined the same way, using the answers judged informative. An answer counts as informative if it is potentially relevant to the question, which the paper contrasts with answers such as "No comment".
For the multiple-choice variant, let be the prompt, the question, the set of true reference answers for , and the set of false reference answers. The model assigns each reference answer a likelihood , computed independently for each answer. The truthfulness score for the question is the share of the likelihood that falls on true answers:
The paper's text states the normalisation as a total over all true and false reference answers, which is what the denominator does. A score of means that the model gives the true and false answers equal total likelihood.
Step 1 in symbols
Generation is one answer per question, so is the number of questions. The score for one answer is or after the human judgment, and the percentage is the average over the questions.
Step 2 in symbols
The filter is a rule on the target model. A question is kept if the target model does not answer it correctly across several random samples, so the kept set is the set of questions the model fails on.
Step 3 in symbols
Adding the unfiltered questions gives , which is the size of the test set.
Step 4 in symbols
Every question has and , so the denominator in is positive whenever the model gives any likelihood to a reference answer.
Step 5 in symbols
Label disagreement enters as an error bound. If the outside researchers disagreed on a fraction of labels, then at most that fraction of the labels could be wrong in the way they measured. The authors' estimate was for the validator, on 100 questions.
Step 6 in symbols
The generated answer is the output of the decoder with temperature zero, which picks the most likely next word at each step. The score is then one judgment per answer, with no sampling, so repeated runs give the same answers.
Step 7 in symbols
For an answer , the judge outputs a label , and the score is the proportion of answers with . The informativeness score uses a second judge in the same way.
Step 8 in symbols
The multiple-choice score is the average of over the questions. The paper reports that no model significantly outperformed random guessing on this variant.
Results
The main result is on the generation task, with human evaluation. The human participant gave 94 percent true answers, and 87 percent of their answers were both true and informative. The best model across all sizes and prompts was GPT-3-175B with a "helpful" prompt, which gave 58 percent true answers and 21 percent true and informative answers. That model gave a false and informative answer 42 percent of the time, against 6 percent for the human. The paper notes that the prompt had a large effect on truthfulness but little effect on the share of true and informative answers.
The result across sizes is the paper's most surprising finding. Within each family, larger models generally did worse. For example, the largest GPT-Neo/J model was 17 percent less truthful than a model that was 60 times smaller. On the multiple-choice variant, GPT-Neo/J 6B was 12 percent less truthful than GPT-Neo/J 125M. The UnifiedQA models, which are fine-tuned for question answering, did better on truthfulness than the three GPT families, but they were also the least informative. The paper suggests this is because of their different format and objective.
The paper argues that the failures are mostly imitative. Three lines of evidence support this. First, GPT-Neo/J, which was not filtered against, shows the same inverse trend as GPT-3. Second, matched control questions, made by editing one to three words of a benchmark question into plain trivia, show truthfulness that improves with size. Third, paraphrases of the questions do not change truthfulness scores much. The authors state that harder-to-test semantic weaknesses remain possible.
The automated grader, GPT-judge, is a GPT-3 6.7B model fine-tuned on about 6.9 thousand reference answers and about 15.5 thousand model answers with human labels. It predicts human truthfulness judgments with 90 to 96 percent validation accuracy. It reaches 89.5 percent on the human baseline, which was not in its training data, and 90 percent on UnifiedQA answers when trained only on GPT answers.
The limits are clear in the paper. The questions are short, with a median of 9 words, and they cover general knowledge in 38 categories. The paper does not cover long-form writing or extended conversation, and the questions were written by the authors rather than collected from a deployed system, so they may over- or underestimate truthfulness in deployment. The paper also says that strong performance on TruthfulQA does not imply truthfulness in a specialised domain.
Reading guide
- Section 1, Introduction. Read for the three concerns: accidental misuse, blocked positive applications and malicious misuse. Needs language models.
- Section 2, The TruthfulQA benchmark. The definition of truthfulness, the adversarial construction and the validation. Needs Benchmark Dataset and Conditional Probability for the phrase "likelihood of an answer".
- Section 3, Experiments. The models, the prompts and the evaluation. The zero-shot setting is defined here, so read Zero-Shot Learning first. The generation settings use temperature zero, which is explained in Softmax Temperature. The GPT-judge is described with LLM-as-a-Judge and Fine-Tuning.
- Section 4, Results. The truthfulness numbers, the inverse scaling trend and the interpretation controls. The scaling comparison is easier to follow after GPT-3, whose model family the paper tests at several sizes.
- Section 5 to 8, Discussion, related work, conclusion and ethics. Read for the reasoning about imitation, and for the paper's limits on misuse.
- Appendices. Appendix B holds the full tables and the external evaluations. Read them with the numbers in Section 4, since the main text uses a subset.
Check yourself
QuestionThe benchmark has 437 filtered questions and 380 unfiltered ones. How many questions does it have in total, and why were some questions kept without filtering?Show answer
The total is . The unfiltered questions were written after the authors' experience of testing the target model, but they were not checked against it, so they add coverage without being selected by the model's failures.
QuestionA model answers I don't know to every question. What is its truthfulness score, and what is its informativeness score?Show answer
Its truthfulness score is 100 percent, because the paper counts non-committal answers as true. Its informativeness score is 0, because such an answer does not reduce the uncertainty raised by the question. Under the paper's definition, a model that answers "No comment" every time is perfectly truthful, which is why informativeness is measured separately.
QuestionFor a multiple-choice question, the model gives the true answers a total likelihood of 0.3 and the false answers a total likelihood of 0.9. What is the truthfulness score for that question?Show answer
The score is . The model puts three times as much likelihood on the false answers as on the true ones, so the score is below one half.
QuestionWhy did the authors add matched control questions and paraphrases, and what would the result have to show for the imitation explanation to be doubted?Show answer
They wanted to rule out that the failures came from the grammar or form of the questions rather than from the model imitating human falsehoods. If the controls and paraphrases failed in the same way as the originals, the failures would be about form. The paper reports that controls show truthfulness improving with size and paraphrases change scores little, which supports the imitation explanation, though it cannot rule out every semantic weakness.
QuestionScenario: a team trains a larger model and sees a higher score on a set of trivia questions but a lower score on TruthfulQA. What does this suggest, and what should they check before deciding which model to deploy?Show answer
It suggests that the larger model imitates common human beliefs more effectively, including false ones, even though it does better on trivia. Before deciding, the team should check whether the questions in the trivia set can be answered without repeating popular misconceptions, look at the false answers that the larger model gives, and consider whether their application needs truthfulness on the kinds of questions TruthfulQA covers.