Towards Automated Safety Requirements Derivation Using Agent-based RAG

Authors

  • Balahari Vignesh Balu Fraunhofer IKS, Fraunhofer Institute for Cognitive Systems IKS
  • Florian Geissler Fraunhofer IKS, Fraunhofer Institute for Cognitive Systems IKS
  • Francesco Carella Fraunhofer IKS, Fraunhofer Institute for Cognitive Systems IKS
  • Joao-Vitor Zacchi Fraunhofer IKS, Fraunhofer Institute for Cognitive Systems IKS
  • Josef Jiru Fraunhofer IKS, Fraunhofer Institute for Cognitive Systems IKS
  • Nuria Mata Fraunhofer IKS, Fraunhofer Institute for Cognitive Systems IKS
  • Reinhard Stolle Fraunhofer IKS, Fraunhofer Institute for Cognitive Systems IKS

DOI:

https://doi.org/10.1609/aaaiss.v5i1.35605

Abstract

We study the automated derivation of safety requirements in a self-driving vehicle use case, leveraging LLMs in combination with agent-based retrieval-augmented generation. Conventional approaches that utilise pre-trained LLMs to assist in safety analyses typically lack domain-specific knowledge. Existing RAG approaches address this issue, yet their performance deteriorates when handling complex queries and it becomes increasingly harder to retrieve the most relevant information. This is particularly relevant for safety-relevant applications. In this paper, we propose the use of agent-based RAG to derive safety requirements and show that the retrieved information is more relevant to the queries. We implement an agent-based approach on a document pool of automotive standards and the Apollo case study, as a representative example of an automated driving perception system. Our solution is tested on a data set of safety requirement questions and answers, extracted from the Apollo data. Evaluating a set of selected RAG metrics, we present and discuss advantages of a agent-based approach compared to default RAG methods.

Downloads

Published

2025-05-28

How to Cite

Balu, B. V., Geissler, F., Carella, F., Zacchi, J.-V., Jiru, J., Mata, N., & Stolle, R. (2025). Towards Automated Safety Requirements Derivation Using Agent-based RAG. Proceedings of the AAAI Symposium Series, 5(1), 299–307. https://doi.org/10.1609/aaaiss.v5i1.35605

Issue

Section

Machine Learning and Knowledge Engineering for Trustworthy Multimodal and Generative AI (Full Papers)