TL;DR
Large language models (LLMs) often "hallucinate" by generating factually incorrect information, undermining their trustworthiness. This paper introduces "atomic calibration" to assess LLM confidence at the level of individual factual claims within long responses, revealing that models calibrated at the response level can still be unreliable at this finer grain. The authors propose new methods for combining different types of confidence scores and uncover interesting patterns in how LLM confidence changes during generation.
What Problem Does This Paper Address?
LLMs are increasingly used for complex tasks that require generating lengthy, detailed responses. A major challenge is their tendency to "hallucinate" – producing plausible-sounding but factually incorrect information. To address this, researchers use "confidence calibration" to ensure that an LLM's stated confidence in its output accurately reflects the likelihood of that output being correct.
However, most existing calibration work focuses on short answers, where a single confidence score for the entire response (macro calibration) is sufficient. Long-form generations, like biographies or detailed explanations, are more nuanced. They can contain multiple distinct factual claims, some correct and some incorrect. A single macro-level confidence score can mask these internal inconsistencies. This paper tackles the problem of evaluating and improving LLM confidence calibration specifically for these long-form, multi-claim outputs by introducing "atomic calibration."
Methods
The core innovation is atomic calibration, which breaks down a long LLM response into individual "atomic claims" – single, verifiable factual statements. Each atomic claim is then assessed for its factuality and the LLM's confidence in it.
The authors categorize confidence elicitation methods into two types:
- Generative Methods: These methods assess confidence by generating multiple responses to the same prompt and observing the consistency across them. Variations include:
- GEN-BINARY: Checks if an atomic claim is supported by other generated samples.
- GEN-MULTI: Further categorizes support into "supported," "refuted," or "not mentioned" based on other samples.
- Discriminative Methods: These methods directly ask the LLM to assess its own confidence. Variations include:
- DIS-SINGLE: Asks the LLM to directly state "True" or "False" for an atomic claim.
- DIS-CONTEXT: Provides context (e.g., the passage where the claim was extracted) to help the LLM assess its confidence.
- DIS-RATING: Asks the LLM to provide a numerical confidence score.
To improve calibration, the paper proposes two novel confidence fusion strategies (AdjustedAlpha and DampedFusion) that consider the agreement between different confidence scores, going beyond simple weighted averages.
Datasets
The paper uses three existing datasets for long-form question answering:
- Bios: Contains biographical information for individuals.
- LongFact: Extends Bios with more questions and topics.
- WildHallu: Features entities from real-world user-chatbot interactions.
The authors also apply a FACTSCORE-based approach for generating and verifying atomic facts, leveraging GPT-4o for this process.
Key Insights and Ideas
- Atomic Calibration is Crucial: Models that appear well-calibrated at the response level (macro calibration) can perform poorly when their confidence is assessed at the atomic claim level. This highlights a significant gap in understanding LLM trustworthiness for complex outputs.
- Generative and Discriminative Methods Complement Each Other: Combining confidence scores from both generative and discriminative methods leads to better calibration than using methods of the same type. This suggests they capture different aspects of uncertainty.
- Confidence Changes During Generation:
- Discriminative methods show LLMs becoming less confident in atomic facts as generation progresses. This is a surprising finding, contrasting with some previous work.
- Generative methods show LLMs having the lowest confidence in the middle of the generation process, potentially because the beginning and end often contain more general, easily verifiable statements.
- Model Size Matters (for Discriminative Methods): Larger models tend to provide better calibration when using discriminative methods, likely due to their enhanced self-assessment capabilities. This effect is less pronounced for generative methods.
- Atomic Calibration Enhances Downstream Tasks: The paper demonstrates that atomic calibration improves performance in applications like selective question answering, LLM ensembling, and atomic claim reunion, showing its practical utility.
Key Results
- Across all tested LLMs and datasets, atomic-level calibration consistently showed higher errors (lower calibration) than response-level calibration. For example, Expected Calibration Error (ECE) scores for atomic calibration remained around 10% even with the best methods, indicating a significant calibration gap.
- The proposed confidence fusion strategies (AdjustedAlpha and DampedFusion) outperformed baseline fusion methods, achieving better atomic calibration.
- Atomic calibration improved macro calibration results, demonstrating its value in enhancing overall response-level confidence.
- In applications like LLM Ensemble and Atomic Reunion, using atomic-level confidence led to significant improvements in factuality scores (e.g., increasing factuality from 0.475 to 0.556 on the Bios dataset).
Limitations and Future Work
- Focus on Factuality: The study primarily focuses on factuality calibration, acknowledging that other aspects of response quality (coherence, creativity) are also important for long-form generation.
- Open-Source LLMs: Experiments were conducted on open-source LLMs due to the need for logit access, which is often unavailable for closed-source models.
- No Post-Hoc Calibration: The paper deliberately avoids post-hoc calibration techniques (like temperature scaling) to isolate the impact of their proposed elicitation and fusion methods. Future work could explore combining these with post-hoc methods.
- Future Research: The authors suggest further research into the discrepancies between generative and discriminative methods and how to better unify them. They also propose exploring more fine-grained confidence in long-form generation beyond factuality.
Summary updated