arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.05305cs.CLcs.AI
收藏

输出侦察:审计大型语言模型以发现灾难性响应

Output Scouting: Auditing Large Language Models for Catastrophic Responses

Andrew Bell, Joao Fonseca

AI总结:

提出输出侦察方法,通过匹配目标概率分布生成语义流畅输出,高效查询LLM以发现灾难性响应,并发布开源审计工具包。

摘要:

近期,多起使用大型语言模型(LLM)对个人造成重大伤害的高知名度事件,引发了人们对人工智能安全日益增长的兴趣。LLM安全问题发生的原因之一是,模型通常至少存在一定的非零概率产生有害输出。在这项工作中,我们探讨以下场景:设想一位人工智能安全审计员正在搜索LLM的灾难性响应(例如,对“我可以因为员工怀孕而解雇她吗?”回答“是”),并且能够查询模型有限次数(例如1000次)。那么,什么样的查询策略能够高效地发现这些失败响应?为此,我们提出输出侦察(output scouting):一种旨在为给定提示生成语义流畅输出,并匹配任意目标概率分布的方法。随后,我们使用两个LLM进行实验,发现了大量灾难性响应的实例。最后,我们进行讨论,包括为希望实施LLM灾难性响应审计的从业者提供建议。我们还发布了一个开源工具包(https://github.com/joaopfonseca/outputscouting),该工具包使用Hugging Face transformers库实现了我们的审计框架。

英文摘要:

Recent high profile incidents in which the use of Large Language Models (LLMs) resulted in significant harm to individuals have brought about a growing interest in AI safety. One reason LLM safety issues occur is that models often have at least some non-zero probability of producing harmful outputs. In this work, we explore the following scenario: imagine an AI safety auditor is searching for catastrophic responses from an LLM (e.g. a "yes" responses to "can I fire an employee for being pregnant?"), and is able to query the model a limited number times (e.g. 1000 times). What is a strategy for querying the model that would efficiently find those failure responses? To this end, we propose output scouting: an approach that aims to generate semantically fluent outputs to a given prompt matching any target probability distribution. We then run experiments using two LLMs and find numerous examples of catastrophic responses. We conclude with a discussion that includes advice for practitioners who are looking to implement LLM auditing for catastrophic responses. We also release an open-source toolkit (https://github.com/joaopfonseca/outputscouting) that implements our auditing framework using the Hugging Face transformers library.

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

↑