Reconfidencing LLMs from the Grouping Loss Perspective

Lihu Chen, Alexandre Perez-Lebel, Fabian M. Suchanek, Gaël Varoquaux

Abstract

Large Language Models (LLMs) often exhibit biased overconfidence, performing well on popular entities while failing on minority groups or "long-tail" topics. This paper introduces reconfidencing, a method that identifies latent subgroups using decision trees and calibrates their confidence scores individually. Our approach significantly reduces grouping loss and improves model reliability across diverse demographics and popularity levels.

Introduction: The "Average Calibration" Trap

A primary goal in LLM development is achieving "calibration"—ensuring that a model's predicted probability of an answer matches its actual accuracy. However, current research often focuses on global average performance, which can be misleading. This paper identifies a critical phenomenon termed grouping loss, where a model appears well-calibrated on average but exhibits significant disparities across specific subgroups. For instance, a model might be highly accurate for Western historical figures but dangerously overconfident and incorrect regarding entities from the Global South.

Calibration curves across overall, popularity, and nationality groups, illustrating how average calibration masks significant subgroup disparities.

Methodology: Reconfidencing via Latent Groups

To address these hidden biases, the authors propose reconfidencing, a granular calibration framework. The process involves three key steps:

  1. Confidence Elicitation: Extracting scores using black-box methods like SelfCheckGPT (measuring consistency across multiple samples) or direct numerical prompting.
  2. Identifying Latent Groups: Instead of relying solely on human-defined categories, the method uses decision trees to partition data into subgroups based on the LLM’s internal top-layer embeddings. This allows the discovery of "latent" groups that the model treats similarly.
  3. Sub-group Calibration: Applying Isotonic Regression to each identified subgroup independently, tailoring the confidence scores to the specific biases of that cluster.

Key Insights: Popularity and Nationality Biases

The researchers evaluated this approach using a new dataset derived from the YAGO knowledge base, featuring ~30,000 triples across relations like Birth_Date, Founder, and Composer. Key findings include:

  • The Popularity Gap: Models exhibit a "rich-get-richer" effect, maintaining high confidence for "long-tail" or obscure entities even when they are hallucinating.
  • Nationality Bias: Models like Mistral and LLaMA showed reasonable calibration for Western entities but performed "dismally" for Indian and Chinese demographics.
  • The Calibration Paradox: Standard global calibration can inadvertently increase grouping loss by attempting to fix the average at the expense of specific subgroups.
Calibration curves and subgroup distributions (orange dots) for LLaMA and Mistral models, highlighting the spread of performance across latent groups that reconfidencing aims to address.

Results and Impact

Reconfidencing consistently outperformed standard calibration across models including LLaMA-7B/13B and Mistral-7B. On the Birth_Date relation for LLaMA-7B, the Brier score (a measure of prediction accuracy) was reduced from 84.38 to 22.24. Notably, in the Composer relation for Mistral-7B, where standard calibration actually increased grouping loss from 0.95 to 1.14, reconfidencing reduced it effectively to 0.0. This ensures that a "90% confidence" rating remains reliable regardless of the subject's popularity or origin.

Conclusion

While currently optimized for factoid-based tasks, reconfidencing provides a robust path toward fairer and more reliable LLMs. By leveraging internal embeddings to identify and fix local miscalibrations, we can move beyond the "average calibration" trap and build systems that are trustworthy for all users, not just those querying popular topics.

Summary updated

BibTeX
@inproceedings{chen2024reconfidencing,
  author = {Lihu Chen and Alexandre Perez-Lebel and Fabian M. Suchanek and Gaël Varoquaux},
  title = {{Reconfidencing LLMs from the Grouping Loss Perspective}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.85},
}
Figure