From Words to Collisions: LLM-Guided Evaluation and Adversarial Generation of Safety-Critical Driving Scenarios

Yuan Gao, Mattia Piccinini, Korbinian Moller, Amr Alanwar, Johannes Betz
2/4/2025
13 citations
cs.AIcs.CLcs.RO

Official code: TUM-AVS/From-Words-to-Collisions (31 stars, Python, MIT, last commit 2025-08-29). 1 more implementation below.

Abstract

Ensuring the safety of autonomous vehicles requires virtual scenario-based testing, which depends on the robust evaluation and generation of safety-critical scenarios. So far, researchers have used scenario-based testing frameworks that rely heavily on handcrafted scenarios as safety metrics.

Show full abstract

To reduce the effort of human interpretation and overcome the limited scalability of these approaches, we combine Large Language Models (LLMs) with structured scenario parsing and prompt engineering to automatically evaluate and generate safety-critical driving scenarios. We introduce Cartesian and Ego-centric prompt strategies for scenario evaluation, and an adversarial generation module that modifies trajectories of risk-inducing vehicles (ego-attackers) to create critical scenarios. We validate our approach using a 2D simulation framework and multiple pre-trained LLMs. The results show that the evaluation module effectively detects collision scenarios and infers scenario safety. Meanwhile, the new generation module identifies high-risk agents and synthesizes realistic, safety-critical scenarios. We conclude that an LLM equipped with domain-informed prompting techniques can effectively evaluate and generate safety-critical driving scenarios, reducing dependence on handcrafted metrics. We release our open-source code and scenarios at: https://github.com/TUM-AVS/From-Words-to-Collisions.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
TUM-AVS/From-Words-to-CollisionsOfficial31PythonMIT2025-08-29
yuangao-tum/Riskaware-Scenario-analyseCommunity21PythonMIT2025-09-28
MIT

[ITSC'25] LLM-Guided Evaluation and Adversarial Generation of Safety-Critical Driving Scenarios

315PythonApr 27, 20251 years agoMIT
MIT
210PythonJan 31, 20251 years agoMIT

Similar Papers

Cite this paper

@article{gao2025from,
  title  = {From Words to Collisions: LLM-Guided Evaluation and Adversarial Generation of Safety-Critical Driving Scenarios},
  author = {Yuan Gao and Mattia Piccinini and Korbinian Moller and Amr Alanwar and Johannes Betz},
  year   = {2025},
  eprint = {2502.02145},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.02145v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.02145.svg)](https://codeofpaper.com/paper/2502.02145)

Discussion