Calibrating Long-form Generations from Large Language Models

Yukun Huang, Yixin Liu, Raghuveer Thirukovalluru, Arman Cohan, Bhuwan Dhingra · DOI

Abstract

Large Language Models (LLMs) often struggle to communicate their level of certainty regarding complex, long-form responses. Traditional calibration methods, designed for binary short-form tasks, fail to capture the nuances of partial correctness inherent in summaries or explanations. This paper introduces a unified framework that treats both correctness and confidence as probability distributions. By employing methods like Continuous Self-Evaluation (CSE) and Pairwise Self-Consistency (PSC), the authors demonstrate improved calibration across diverse tasks, enabling more reliable model self-assessment and cost-effective model cascading.

The Challenge of Long-form Calibration

In LLM evaluation, calibration refers to the alignment between a model's self-reported confidence and its actual accuracy. While well-studied in short-form contexts (e.g., multiple-choice), long-form generation presents a unique challenge: responses are rarely entirely correct or incorrect.

Short-form vs. Long-form Correctness Distributions

As illustrated above, short-form tasks typically yield a binary correctness score. In contrast, long-form responses exist on a spectrum of partial correctness. A single confidence score becomes ambiguous in these scenarios—does "80% confidence" imply an 80% chance of a perfect answer, or a 100% chance of an 80% correct answer? This research addresses this ambiguity by modeling correctness as a distribution rather than a single point.

A Unified Distributional Framework

The proposed framework conceptualizes both correctness and confidence as distributions over the range [0, 1]. This allows for a more granular measurement of how well a model's internal certainty aligns with its actual performance.

The proposed framework for long-form calibration

The process involves two main components:

  1. Correctness Distribution Estimation: To avoid the high cost of human evaluation, GPT-4 serves as a proxy evaluator. By prompting it multiple times with specific rubrics, the researchers generate a distribution of scores that correlate highly with human judgment.
  2. Confidence Elicitation: Two primary methods are developed to extract model certainty:
  3. Continuous Self-Evaluation (CSE): The model is prompted to evaluate its own generated answer multiple times. The resulting scores form a confidence distribution.
  4. Pairwise Self-Consistency (PSC): The model generates multiple candidate answers. The confidence in a primary answer is determined by its similarity to these other candidates.

To measure the effectiveness of these distributions, the authors introduce ECE-M (Expected Correctness Error with multi-class), which adapts standard calibration metrics for continuous scores.

Key Findings and Practical Implications

The study evaluated several models (including Llama-2, Llama-3, and GPT-3.5) across four diverse datasets: ASQA (factoid synthesis), QAMPARI (entity lists), ELI5 (complex explanations), and CNNDM (summarization). Several critical insights emerged:

  • The Scaling Paradox: Larger, more powerful models are not necessarily better calibrated than smaller ones. In some cases, smaller models like Llama-2-13b showed a higher correlation between confidence and correctness than GPT-3.5.
  • Task-Specific Efficacy: Self-consistency (PSC) is highly effective for factoid datasets where correctness is objective. However, for subjective tasks like ELI5, self-evaluation (CSE) tends to be more reliable.
  • Model Cascading: A practical application of this framework is model cascading. By using confidence scores to identify "uncertain" outputs from a cheap, open-source model, systems can selectively escalate queries to an expensive commercial API. This strategy maintains high performance while significantly reducing operational costs.

Conclusion

This distributional approach to calibration provides a more nuanced understanding of LLM reliability in real-world, long-form scenarios. While challenges remain—such as the computational overhead of generating multiple responses and potential evaluator bias—this framework paves the way for more honest and cost-efficient AI systems. Future work will likely focus on reducing the latency of these methods and extending them to high-stakes specialized domains like medicine or law.

Summary updated

BibTeX
@inproceedings{huang2024calibrating,
  author = {Yukun Huang and Yixin Liu and Raghuveer Thirukovalluru and Arman Cohan and Bhuwan Dhingra},
  title = {{Calibrating Long-form Generations from Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.785},
}
Figure