HASCO: A Hybrid AI Simulation Compiler for Semantic Accident Reconstruction
Paper i proceeding, 2026

The validation of Automated Driving Systems (ADSs) has shifted from distance-based metrics to Scenario-Based Testing (SBT). Large Language Models (LLMs) have emerged as powerful tools with potential for generating vehicular scenarios at scale. However, generative models, used for direct simulation synthesis, produce inadequate output, therefore necessitating a more structured compilation approach. In this regard, we present HASCO (Hybrid AI Simulation COmpiler), a system that translates natural-language driving scene specifications into executable simulation artifacts (XOSC/XODR files) for the esmini/OpenSCENARIO ecosystem. While LLMs excel at narrative parsing, we demonstrate that direct synthesis of simulation artifacts fails in the vast majority of cases due to hallucinated physics or schema violations. To resolve this, HASCO treats scenario creation as a compilation task rather than a generative one. The pipeline supports three compilation paths: direct synthesis, a Python intermediate (via scenariogeneration), and an ontology-guided path that grounds intent into an intermediate representation (IR) before compilation. We further evaluate a self-judging mechanism for automated repair. Across six operating modes evaluated on 40 real-world accident reports, the ontology-guided compiler and Python-based compiler achieve 95% and 90% executability rates, respectively (compared to 5% for direct synthesis). Additionally, we evaluate outputs on semantic fidelity, positioning HASCO as a robust tool for forensic scene reconstruction.

Semantic Reconstruction

Large Language Models

Scenario Generation

Autonomous Driving

OpenSCENARIO

Författare

Edin Jelačić

Mälardalens universitet

Rong Gu

Prover Technology AB

Cristina Seceleanu

Mälardalens universitet

Ning Xiong

Mälardalens universitet

Peter Backeman

Mälardalens universitet

Tiberiu Seceleanu

Mälardalens universitet

Zhennan Fei

Chalmers, Elektroteknik, System- och reglerteknik

Volvo Group

Ali Nouri

Volvo Group

Göteborgs universitet

Chalmers, Data- och informationsteknik, Interaktionsdesign och Software Engineering

OpenAccess Series in Informatics

21906807 (ISSN)

Vol. 143 4
9783959774253 (ISBN)

30th Ada-Europe International Conference on Reliable Software Technologies, AEiC 2026
Vasteras, Sweden,

Ämneskategorier (SSIF 2025)

Datavetenskap (datalogi)

Inbäddad systemteknik

DOI

10.4230/OASIcs.AEiC.2026.4

Mer information

Senast uppdaterat

2026-07-06