Confidence scores for gated automation of large language models
Abstract
AI agents built on large language models (LLMs) demonstrate strong capabilities in automated decision-making. However, LLMs may produce incorrect answers with high confidence, limiting their applicability in decisions that affect individuals and organizations. Reliable confidence scores are necessary to gate such decisions, and existing estimates are frequently unavailable or too coarse to support effective gating. This work uses supervised learning to train models to predict the correctness of LLM-generated answers, enabling automated confident responses and routing uncertain ones for human review. A linear confidence score head is fitted to the final-layer hidden state of the frozen LLM backbone, and text-only metamodels are trained as an alternative for closed models. All results come from a single 2B-parameter backbone, on graded answers that are about 98% SQuAD and the remainder TruthfulQA. Against multiple baselines, the confidence score head outperforms all baselines and metamodels, automating the largest fraction of the workload at high accuracy targets. Prompted confidence scores can appear well calibrated yet lack the resolution needed for thresholding. Although transferability to unseen datasets is modest, the confidence score head remains the most robust approach. The proposed confidence scoring framework enhances the safety of automating LLM-based agents and can be adapted to gate other properties, including safety or compliance.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.LG
Related papers
Did the Model Forecast It, or Already Know It? Evaluating Large Language Models for Novel Drug-Target Prioritisation with a Temporal Knowledge-Graph Oracle
Shared title terminologycs.AIPui Chung Siu, Yuan Liang, Claudia Cabrera et al.
LimoBench: How Street Smart Are Large Language Models?
Shared title terminologycs.AIGautam Choudhary, Jack Peng, Udesh Kumarasinghe et al.
A Failure-Driven Data Flywheel for Post-Training Vision-Language-Action Models
Shared title terminologycs.AIYuhao Luo, Zihao Sheng, Zilin Huang et al.
ZeroHero: Training Small Language Agents from Scratch
Shared title terminologycs.AINikita Sorokin, Zoya Volovikova, Alexey Skrynnik et al.
Navigent: A Geometry-Grounded Agentic Framework for Vision Language Navigation
Shared title terminologycs.AIXinyu Zhou, Weiren Cai, Yitong Chen et al.
Not Every Input Needs Everything: Unifying Expert Gating, Model Cascades, and Agent Orchestration
Shared title terminologycs.AIDat Tat Mai, Hung Tran Quy, Thai Viet Pham et al.