A Local Agentic AI Framework to Generate Edge Case Scenarios for Safety Assurance
cs.AI, cs.RO
Submitted: 2026-10-09
Updated: 2026-10-09
Code: https://github.com/unity-technologies/ml-agents
License: http://creativecommons.org/licenses/by/4.0/
The gist: Generating edge case scenarios is crucial for training, testing and safety assuring autonomous systems.
Terminology
Abstract
Generating edge case scenarios is crucial for training, testing and safety assuring autonomous systems. This identifies hazardous failures to increase system reliability and robustness, ensures the system can still function safely on the boundaries of its operational design domain and learns the expected system behaviour for these edge cases. The rapid advancement in the generation and analysis capabilities of language models (LMs) has expanded their applicability and recent work has investigated LM scenario generation. However, many recent approaches rely on human-in-the-loop or rule-based strategies. This restricts the LM's ability to generate diverse and edge case scenarios; the long tail of the distribution. Our work uses local LMs in a laptop-based agentic AI framework for adaptive scenario generation. This is cheap, fully-controlled, ensures data privacy and security. It uses think, act, observe, update, and continue loops with lightweight JSON encoding to generate scenarios. We use the system requirements, system description and environment description as knowledge bases in contextual prompts for an LM to ensure scenario realism. A second, independent LM critiques each scenario using domain specific criteria so it can be refined. The refined scenarios are run in simulation and evaluation metrics collected. These metric scores are analysed and similar scenarios are created for edge cases (exploitation) or novel scenarios are generated to explore the scenario space. Post-hoc clustering using metric scores and thematic-type analysis of the rich-text scenario descriptions produced by the LM pinpoints functional gaps and their triggering conditions. This creates traceable evidence for the safety assurance case. Our work highlights the potential of a flexible and adaptive local agentic AI framework for automating edge case generation and producing traceable safety assurance evidence.
Sources
- Out-of-Distribution Detection for Safety Assurance of AI and Autonomous Systems
- Guidance on the Safety Assurance of Autonomous Systems in Complex Environments (SACE)
- SAGE: Scalable Agentic 3D Scene Generation for Embodied AI
- From Failures to Fixes: LLM-Driven Scenario Repair for Self-Evolving Autonomous Driving
- PlannerForge: LLM Agents for Scenario-Based Testing of Motion Planners in Autonomous Driving
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Qwen3-Coder-Next Technical Report
- Nemotron 3 Nano: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning
- ReAct: Synergizing Reasoning and Acting in Language Models
- Unity: A General Platform for Intelligent Agents
- Proximal Policy Optimization Algorithms
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems