arXiv:2501.02997cs.AIcs.CL2025-01AAAI被引 7

用好奇心驱动的AI自动检测大模型输出有害内容

CALM: Curiosity-Driven Auditing for Large Language Models

  • 让审计代理通过内在动机学习,自动寻找有害输入输出对
  • 在黑盒环境下成功发现涉及名人的贬损性回复和敏感信息诱导
  • 适合模型安全测试与合规审查人员使用

审计大型语言模型(LLMs)是一项关键且具挑战性的任务。本研究聚焦于在无法访问模型参数、仅能调用其服务接口的情况下,对黑盒LLMs进行审计。我们将此问题视为黑盒优化任务,目标是自动发现目标LLM输出非法、不道德或不安全行为的输入-输出对。例如,寻找一个非侮辱性输入却引发模型输出有毒回应的情况,或诱导模型生成包含政治敏感人物的幻觉内容。该优化因可行点稀疏、提示空间离散及搜索空间庞大而困难。为此,我们提出好奇驱动的大型语言模型审计方法(CALM),利用内在动机强化学习微调一个LLM作为审计代理,以发现目标模型潜在的有害与偏见性输入-输出对。CALM成功识别出涉及名人的贬损性完成内容,并在黑盒设置下发现可诱导特定名称生成的输入。该工作为黑盒LLM审计提供了有前景的方向。代码已开源:https://github.com/x-zheng16/CALM.git。

原文摘要 · Abstract (English)

Auditing Large Language Models (LLMs) is a crucial and challenging task. In this study, we focus on auditing black-box LLMs without access to their parameters, only to the provided service. We treat this type of auditing as a black-box optimization problem where the goal is to automatically uncover input-output pairs of the target LLMs that exhibit illegal, immoral, or unsafe behaviors. For instance, we may seek a non-toxic input that the target LLM responds to with a toxic output or an input that induces the hallucinative response from the target LLM containing politically sensitive individuals. This black-box optimization is challenging due to the scarcity of feasible points, the discrete nature of the prompt space, and the large search space. To address these challenges, we propose Curiosity-Driven Auditing for Large Language Models (CALM), which uses intrinsically motivated reinforcement learning to finetune an LLM as the auditor agent to uncover potential harmful and biased input-output pairs of the target LLM. CALM successfully identifies derogatory completions involving celebrities and uncovers inputs that elicit specific names under the black-box setting. This work offers a promising direction for auditing black-box LLMs. Our code is available at https://github.com/x-zheng16/CALM.git.

模型审计黑盒测试安全检测

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