arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01558cs.LGcs.CL
收藏

通过后续查询预测黑盒大语言模型的性能

Predicting the Performance of Black-box LLMs through Follow-up Queries

Carnegie Mellon University(卡内基梅隆大学)

Dylan Sam, Marc Finzi, J. Zico Kolter

AI总结:

本文通过后续查询预测黑盒大语言模型性能,利用响应概率训练可靠预测器,有效区分模型正确性及对抗性影响。

摘要:

可靠地预测语言模型的行为--例如它们的输出是否正确或是否被对抗性地操纵--是一项根本性的挑战任务。这通常变得更加困难,因为前沿语言模型只通过封闭源API提供,仅提供黑盒访问。在本文中,我们通过提出后续问题并利用响应的概率作为表示来训练可靠的预测器,来预测黑盒语言模型的行为。我们首先证明,训练一个线性模型来利用这些响应可以可靠且准确地预测问答和推理基准中的模型正确性。令人惊讶的是,这甚至可以超越基于模型内部或激活的白盒线性预测器。此外,我们证明这些后续问题响应可以可靠地区分干净的LLM版本和通过系统提示被对抗性影响的版本,该提示会使模型错误回答问题或在生成代码中引入错误。最后,我们显示它们也可以用于区分黑盒LLM,从而在API提供的模型中检测到被错误表示的模型。总体而言,我们的工作在监控黑盒语言模型行为方面显示出前景,支持其在更大、自主系统中的部署。

英文摘要:

Reliably predicting the behavior of language models -- such as whether their outputs are correct or have been adversarially manipulated -- is a fundamentally challenging task. This is often made even more difficult as frontier language models are offered only through closed-source APIs, providing only black-box access. In this paper, we predict the behavior of black-box language models by asking follow-up questions and taking the probabilities of responses \emph{as} representations to train reliable predictors. We first demonstrate that training a linear model on these responses reliably and accurately predicts model correctness on question-answering and reasoning benchmarks. Surprisingly, this can \textit{even outperform white-box linear predictors} that operate over model internals or activations. Furthermore, we demonstrate that these follow-up question responses can reliably distinguish between a clean version of an LLM and one that has been adversarially influenced via a system prompt to answer questions incorrectly or to introduce bugs into generated code. Finally, we show that they can also be used to differentiate between black-box LLMs, enabling the detection of misrepresented models provided through an API. Overall, our work shows promise in monitoring black-box language model behavior, supporting their deployment in larger, autonomous systems.

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

↑