arXiv:2503.02911cs.SEcs.AI2025-03被引 26

用自然语言自动生成自动驾驶测试场景,省去手动配置

Text2Scenario: Text-Driven Scenario Generation for Autonomous Driving Test

  • 用大模型解析用户文本,自动提取场景要素
  • 90%以上生成场景符合用户预期,无需人工调参
  • 适合自动驾驶研发团队快速构建多样化测试集

自动驾驶测试是产品部署前评估性能的关键方法。在仿真环境中创建分段场景被证明是一种高效策略,但传统手工设计过程耗时费力,制约了技术发展。为此,我们提出Text2Scenario框架,利用大语言模型(LLM)根据自然语言输入自动生成贴近用户需求的仿真测试场景。该框架通过精心设计的提示工程,使LLM作为文本解析器,从分层组织的场景库中提取最匹配用户偏好的组件;再基于组件优先级,按领域特定语言(DSL)语料库逐项匹配并关联,最终生成可执行场景。实验表明,该提示工程能精准提取多种描述格式中的细微场景特征,多数生成场景与用户初始期望高度一致,实现无需人工配置的高效、精确评估,显著提升自动驾驶系统测试效率。项目页面:https://caixxuan.github.io/Text2Scenario.GitHub.io。

原文摘要 · Abstract (English)

Autonomous driving (AD) testing constitutes a critical methodology for assessing performance benchmarks prior to product deployment. The creation of segmented scenarios within a simulated environment is acknowledged as a robust and effective strategy; however, the process of tailoring these scenarios often necessitates laborious and time-consuming manual efforts, thereby hindering the development and implementation of AD technologies. In response to this challenge, we introduce Text2Scenario, a framework that leverages a Large Language Model (LLM) to autonomously generate simulation test scenarios that closely align with user specifications, derived from their natural language inputs. Specifically, an LLM, equipped with a meticulously engineered input prompt scheme functions as a text parser for test scenario descriptions, extracting from a hierarchically organized scenario repository the components that most accurately reflect the user's preferences. Subsequently, by exploiting the precedence of scenario components, the process involves sequentially matching and linking scenario representations within a Domain Specific Language corpus, ultimately fabricating executable test scenarios. The experimental results demonstrate that such prompt engineering can meticulously extract the nuanced details of scenario elements embedded within various descriptive formats, with the majority of generated scenarios aligning closely with the user's initial expectations, allowing for the efficient and precise evaluation of diverse AD stacks void of the labor-intensive need for manual scenario configuration. Project page: https://caixxuan.github.io/Text2Scenario.GitHub.io.

自动驾驶文本生成仿真测试大模型应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。