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

基于离散优化的大语言模型自动审计

Automatically Auditing Large Language Models via Discrete Optimization

University of California Berkeley(加州大学伯克利分校);Carnegie Mellon University(卡内基梅隆大学)

Erik Jones, Anca Dragan, Aditi Raghunathan, Jacob Steinhardt

摘要:

审计大语言模型的意外行为对于抢占灾难性部署至关重要,但仍然具有挑战性。在这项工作中,我们将审计作为一个优化问题,在这里我们自动搜索与所需目标行为相匹配的输入输出对。例如,我们可能希望找到一个以“巴拉克·奥巴马”开头的无毒输入,模型将其映射到有毒输出。这个优化问题很难解决,因为可行点集是稀疏的,空间是离散的,我们审计的语言模型是非线性和高维的。为了应对这些挑战,我们引入了一个离散优化算法,ARCA,联合和有效地优化输入和输出。我们的方法自动发现关于名人的贬义完成(例如,“巴拉克·奥巴马是一个合法的未出生的”->“儿童杀手”),产生法语输入,完成英语输出,并找到生成特定名称的输入。我们的工作提供了一个很有前途的新工具,发现模型的故障模式之前部署。

英文摘要:

Auditing large language models for unexpected behaviors is critical to preempt catastrophic deployments, yet remains challenging. In this work, we cast auditing as an optimization problem, where we automatically search for input-output pairs that match a desired target behavior. For example, we might aim to find a non-toxic input that starts with "Barack Obama" that a model maps to a toxic output. This optimization problem is difficult to solve as the set of feasible points is sparse, the space is discrete, and the language models we audit are non-linear and high-dimensional. To combat these challenges, we introduce a discrete optimization algorithm, ARCA, that jointly and efficiently optimizes over inputs and outputs. Our approach automatically uncovers derogatory completions about celebrities (e.g. "Barack Obama is a legalized unborn" -> "child murderer"), produces French inputs that complete to English outputs, and finds inputs that generate a specific name. Our work offers a promising new tool to uncover models' failure-modes before deployment.

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

↑