NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-Evaluation Improves Selective Generation in Large Language Models

Jie Ren, Yao Zhao, Tu Vu, Peter J Liu, Balaji Lakshminarayanan

Abstract

Safe deployment of large language models (LLMs) may benefit from a reliable method for assessing their generated content to determine when to abstain or to selectively generate. While likelihood-based metrics such as perplexity are widely employed, recent research has demonstrated the limitations of using sequence-level probability estimates given by LLMs as reliable indicators of generation quality. Conversely, LLMs have demonstrated strong calibration at the token level, particularly when it comes to choosing correct answers in multiple-choice questions or evaluating true/false statements. In this work, we reformulate open-ended generation tasks into token-level prediction tasks, and leverage LLMs' superior calibration at the token level. We instruct an LLM to self-evaluate its answers, employing either a multi-way comparison or a point-wise evaluation approach, with the option to include a "None of the above" option to express the model's uncertainty explicitly. We benchmark a range of scoring methods based on self-evaluation and evaluate their performance in selective generation using TruthfulQA and TL;DR. Through extensive experiments with PaLM-2 and GPT-3, we demonstrate that self-evaluation based scores not only improve accuracy, but also correlate better with the overall quality of generated content.

Introduction

A critical challenge in the deployment of Large Language Models (LLMs) is their propensity for "hallucination"—generating factually incorrect information with high confidence. To mitigate this, models must be able to assess their own output quality and decide when to abstain from answering, a process known as selective generation. Traditionally, sequence-level likelihood (often related to perplexity) has been used as a proxy for confidence. However, LLMs often exhibit a bias toward shorter sequences and can assign high probabilities to plausible-sounding but false statements. This work addresses the gap by finding scoring methods that align more closely with actual output quality, allowing models to signal their own trustworthiness.

Methodology: From Sequences to Tokens

The core insight of this research is the "Calibration Paradox": while LLMs are poor at estimating the probability of an entire sentence, they are remarkably well-calibrated when predicting the next single token in a structured format. By reformulating evaluation as a token-level task, we can extract more reliable confidence scores.

Overview of self-evaluation strategies: Sample and Select, Sample and Eval, and Hybrid approaches.

The authors propose three primary strategies for this reformulation:

  1. Sample and Select: The model generates multiple candidate answers, which are then presented back to the model in a multiple-choice format. The confidence score is derived from the probability assigned to the chosen letter (e.g., "A", "B").
  2. Sample and Eval: The model evaluates a single generated answer by answering a binary question: "Is the above answer correct? A) Yes B) No." The probability of the "Yes" token serves as the confidence score.
  3. Hybrid Approach: A combination where the model first selects the best candidate using "Sample and Select" and then generates a final confidence score for that specific choice using "Sample and Eval."

A significant innovation is the introduction of a "None of the above" (NOTA) option in the multiple-choice prompts. This provides an explicit mechanism for the model to express uncertainty when all generated candidates are of low quality, preventing forced overconfidence.

Experimental Setup

The methods were evaluated on two distinct benchmarks:

  • TruthfulQA: 817 questions designed to trigger common human misconceptions, where "plausible" answers are frequently incorrect.
  • TL;DR: A summarization task based on Reddit posts, focusing on the quality and conciseness of generated summaries.

Experiments were conducted using PaLM-2 Large and GPT-3 (text-davinci-003). To account for position bias—the tendency of LLMs to favor certain positions in a list—the authors employed "shuffling and averaging" of options.

Results and Discussion

The experimental results demonstrate that self-evaluation significantly outperforms standard sequence-level likelihood across all metrics.

Performance comparison of various scoring methods on TruthfulQA for PaLM-2 Large and GPT-3.

As shown in the results for PaLM-2 Large, standard sequence likelihood achieved a Calibration-AUC of only 39.8%, indicating poor reliability. In contrast, the Hybrid w/ NOTA method reached 75.34%. Furthermore, these methods improved the model's ability to select correct answers; for instance, "Sample and Eval" increased accuracy on TruthfulQA from 48.23% to 59.12%. GPT-3 showed similar improvements in calibration and selective generation when moving to token-level evaluation.

The inclusion of the NOTA option proved vital for calibration, as it allows the model to signal when none of the sampled answers are trustworthy. While effective, these methods do introduce additional inference costs, as they require multiple generation and evaluation passes.

Conclusion

This research highlights that LLMs possess latent self-knowledge that can be unlocked through structured token-level evaluation. By moving away from sequence-level probabilities and toward discrete self-assessment, we can build models that are better at "knowing what they don't know." Future work may explore integrating these self-evaluation signals into the training process, such as via Reinforcement Learning from Human Feedback (RLHF), to develop inherently better-calibrated models.

Summary updated

BibTeX
@inproceedings{ren2023self,
  author = {Jie Ren and Yao Zhao and Tu Vu and Peter J Liu and Balaji Lakshminarayanan},
  title = {{Self-Evaluation Improves Selective Generation in Large Language Models}},
  booktitle = {ICBINB @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=OptKBWmreP},
}
Figure