arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.20168cs.CLcs.AIcs.LG
收藏

MICE for CATs:用于校准带工具智能体的模型内部置信度估计

MICE for CATs: Model-Internal Confidence Estimation for Calibrating Agents with Tools

CMU LTI(卡内基梅隆大学语言技术研究所);Microsoft(微软公司)

Nishant Subramani, Jason Eisner, Justin Svegliato, Benjamin Van Durme, Yu Su, Sam Thomson

AI总结:

本文提出模型内部置信度估计器MICE,通过logitLens解码中间层并计算相似度输入分类器,有效提升工具调用智能体的置信度校准与决策效用。

摘要:

在世界中行动的工具使用智能体需要既有用又安全。校准良好的模型置信度可用于权衡潜在行动的风险与收益,但先前的研究表明许多模型校准不佳。受探索模型内部机制的可解释性文献启发,我们提出了一类新颖的模型内部置信度估计器(MICE),以更好地评估调用工具时的置信度。MICE 首先使用 logitLens 从语言模型的每个中间层进行解码,然后计算每层生成结果与最终输出之间的相似度得分。这些特征被输入到一个学习到的概率分类器中,以评估对解码输出的置信度。在使用 Llama3 模型的模拟试错(STE)工具调用数据集上,我们发现 MICE 在平滑预期校准误差上击败或匹配了基线。使用 MICE 置信度来决定是否调用工具,在新的指标预期工具调用效用上显著优于强基线。进一步实验表明,MICE 具有样本效率,能够零样本泛化到未见过的 API,并且在具有不同风险水平的场景中产生更高的工具调用效用。我们的代码已开源,可在 https://github.com/microsoft/mice_for_cats 获取。

英文摘要:

Tool-using agents that act in the world need to be both useful and safe. Well-calibrated model confidences can be used to weigh the risk versus reward of potential actions, but prior work shows that many models are poorly calibrated. Inspired by interpretability literature exploring the internals of models, we propose a novel class of model-internal confidence estimators (MICE) to better assess confidence when calling tools. MICE first decodes from each intermediate layer of the language model using logitLens and then computes similarity scores between each layer's generation and the final output. These features are fed into a learned probabilistic classifier to assess confidence in the decoded output. On the simulated trial and error (STE) tool-calling dataset using Llama3 models, we find that MICE beats or matches the baselines on smoothed expected calibration error. Using MICE confidences to determine whether to call a tool significantly improves over strong baselines on a new metric, expected tool-calling utility. Further experiments show that MICE is sample-efficient, can generalize zero-shot to unseen APIs, and results in higher tool-calling utility in scenarios with varying risk levels. Our code is open source, available at https://github.com/microsoft/mice_for_cats.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑