Abstract
Large Language Models (LLMs) often struggle with self-calibration, frequently assigning high confidence to incorrect or hallucinated outputs. While sequence-level likelihood is a poor predictor of truth, LLMs demonstrate significant precision in token-level tasks. This paper explores reframing open-ended generation as a self-evaluation task—utilizing multiple-choice and binary formats—to improve "selective generation," allowing models to accurately abstain from answering when they are likely to be incorrect.
Introduction
The reliability of Large Language Models is often undermined by their inability to signal uncertainty. Ideally, an LLM should perform "selective generation": providing an answer when confident and saying "I don't know" when the risk of error is high. Traditionally, researchers have relied on sequence likelihood—the cumulative probability a model assigns to its generated text—as a proxy for confidence. However, sequence likelihood is notoriously unreliable, often biased by sentence length and poorly correlated with factual accuracy.
This research identifies a critical "calibration gap." While LLMs are poorly calibrated at the sequence level, they are remarkably well-calibrated at the token level. For instance, when presented with a multiple-choice question, the probability a model assigns to specific tokens (e.g., A, B, C, or D) often reflects its actual likelihood of being correct. This paper proposes methods to bridge this gap by converting open-ended generation into a structured self-evaluation framework.
Methodology
The authors propose three primary strategies to leverage token-level calibration for evaluating free-form text:
- Sample and Select: The model generates $n$ candidate answers. These candidates are then presented back to the model as a multiple-choice question (e.g., "Which of these is correct? A, B, C, or D"). The confidence score is derived from the probability assigned to the selected option.
- Sample and Eval: After generating a single answer, the model is asked a binary follow-up: "Is the above answer correct? A) Yes B) No." The probability of the "Yes" token serves as the confidence metric.
- Hybrid Approach: This combines the two methods. The model first uses "Sample and Select" to identify the best candidate from a generated batch, then applies "Sample and Eval" to generate a final confidence score for that specific selection.
Key Innovations
- "None of the Above" (NOTA): A critical addition to the "Sample and Select" phase. By including a NOTA option, the model is not forced to choose the "least bad" hallucination. This provides a necessary safety valve that significantly improves the reliability of the resulting confidence scores.
- De-biasing: To mitigate "position bias"—where models favor the first or last options in a list—the researchers implemented a "shuffle and average" technique during the evaluation phase.
Experimental Setup
The methods were evaluated using two distinct benchmarks:
- TRUTHFULQA: 817 questions designed to elicit common human misconceptions and falsehoods.
- TL;DR: A summarization dataset based on Reddit content, testing the model's ability to evaluate subjective quality and conciseness.
The experiments were conducted using PaLM-2 Large and GPT-3 (text-davinci-003).
Results and Discussion
The Failure of Likelihood
Initial results confirmed that raw sequence likelihood is a deceptive metric. On the TruthfulQA dataset using PaLM-2, sequence likelihood showed a negative correlation with correctness, resulting in a Calibration-AUC of 39.8%. Essentially, the model was more likely to assign high probability to its own errors than to its correct statements.
Reframing for Success
By reframing the task as a multiple-choice evaluation, performance improved dramatically. The Hybrid method with NOTA achieved a Calibration-AUC of 75.34% on TruthfulQA, nearly doubling the effectiveness of standard likelihood metrics. This suggests that the model "knows" the truth internally but cannot express it through standard generation probabilities.
Selective Generation and Abstention
The practical application of these scores is seen in selective generation. When the model was programmed to abstain from the bottom 20% of its lowest-confidence answers, the accuracy of the remaining outputs increased significantly. The self-evaluation scores produced a much steeper improvement curve than likelihood-based scores, demonstrating their utility in high-stakes environments where accuracy is paramount.
Conclusion and Future Work
This research demonstrates that LLMs possess a latent ability to evaluate their own accuracy, provided the task is framed correctly. By moving from sequence-level probabilities to token-level self-evaluation, we can create models that are significantly better at knowing when to remain silent.
However, these improvements come with a trade-off in inference cost. These methods require multiple sampling passes and additional evaluation steps, potentially tripling the computational cost per query. Furthermore, the reliance on log-probabilities (logits) presents a challenge for users of closed APIs that do not provide such data. Future research should focus on integrating these calibration benefits directly into the training or Reinforcement Learning from Human Feedback (RLHF) phases to reduce the need for expensive post-hoc evaluation loops.
Summary updated