Reconfidencing LLMs from the Grouping Loss Perspective

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

Introduction

Large Language Models (LLMs) are frequently criticized for their tendency to hallucinate while maintaining a highly confident tone. While standard "calibration" techniques aim to align a model's reported confidence with its actual accuracy, these methods often rely on global averages that can mask significant underlying disparities. This paper introduces reconfidencing, a novel framework designed to identify and correct for "grouping loss"—the phenomenon where a model remains unreliable for specific sub-groups despite appearing well-calibrated on average.

The Problem: The Deception of Average Calibration

Standard calibration seeks to ensure that if a model claims 80% confidence, it is correct 80% of the time across a dataset. However, the authors argue that average calibration is fundamentally deceptive. A model might achieve perfect global calibration while being highly accurate on common queries (e.g., American history) and catastrophically overconfident on others (e.g., Chinese history).

This disparity is defined as grouping loss. Existing methods often neglect the heterogeneity of errors, pulling all confidence scores toward a global mean. In doing so, they may inadvertently obscure the fact that the model remains untrustworthy for minority or long-tail queries.

Methodology: The Reconfidencing Framework

The proposed reconfidencing method addresses grouping loss through a two-step process:

  1. Identifying Latent Groups: Rather than relying solely on explicit categories like nationality, the method uses a decision tree to partition queries into "latent groups." This tree utilizes the LLM’s internal hidden-layer embeddings as input, learning to cluster queries that share similar patterns of over- or under-confidence. This approach leverages the fact that internal embeddings often contain more nuanced information about uncertainty than the final text output.
  2. Group-Specific Calibration: Once these latent groups are established, the method applies a separate calibration function—specifically isotonic regression—to each group individually.

This framework is "black-box" compatible, meaning it can be integrated with various confidence elicitation techniques, such as SelfCheckGPT (consistency-based) or Just Ask for Calibration (direct numerical probability).

Experimental Setup

To evaluate the method, the researchers developed a new framework using the YAGO knowledge base, comprising approximately 30,000 triples across relations such as Birth_Date, Founder, and Composer. Crucially, this dataset includes metadata for entity popularity (via Wikipedia backlinks) and nationality, allowing for a granular analysis of confidence quality.

Beyond the YAGO dataset, the method was tested on established benchmarks including SciQ, TriviaQ, TruthfulQA, and a Medical QA dataset to assess its generalization capabilities across different domains.

Key Insights

  • The Popularity and Nationality Gap: LLMs exhibit a significant "popularity bias," showing much better calibration for famous entities than for "long-tail" entities. Furthermore, models like Mistral-7B showed "dismal" performance on individuals from India and China compared to those from the U.S. or France, often providing incorrect answers with high confidence.
  • Calibration as a Bias Multiplier: A critical finding is that standard global calibration can actually increase grouping loss. By smoothing scores toward a global average, it further hides the model's failure to handle specific minority groups accurately.
  • The Power of Embeddings: The success of the latent group identification suggests that LLM embeddings capture deep-seated uncertainty that is not always apparent in the generated text.

Results

Reconfidencing consistently outperformed standard calibration across several models, including LLaMA (7B/13B), Mistral-7B, and Mixtral-8x7B.

  • Brier Score Reduction: The method achieved lower Brier scores (indicating higher probability accuracy) compared to both raw model outputs and standard global calibration.
  • Eliminating Grouping Loss: In several instances, reconfidencing reduced Grouping Loss (GL) to near zero. For example, on the Composer relation using Mistral-7B, standard calibration actually increased GL from 0.95 to 1.14, whereas the reconfidencing method reduced it to 0.0.
  • Fairness and Consistency: The method successfully flattened calibration curves across different nationalities and genders, ensuring that the model's uncertainty signals are more equitable and reliable regardless of the subject matter.

Conclusion and Future Work

While reconfidencing shows significant promise for fact-based, entity-related queries, its current application is limited to tasks with clear correctness metrics. Future research will focus on scaling this methodology to long-form, creative generation and common-sense reasoning, where defining "correctness" is more complex. Ultimately, this framework provides a path toward developing fairer LLMs that offer consistent reliability across diverse demographic and informational landscapes.

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