AI-Enabled Software and System Architecture Frameworks: Focusing on smart Cyber-Physical Systems (CPS)

Armin Moin, Atta Badii, Stephan Günnemann, Moharram ChallengerarXiv 2023 · DOI

Introduction

Traditional software architecture frameworks, such as TOGAF or the "4+1" model, are increasingly inadequate for the complexities of Machine Learning (ML). In traditional software engineering, system behavior is defined by code at design time. However, ML-enabled systems derive behavior from data at runtime, necessitating a fundamental shift in architectural thinking. This paper addresses the "ML Mismatch"—the gap between the concerns of software architects (e.g., UML, class diagrams) and those of data scientists (e.g., model accuracy, retraining loops) and data engineers (e.g., scalable pipelines).

Methods

The researchers conducted a two-step empirical study to validate proposed framework enhancements. First, qualitative semi-structured interviews were held with four domain experts to identify initial stakeholder concerns. Second, a quantitative survey was administered to 61 subject matter experts (SMEs) across 25 organizations and 10 countries. The study aimed to identify which "model kinds" (notations like math, charts, or UML) are most effective for different stakeholders during collaboration.

Datasets and Demographics

The primary dataset for this research consists of survey responses from 61 industry and academic experts. This group provides a diverse cross-section of the field, including data scientists, ML engineers, software architects, and CTOs. The demographic breakdown ensures that the proposed framework extensions are grounded in the actual needs of modern practitioners.

Demographic breakdown of the 61 survey participants, including roles and expertise levels.

Key Insights and Framework Extensions

The authors argue that ML models must be treated as distinct architectural entities. To bridge the communication gap, the paper proposes formalizing how modern stakeholders are integrated through dedicated viewpoints.

Two New Viewpoint Categories

  1. Analytics Modeling (Data Science): Focuses on mathematical models, inference logic, and performance metrics like Accuracy, Precision, and Recall.
  2. Analytics Operations (Data Engineering): Focuses on the "plumbing"—the pipelines, versioning, and deployment of models into production.
Example of a formalized viewpoint definition, outlining stakeholders, concerns, and modeling techniques.

Notation Preferences

A critical finding is the divergence in preferred notations. Data scientists prioritize mathematical notation and statistical plots for peer collaboration. In contrast, data engineers prefer data flow diagrams and UML class diagrams. For data scientists, the "workflow/pipeline" is the most vital model kind, emphasizing that data movement is often more architecturally significant than static component structure.

Key Results

The study validated a list of 14 stakeholder groups, including new roles like Ethics Committees, Data Protection Officers, and Safety Engineers. The paper provides a comprehensive mapping (Table IV in the original text) of which notations should be used for specific stakeholder collaborations. For instance, mathematical notation is the gold standard for data scientists, while data flow diagrams are preferred by data engineers.

Limitations and Future Work

The study's reliance on convenience sampling may introduce bias, and the views of operations and maintenance teams were not fully explored. Future research will focus on creating standardized "plug-ins" for existing frameworks like TOGAF and extending these architectural viewpoints to other AI sub-fields, such as symbolic AI and robotics.

Summary updated

Abstract

Various architecture frameworks for software, systems, and enterprises have been proposed in the literature. They identified several stakeholders and defined modeling perspectives, architecture viewpoints, and views to frame and address stakeholder concerns. However, the stakeholders with data science and Machine Learning (ML) related concerns, such as data scientists and data engineers, are yet to be included in existing architecture frameworks. Only this way can we envision a holistic system architecture description of an ML-enabled system. Note that the ML component behavior and functionalities are special and should be distinguished from traditional software system behavior and functionalities. The main reason is that the actual functionality should be inferred from data instead of being specified at design time. Additionally, the structural models of ML components, such as ML model architectures, are typically specified using different notations and formalisms from what the Software Engineering (SE) community uses for software structural models. Yet, these two aspects, namely ML and non-ML, are becoming so intertwined that it necessitates an extension of software architecture frameworks and modeling practices toward supporting ML-enabled system architectures. In this paper, we address this gap through an empirical study using an online survey instrument. We surveyed 61 subject matter experts from over 25 organizations in 10 countries.
BibTeX
@misc{moin2023ai,
  author = {Armin Moin and Atta Badii and Stephan Günnemann and Moharram Challenger},
  title = {{AI-Enabled Software and System Architecture Frameworks: Focusing on smart Cyber-Physical Systems (CPS)}},
  year = {2023},
  eprint = {2308.05239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.05239},
}
Figure