When to Trust LLMs: Aligning Confidence with Response Quality

Shuchang Tao, Liuyi Yao, Hanxing Ding, Yuexiang Xie, Qi Cao +4 more
4/26/2024
cs.CL

No official code found. Best implementation: TaoShuchang/CONQORD (8 stars, last commit 2024-08-12).

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 often express reliability by confidence level, however, their effectiveness is limited by the lack of objective guidance. To address this, we propose CONfidence-Quality-ORDer-preserving alignment approach (CONQORD), which leverages reinforcement learning guided by a tailored dual-component reward function. This function integrates quality reward and order-preserving 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 CONQORD significantly improves the alignment performance between confidence and response accuracy, without causing 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.

View on arXivView PDF

Code Implementations(1)

TaoShuchang/CONQORDCommunity100%

The repository for ACL 2024 paper "When to Trust LLMs: Aligning Confidence with Response Quality"

81Shell, PythonJul 22, 20242 years ago

Similar Papers

Cite this paper

@article{tao2024when,
  title  = {When to Trust LLMs: Aligning Confidence with Response Quality},
  author = {Shuchang Tao and Liuyi Yao and Hanxing Ding and Yuexiang Xie and Qi Cao and Fei Sun and Jinyang Gao and Huawei Shen and Bolin Ding},
  year   = {2024},
  eprint = {2404.17287},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.17287v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.17287.svg)](https://codeofpaper.com/paper/2404.17287)

Discussion