cs.AIAug 17, 2026

Think Inside the Chunk: RegulaRAG for Regulation-Compliant Scenario Generation using LLMs: A Case Study of UN Regulation No. 152

Authors: Vahid Zolfaghari, Nenad Petrovic, AndrÉ Schamschurko, Alois Knoll

Organizations: Chair of Robotics, Artificial Intelligence (AI) and Embedded Systems, Technical University of Munich, Munich, Germany

Abstract

Generating regulation-compliant test scenarios is essential for validating safety-critical automotive systems, yet Large Language Models (LLMs) struggle to ground outputs in long, hierarchical standards. We present RegulaRAG, a Retrieval-Augmented Generation (RAG) pipeline that couples SmartChunking, reference-aware enrichment of paragraphs and tables via graph traversal, with Smart Retrieve & Rerank over these enriched units. To test our system, we evaluate on a manually curated dataset covering all scenarios in UN Regulation No. 152 (AEBS). Our study comprises: (i) a three-step progressive search that identifies near-optimal retrieval parameters without exhaustive grid search; (ii) head-to-head comparisons against five baseline RAG systems; and (iii) a robustness stress test that scales the source corpus with distractor content. Outputs are evaluated using a customized penalized scoring metric. Across all experiments, RegulaRAG achieves the highest average Meta-Score (82.99), outperforming the next-best system by 43% (NoRAG: 57.94), while operating at 14k-25k tokens per query versus up to 500k for graphcentric baselines. It maintains strong performance, remaining stable even as the number of regulatory sources grows, whereas competing RAG systems degrade sharply in both quality and robustness.

Figures & tables

Explore similar work

CardsList
  1. Chat2Scenic: An Iterative RAG-Based Framework for Scenario Generation in Autonomous Driving

    Jul 15, 2026Yuan Gao, Wenting Miao, Mattia Piccinini +3Autonomous Driving BenchmarksRetrieval-Augmented Generation

  2. AI Act Evaluation Benchmark: An Open, Transparent, and Reproducible Evaluation Dataset for NLP and RAG Systems

    Mar 10, 2026Athanasios Davvetas, Michael Papademas, Xenia Ziouvelou +1RAG Evaluation

  3. RAG-TESTER: Automated End-to-End Testing of Retrieval-Augmented Large Language Models

    Jul 26, 2026Ange Maiztegi, Jon Ayerdi, Miren Illarramendi +1RAG EvaluationAutomated Test Generation