# A Compositional Approach to Creating Architecture Frameworks with an Application to Distributed AI Systems

arXiv: https://arxiv.org/abs/2212.13570 · HTML: https://mlsanity.com/paper/2212.13570/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- Builds on 13 of its 73 references that are in the map.
- First posted on arXiv 27 Dec 2022.

## Builds on (most cited first, 13 of 13)

- [Software Engineering for AI-Based Systems: A Survey](https://mlsanity.com/paper/2105.01984/) (2021)
- [Requirements Engineering for Machine Learning: Perspectives from Data Scientists](https://mlsanity.com/paper/1908.04674/) (2019)
- [Understanding Continual Learning Settings with Data Distribution Drift Analysis](https://mlsanity.com/paper/2104.01678/) (2021)
- [Engineering AI Systems: A Research Agenda](https://mlsanity.com/paper/2001.07522/) (2020)
- [Studying Software Engineering Patterns for Designing Machine Learning Systems](https://mlsanity.com/paper/1910.04736/) (2019)
- [Software Architecture for ML-based Systems: What Exists and What Lies Ahead](https://mlsanity.com/paper/2103.07950/) (2021)
- [Non-functional Requirements for Machine Learning: Understanding Current Use and Challenges in Industry](https://mlsanity.com/paper/2109.00872/) (2021)
- [Requirement Engineering Challenges for AI-intense Systems Development](https://mlsanity.com/paper/2103.10270/) (2021)
- [Setting AI in context: A case study on defining the context and operational design domain for automated driving](https://mlsanity.com/paper/2201.11451/) (2022)
- [T-Reqs: Tool Support for Managing Requirements in Large-Scale Agile System Development](https://mlsanity.com/paper/1805.02769/) (2018)
- [Compositional Thinking in Cyberphysical Systems Theory](https://mlsanity.com/paper/2105.12911/) (2021)
- [Addressing the non-functional requirements of computer vision systems: A case study](https://mlsanity.com/paper/1410.8623/) (2014)
- [Smart Grid: A Survey of Architectural Elements, Machine Learning and Deep Learning Applications and Future Directions](https://mlsanity.com/paper/2010.08094/) (2020)

## Built on by (most cited first, 4 of 4)

- [RE-centric Recommendations for the Development of Trustworthy(er) Autonomous Systems](https://mlsanity.com/paper/2306.01774/) (2023)
- [What About the Data? A Mapping Study on Data Engineering for AI Systems](https://mlsanity.com/paper/2402.05156/) (2024)
- [VEDLIoT -- Next generation accelerated AIoT systems and applications](https://mlsanity.com/paper/2305.05388/) (2023)
- [The More the Merrier? Navigating Accuracy vs. Energy Efficiency Design Trade-Offs in Ensemble Learning Systems](https://mlsanity.com/paper/2407.02914/) (2024)

## Abstract (arXiv)

Artificial intelligence (AI) in its various forms finds more and more its way into complex distributed systems. For instance, it is used locally, as part of a sensor system, on the edge for low-latency high-performance inference, or in the cloud, e.g. for data mining. Modern complex systems, such as connected vehicles, are often part of an Internet of Things (IoT). To manage complexity, architectures are described with architecture frameworks, which are composed of a number of architectural views connected through correspondence rules. Despite some attempts, the definition of a mathematical foundation for architecture frameworks that are suitable for the development of distributed AI systems still requires investigation and study. In this paper, we propose to extend the state of the art on architecture framework by providing a mathematical model for system architectures, which is scalable and supports co-evolution of different aspects for example of an AI system. Based on Design Science Research, this study starts by identifying the challenges with architectural frameworks. Then, we derive from the identified challenges four rules and we formulate them by exploiting concepts from category theory. We show how compositional thinking can provide rules for the creation and management of architectural frameworks for complex systems, for example distributed systems with AI. The aim of the paper is not to provide viewpoints or architecture models specific to AI systems, but instead to provide guidelines based on a mathematical formulation on how a consistent framework can be built up with existing, or newly created, viewpoints. To put in practice and test the approach, the identified and formulated rules are applied to derive an architectural framework for the EU Horizon 2020 project ``Very efficient deep learning in the IoT" (VEDLIoT) in the form of a case study.
