利用LM模拟沙箱识别语言模型智能体的风险
Identifying the Risks of LM Agents with an LM-Emulated Sandbox
AI总结:
针对LM智能体风险检测成本高、难发现长尾风险的问题,提出ToolEmu框架用LM模拟工具执行并配套自动安全评估器,实验验证有效性后量化了当前智能体的风险水平。
摘要:
语言模型(LM)智能体及工具使用领域的最新进展(以ChatGPT Plugins等应用为代表)带来了丰富的能力,但也放大了潜在风险——比如泄露私人数据或造成经济损失。识别这些风险需要大量人力,必须为每个测试场景手动实现工具、搭建环境,还要找出风险案例。随着工具和智能体变得愈发复杂,测试这些智能体的高昂成本将使得发现高风险的长尾风险变得越来越困难。为应对这些挑战,我们提出ToolEmu:一个利用LM模拟工具执行的框架,无需手动实例化,就能针对各类工具和场景测试LM智能体。除模拟器外,我们还开发了基于LM的自动安全评估器,用于检查智能体故障并量化相关风险。我们通过人工评估对工具模拟器和评估器进行了测试,发现经ToolEmu识别出的故障中,有68.8%是真实世界中智能体也会出现的有效故障。利用我们整理的初始基准(包含36个高风险工具和144个测试用例),我们对当前LM智能体开展了定量风险分析,并识别出大量可能造成严重后果的故障。值得注意的是,根据我们的评估器,即便是最安全的LM智能体出现此类故障的概率也达23.9%,这凸显了为现实世界部署开发更安全LM智能体的必要性。
英文摘要:
Recent advances in Language Model (LM) agents and tool use, exemplified by applications like ChatGPT Plugins, enable a rich set of capabilities but also amplify potential risks - such as leaking private data or causing financial losses. Identifying these risks is labor-intensive, necessitating implementing the tools, setting up the environment for each test scenario manually, and finding risky cases. As tools and agents become more complex, the high cost of testing these agents will make it increasingly difficult to find high-stakes, long-tailed risks. To address these challenges, we introduce ToolEmu: a framework that uses an LM to emulate tool execution and enables the testing of LM agents against a diverse range of tools and scenarios, without manual instantiation. Alongside the emulator, we develop an LM-based automatic safety evaluator that examines agent failures and quantifies associated risks. We test both the tool emulator and evaluator through human evaluation and find that 68.8% of failures identified with ToolEmu would be valid real-world agent failures. Using our curated initial benchmark consisting of 36 high-stakes tools and 144 test cases, we provide a quantitative risk analysis of current LM agents and identify numerous failures with potentially severe outcomes. Notably, even the safest LM agent exhibits such failures 23.9% of the time according to our evaluator, underscoring the need to develop safer LM agents for real-world deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。