Early Fault-Detection in the Development of Exceedingly Complex Reactive Systems

Assaf Marron, David Harel

TL;DR

This paper introduces "Super-Reactive Systems" (SR systems) – complex, evolving systems deeply intertwined with the physical world. To tackle the critical challenge of finding hidden faults early in their development, the authors propose an architecture leveraging Large Language Models (LLMs) for natural language-based modeling, analysis, and simulation. This approach aims to uncover subtle interdependencies and potential failures before they manifest in deployed systems.

What Problem Does This Paper Address?

The authors highlight a growing problem: the increasing complexity and interconnectedness of modern systems, which they term "Super-Reactive Systems" (SR systems). These systems, found in everything from communication networks to autonomous vehicles, are constantly changing and interacting with their environment and other systems. This complexity makes it incredibly difficult to identify hidden faults and potential failures early in the design and development phases. Traditional methods struggle with the informal nature of requirements, scalability issues, and the implicit knowledge engineers must infer. This gap poses significant risks to safety, the environment, and society, as evidenced by recent high-profile system failures. The paper aims to bridge this gap by proposing a novel approach to early fault detection.

Methods

The core of the proposed solution is an architecture centered around an "Intelligent Development Aide" (IDA) powered by AI, Generative AI, and LLMs. This IDA facilitates a new type of model called an "i-model."

Key methodological innovations include:

  • i-models: These models store information (requirements, goals, behaviors, etc.) primarily in natural language (NL), leveraging NL's expressiveness and context sensitivity. They support multiple, non-hierarchical abstraction lattices and are designed to capture tacit interdependencies between seemingly orthogonal requirements.
  • Just-In-Time (JIT) Interpretation: NL elements within the i-model are interpreted dynamically during simulation and analysis, aligning with the intended context and abstraction level.
  • i-model Builder: This component ingests diverse inputs (requirements documents, code, risk analyses, etc.) and uses LLMs to automatically discover and record undocumented interdependencies. It can also interactively query engineers for clarification.
  • i-model Execution and Simulation Engine: This engine dynamically interprets the i-model, generating narratives, event logs, and synthetic videos of possible runs and "what if" scenarios.
  • i-model Analysis Engine: This component performs formal model-checking-like analysis on the i-model, proactively searching for execution trajectories leading to fault states. It leverages NL interpretation and can interface with classical model checkers.
  • Emergent Effect Detector: This component analyzes simulation outputs to identify unexpected patterns and emergent effects, both structural and behavioral.
  • Repair Advisor: This component helps pinpoint model components that need changing in response to identified issues and describes the impact of proposed changes.

Datasets

Not discussed in the paper. The paper focuses on the methodology and architecture for building and analyzing models, rather than on training specific models on pre-existing datasets. The i-model builder is designed to ingest various forms of project-specific documentation.

Key Insights and Ideas

  • Natural Language as a First-Class Modeling Citizen: The paper argues that NL, with its inherent expressiveness and ability to handle context and abstraction, can be a powerful tool for modeling complex systems, especially when augmented by AI.
  • Capturing Tacit Interdependencies is Crucial: A major insight is that many faults arise from unstated relationships between requirements that engineers often infer implicitly. The i-model builder is specifically designed to uncover and record these.
  • Deferred Interpretation for Flexibility: By interpreting NL elements "just-in-time," the system gains flexibility and can adapt to context, allowing for more nuanced analysis than rigid, pre-compiled models.
  • LLMs as "Intelligent Development Aides": The paper positions LLMs not just as code generators, but as sophisticated assistants capable of understanding, inferring, and interacting with complex system specifications in NL.
  • "Unmodeling" for Focus: The concept of "unmodeling" – explicitly ignoring certain entities or assumptions – is introduced as a way to precisely define the operational design domain (ODD) and guide the AI tools effectively.

Key Results

The paper is primarily a proposal for a new architecture and methodology. Therefore, it does not present quantitative results from a deployed system. However, it offers qualitative examples:

  • An LLM successfully described the behavior of cars in a traffic scenario, including nuanced reactions to a stalled vehicle, demonstrating its ability to reason about dynamic interactions.
  • An LLM was able to answer questions about reachability and construct state graphs for parallel synchronous state machines, showcasing its analytical capabilities.
  • The authors express confidence that their proposed architecture, by combining LLMs with a novel modeling approach, can enable previously impractical analyses and significantly improve early fault detection.

Limitations and Future Work

Limitations:

  • The paper acknowledges that while LLM responses can be highly reliable with proper training, they can still contain errors. Interactive validation by engineers is crucial.
  • The authors explicitly exclude the use of AI/ML/LLMs in runtime decision-making, monitoring, DevOps, or formal verification of final code, focusing solely on the early development and analysis stages.
  • The scalability and trustworthiness of automated validation techniques for LLM-based solutions need further research.

Future Work:

  • The authors are initiating a research project to develop the proposed roadmap and tools.
  • Further research is needed to develop automated validation techniques for LLM-based fault detection solutions.
  • Enhancing LLM general and domain-specific analytical capabilities and their integration with ongoing software and system engineering research is a key direction.
  • Developing robust methods for AI-explainability and randomized testing of model answers is also highlighted.

Summary updated

BibTeX
@inproceedings{marron2025early,
  author = {Assaf Marron and David Harel},
  title = {{Early Fault-Detection in the Development of Exceedingly Complex Reactive Systems}},
  booktitle = {MODELSWARD},
  year = {2025},
  doi = {10.5220/0013369200003896},
}
Figure