基于扰动观测的黑盒大语言模型规划器鲁棒性表征:适应性压力测试
Characterizing the Robustness of Black-Box LLM Planners Under Perturbed Observations with Adaptive Stress Testing
AI总结:
本文研究了在扰动观测下大语言模型规划器的鲁棒性,提出适应性压力测试方法,通过蒙特卡洛树搜索高效搜索提示扰动空间,发现导致模型高不确定或崩溃的场景和配置。
摘要:
大型语言模型(LLMs)最近在决策任务中表现出色,包括规划、控制和预测,但其产生不安全和不期望输出的倾向带来了风险。在传感器噪声或不可靠的环境中,这种不良行为进一步加剧。表征LLM规划器对各种观测的响应对于主动避免安全关键场景中的故障至关重要。我们特别研究了LLM在两个不同的扰动维度上的响应。类似先前的工作,一个维度通过随机化细节顺序、修改少量示例访问等生成语义相似的提示。与我们的工作不同,第二个维度模拟了访问不同传感器和噪声,以模仿原始传感器或检测算法故障。初步案例研究显示,两种维度均导致在多智能体驾驶环境中LLM产生幻觉。然而,手动覆盖多个场景的整个扰动空间是不可行的。因此,我们提出了一种新颖的方法,利用适应性压力测试(AST)结合蒙特卡洛树搜索(MCTS)高效搜索提示扰动空间。我们的AST公式使能够发现导致语言模型行为不确定甚至崩溃的场景、传感器配置和提示措辞。通过在多样化场景中生成MCTS提示扰动树,我们通过大量实验表明,离线分析可用于主动理解运行时可能发生的潜在故障。代码可在https://sites.google.com/illinois.edu/astllm获取。
英文摘要:
Large language models (LLMs) have recently demonstrated success in decision-making tasks including planning, control, and prediction, but their tendency to hallucinate unsafe and undesired outputs poses risks. This unwanted behavior is further exacerbated in environments where sensors are noisy or unreliable. Characterizing the behavior of LLM planners to varied observations is necessary to proactively avoid failures in safety-critical scenarios. We specifically investigate the response of LLMs along two different perturbation dimensions. Like prior works, one dimension generates semantically similar prompts with varied phrasing by randomizing order of details, modifying access to few-shot examples, etc. Unique to our work, the second dimension simulates access to varied sensors and noise to mimic raw sensor or detection algorithm failures. An initial case study in which perturbations are manually applied show that both dimensions lead LLMs to hallucinate in a multi-agent driving environment. However, manually covering the entire perturbation space for several scenarios is infeasible. As such, we propose a novel method for efficiently searching the space of prompt perturbations using adaptive stress testing (AST) with Monte-Carlo tree search (MCTS). Our AST formulation enables discovery of scenarios, sensor configurations, and prompt phrasing that cause language models to act with high uncertainty or even crash. By generating MCTS prompt perturbation trees across diverse scenarios, we show through extensive experiments that offline analyses can be used to proactively understand potential failures that may arise at runtime. Code is available at https://sites.google.com/illinois.edu/astllm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。