arXiv:2501.01558cs.LGcs.CL2025-01NeurIPS被引 10

通过追问预测大模型表现,无需内部访问也能判断对错与安全

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

  • 用追问结果的概率作特征,训练线性模型预测输出正确性
  • 在问答和推理任务上预测准确率超越可访问内部信息的模型
  • 能识别被恶意诱导或冒充的模型,适合部署监控场景

可靠预测语言模型的行为——例如输出是否正确或已被恶意操控——是一项根本性挑战。这尤其因前沿模型仅通过闭源API提供而加剧,仅支持黑盒访问。本文通过提出后续问题,并将响应概率作为表示,训练可靠的预测器来推断黑盒语言模型的表现。我们首先证明,在这些响应上训练的线性模型能准确预测模型在问答和推理基准上的正确性;令人惊讶的是,该方法甚至优于基于模型内部激活的白盒线性预测器。此外,我们验证了这些追问响应可有效区分正常模型与被系统提示误导而错误回答或生成含错代码的模型。最后,我们展示其可用于区分不同黑盒模型,从而检测通过API提供的伪装模型。整体表明,该方法在监控黑盒语言模型行为方面具有潜力,支持其在更大规模自主系统中的部署。

原文摘要 · Abstract (English)

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.

模型监控黑盒预测安全评估

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。