用自适应压力测试评估大模型在传感器噪声下的规划鲁棒性
Characterizing the Robustness of Black-Box LLM Planners Under Perturbed Observations with Adaptive Stress Testing
- 通过自适应压力测试结合蒙特卡洛树搜索,高效探索提示扰动空间
- 在多智能体驾驶环境中发现模型因传感器噪声或提示变化而产生幻觉或崩溃
- 适用于安全关键场景的离线故障预判,适合自动驾驶与机器人领域研究者
大型语言模型(LLMs)在规划、控制和预测等决策任务中表现优异,但其易产生不安全或意外输出的问题在传感器噪声或不可靠环境下更为严重。为预防高风险场景中的失效,本文研究了LLM规划器在两种不同扰动维度下的响应:一是通过随机化细节顺序、修改少样本示例等方式生成语义相似但表述不同的提示;二是模拟不同传感器及噪声,以复现原始传感器或检测算法故障。初步人工测试显示,两种扰动均导致模型在多智能体驾驶环境中产生幻觉。然而,手动覆盖所有扰动情形不可行。为此,提出一种基于蒙特卡洛树搜索(MCTS)的自适应应力测试(AST)方法,可高效发现引发模型高不确定性甚至崩溃的特定提示、传感器配置与场景。通过在多种场景中构建MCTS提示扰动树,实验表明离线分析可有效预判运行时潜在失败。代码已公开于 https://sites.google.com/illinois.edu/astllm。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。