Skip to main content
QUICK REVIEW

[Paper Review] An Empirical Study of Software Architecture for Machine Learning.

Alex Serban, Joost Visser|arXiv (Cornell University)|May 26, 2021
Software Engineering ResearchComputer Science8 citations
TL;DR

This paper presents an empirical framework for re-architecting software systems to robustly integrate machine learning (ML) components, based on a mixed-methods study combining literature review, practitioner interviews, and a survey. It identifies 20 architecture challenges and solutions, linking architectural tactics to quality attributes like scalability and privacy, and demonstrates that traditional concerns like coupling remain critical alongside ML-specific issues such as continuous retraining.

ABSTRACT

Specific developmental and operational characteristics of machine learning (ML) components, as well as their inherent uncertainty, demand robust engineering principles are used to ensure their quality. We aim to determine how software systems can be (re-) architected to enable robust integration of ML components. Towards this goal, we conducted a mixed-methods empirical study consisting of (i) a systematic literature review to identify the challenges and their solutions in software architecture forML, (ii) semi-structured interviews with practitioners to qualitatively complement the initial findings, and (iii) a survey to quantitatively validate the challenges and their solutions. In total, we compiled and validated twenty challenges and solutions for (re-) architecting systems with ML components. Our results indicate, for example, that traditional software architecture challenges (e.g., component coupling) also play an important role when using ML components; along new ML specific challenges (e.g., the need for continuous retraining). Moreover, the results indicate that ML heightened decision drivers, such as privacy, play a marginal role compared to traditional decision drivers, such as scalability or interoperability. Using the survey, we were able to establish a link between architectural solutions and software quality attributes; which enabled us to provide twenty architectural tactics used for satisfying individual quality requirements of systems with ML components. Altogether, the results can be interpreted as an empirical framework that supports the process of (re-) architecting software systems with ML components.

Motivation & Objective

  • To identify and validate architectural challenges and solutions for integrating machine learning components into software systems.
  • To understand how traditional software architecture concerns interact with ML-specific challenges such as model retraining and data uncertainty.
  • To assess the relative importance of decision drivers—like privacy, scalability, and interoperability—in architectural decisions for ML systems.
  • To empirically link architectural tactics to specific quality attributes in systems with ML components.
  • To develop a validated, evidence-based framework for (re-)architecting software systems incorporating ML components.

Proposed method

  • Conducted a systematic literature review to identify existing challenges and solutions in software architecture for machine learning.
  • Performed semi-structured interviews with practitioners to qualitatively explore and expand on findings from the literature review.
  • Administered a quantitative survey to validate the identified challenges and solutions across a broader practitioner base.
  • Synthesized findings into a set of 20 architecture challenges and corresponding solutions, grounded in empirical evidence.
  • Mapped architectural solutions to specific quality attributes (e.g., scalability, privacy) using survey data to establish causal links.
  • Developed an empirical framework that supports systematic (re-)architecting of ML-integrated systems based on quality-driven design decisions.

Experimental results

Research questions

  • RQ1What are the key architectural challenges in integrating machine learning components into software systems, and what solutions are proposed in the literature?
  • RQ2How do practitioner experiences and priorities align with or diverge from those identified in the literature, particularly regarding decision drivers like privacy, scalability, and interoperability?
  • RQ3To what extent do traditional software architecture concerns (e.g., coupling, modularity) remain relevant in systems with ML components?
  • RQ4Which architectural tactics are most effective in satisfying specific non-functional quality attributes in ML-integrated systems?
  • RQ5How can architectural solutions be empirically linked to quality attributes in systems that incorporate machine learning components?

Key findings

  • Traditional software architecture challenges such as component coupling remain significant even in systems with machine learning components.
  • ML-specific challenges, particularly the need for continuous retraining of models, were consistently identified as critical architectural concerns.
  • Privacy emerged as a decision driver with a relatively marginal influence compared to more traditional concerns like scalability and interoperability.
  • A clear link was established between specific architectural tactics and quality attributes such as performance, reliability, and maintainability in ML-integrated systems.
  • The study validated twenty architecture challenges and solutions through a mixed-methods approach, forming a comprehensive, evidence-based framework for (re-)architecting ML systems.
  • The framework enables practitioners to make quality-driven architectural decisions by mapping tactics to specific non-functional requirements in ML-enabled systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.