arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.03709cs.SEcs.AIcs.LGcs.PL
收藏

ScenicNL:从自然语言生成概率场景程序

ScenicNL: Generating Probabilistic Scenario Programs from Natural Language

University of California, Berkeley(加利福尼亚大学伯克利分校);Nissan Advanced Technology Center - Silicon Valley(日产先进技术中心硅谷分部)

Karim Elmaaroufi, Devan Shanker, Ana Cismaru, Marcell Vazquez-Chanlatte, Alberto Sangiovanni-Vincentelli, Matei Zaharia, Sanjit A. Seshia

AI总结:

本文提出ScenicNL系统,通过多个LLM、提示策略、编译器和模拟器,从警方碰撞报告等自然语言中生成Scenic概率场景程序,以表达CPS罕见事件中的不确定性并支持“如果……会怎样”推理。

摘要:

对于包括机器人和自动驾驶汽车在内的信息物理系统(CPS),大规模部署一直受到在罕见事件中运行时发生的致命错误的阻碍。为了重现诸如车辆碰撞之类的罕见事件,许多公司已经建立了日志系统,并聘请碰撞重建专家在仿真中细致地重建这些有价值的事件。然而,在这些方法中,“如果……会怎样”的问题不容易被提出和回答。我们提出了ScenarioNL,这是一个从自然语言创建场景程序的AI系统。具体来说,我们从警方碰撞报告中生成这些程序。报告通常包含关于事件确切细节的不确定性,我们通过概率编程语言(PPL)Scenic来表示这些不确定性。通过使用Scenic,我们可以清晰而简洁地表示CPS行为、属性和交互上的不确定性与变化。我们展示了使用最佳大型语言模型(LLM)的常见提示技术无法推理概率场景程序,也无法为Scenic这类低资源语言生成代码。我们的系统由多个LLM组成,这些LLM通过多种提示策略、一个编译器和一个模拟器串联在一起。我们在过去五年加利福尼亚州公开可用的自动驾驶汽车碰撞报告上评估了我们的系统,并分享了关于如何生成既在语义上有意义又在语法上正确的代码的见解。

英文摘要:

For cyber-physical systems (CPS), including robotics and autonomous vehicles, mass deployment has been hindered by fatal errors that occur when operating in rare events. To replicate rare events such as vehicle crashes, many companies have created logging systems and employed crash reconstruction experts to meticulously recreate these valuable events in simulation. However, in these methods, "what if" questions are not easily formulated and answered. We present ScenarioNL, an AI System for creating scenario programs from natural language. Specifically, we generate these programs from police crash reports. Reports normally contain uncertainty about the exact details of the incidents which we represent through a Probabilistic Programming Language (PPL), Scenic. By using Scenic, we can clearly and concisely represent uncertainty and variation over CPS behaviors, properties, and interactions. We demonstrate how commonplace prompting techniques with the best Large Language Models (LLM) are incapable of reasoning about probabilistic scenario programs and generating code for low-resource languages such as Scenic. Our system is comprised of several LLMs chained together with several kinds of prompting strategies, a compiler, and a simulator. We evaluate our system on publicly available autonomous vehicle crash reports in California from the last five years and share insights into how we generate code that is both semantically meaningful and syntactically correct.

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

↑