When to Trust LLMs: Aligning Confidence with Response Quality
Authors:
- Shuchang TaoSTShuchang Tao
- Liuyi YaoLYLiuyi Yao
- Hanxing DingHDHanxing Ding
- Yuexiang XieYXYuexiang Xie
- Qi CaoQCQi Cao
- Fei SunFSFei Sun
- Jinyang GaoJGJinyang Gao
- Huawei ShenHSHuawei Shen
- Bolin DingBDBolin Ding
Preprint
Abstract
Despite the success of large language models (LLMs) in natural language generation, much evidence shows that LLMs may produce incorrect or nonsensical text. This limitation highlights the importance of discerning when to trust LLMs, especially in safety-critical domains. Existing methods, which rely on verbalizing confidence to tell the reliability by inducing top-k responses and sampling-aggregating multiple responses, often fail, due to the lack of objective guidance of confidence. To address this, we propose CONfidence-Quality-ORDerpreserving alignment approach (CONQORD), leveraging reinforcement learning with a tailored dual-component reward function. This function encompasses quality reward and orderpreserving alignment reward functions. Specifically, the order-preserving reward incentivizes the model to verbalize greater confidence for responses of higher quality to align the order of confidence and quality. Experiments demonstrate that our CONQORD significantly improves the alignment performance between confidence levels and response accuracy, without causing the model to become over-cautious. Furthermore, the aligned confidence provided by CONQORD informs when to trust LLMs, and acts as a determinant for initiating the retrieval process of external knowledge. Aligning confidence with response quality ensures more transparent and reliable responses, providing better trustworthiness.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- 🧜Siren’s Song in the AI Ocean: A Survey on Hallucination in Large Language ModelsComputational Linguistics, 2025
- Do Language Models Know When They’re Hallucinating References?2024
- Survey of Hallucination in Natural Language GenerationACM Computing Surveys, 2023
- Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedback2023
- MacLaSa: Multi-Aspect Controllable Text Generation via Efficient Sampling from Compact Latent Space2023
- LM vs LM: Detecting Factual Errors via Cross Examination2023
- Reducing Conversational Agents’ Overconfidence Through Linguistic CalibrationTransactions of the Association for Computational Linguistics, 2022
- TruthfulQA: Measuring How Models Mimic Human Falsehoods2022
- Natural Questions: A Benchmark for Question Answering ResearchTransactions of the Association for Computational Linguistics, 2019
- Spearman’s rank correlation coefficientBMJ, 2014