HASCO: A Hybrid AI Simulation Compiler for Semantic Accident Reconstruction
Paper in 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

Author

Edin Jelačić

Mälardalens university

Rong Gu

Prover Technology AB

Cristina Seceleanu

Mälardalens university

Ning Xiong

Mälardalens university

Peter Backeman

Mälardalens university

Tiberiu Seceleanu

Mälardalens university

Zhennan Fei

Chalmers, Electrical Engineering, Systems and control

Volvo Group

Ali Nouri

Volvo Group

University of Gothenburg

Chalmers, Computer Science and Engineering (Chalmers), Interaction Design and 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,

Subject Categories (SSIF 2025)

Computer Sciences

Embedded Systems

DOI

10.4230/OASIcs.AEiC.2026.4

More information

Latest update

7/6/2026 9