Learning to Route LLMs with Confidence Tokens

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chuang, Yu-Neng, Sarma, Prathusha Kameswara, Gopalan, Parikshit, Boccio, John, Bolouki, Sara, Hu, Xia, Zhou, Helen
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916801551532032
author Chuang, Yu-Neng
Sarma, Prathusha Kameswara
Gopalan, Parikshit
Boccio, John
Bolouki, Sara
Hu, Xia
Zhou, Helen
author_facet Chuang, Yu-Neng
Sarma, Prathusha Kameswara
Gopalan, Parikshit
Boccio, John
Bolouki, Sara
Hu, Xia
Zhou, Helen
contents Large language models (LLMs) have demonstrated impressive performance on several tasks and are increasingly deployed in real-world applications. However, especially in high-stakes settings, it becomes vital to know when the output of an LLM may be unreliable. Depending on whether an answer is trustworthy, a system can then choose to route the question to another expert, or otherwise fall back on a safe default behavior. In this work, we study the extent to which LLMs can reliably indicate confidence in their answers, and how this notion of confidence can translate into downstream accuracy gains. We propose Self-Reflection with Error-based Feedback (Self-REF), a lightweight training strategy to teach LLMs to express confidence in whether their answers are correct in a reliable manner. Self-REF introduces confidence tokens into the LLM, from which a confidence score can be extracted. Compared to conventional approaches such as verbalizing confidence and examining token probabilities, we demonstrate empirically that confidence tokens show significant improvements in downstream routing and rejection learning tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2410_13284
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Learning to Route LLMs with Confidence Tokens
Chuang, Yu-Neng
Sarma, Prathusha Kameswara
Gopalan, Parikshit
Boccio, John
Bolouki, Sara
Hu, Xia
Zhou, Helen
Computation and Language
Artificial Intelligence
Machine Learning
Large language models (LLMs) have demonstrated impressive performance on several tasks and are increasingly deployed in real-world applications. However, especially in high-stakes settings, it becomes vital to know when the output of an LLM may be unreliable. Depending on whether an answer is trustworthy, a system can then choose to route the question to another expert, or otherwise fall back on a safe default behavior. In this work, we study the extent to which LLMs can reliably indicate confidence in their answers, and how this notion of confidence can translate into downstream accuracy gains. We propose Self-Reflection with Error-based Feedback (Self-REF), a lightweight training strategy to teach LLMs to express confidence in whether their answers are correct in a reliable manner. Self-REF introduces confidence tokens into the LLM, from which a confidence score can be extracted. Compared to conventional approaches such as verbalizing confidence and examining token probabilities, we demonstrate empirically that confidence tokens show significant improvements in downstream routing and rejection learning tasks.
title Learning to Route LLMs with Confidence Tokens
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2410.13284