A Pattern-Driven and LLM-Assisted Approach for Decomposing Monolithic ML-Based Systems into Microservices

Research output: Contribution to Book/Report typesContribution to conference proceedingspeer-review

Abstract

The evolution of software systems has witnessed a marked shift from monolithic architectures to microservices. This migration is driven by the need to improve the scalability and maintainability of monolithic software systems. However, this shift is most noticeable in Machine Learning (ML)-based systems, where adding learning components brings extra layers of complexity. As ML becomes increasingly embedded in diverse application domains, the challenges of evolving, scaling, and maintaining these systems demand novel architectural solutions. While microservices have proven effective in addressing such challenges in traditional systems, a principled and systematic decomposition strategy tailored specifically to ML-based monoliths remains underexplored. In this paper, we introduce an automated approach for decomposing ML-based monolithic systems into microservices. Leveraging ML-specific architectural patterns, our method employs Large Language Models (LLMs) to detect ML layers, transformer embeddings to capture semantic similarities, and clustering to form coherent microservice candidates. We validate our approach on three monolithic ML-based systems and compare our decomposition results with two baseline approaches from the literature. The results demonstrate the effectiveness of our method in producing modular and ML-aware decompositions, with a precision of 84% and a recall of 65%, outperforming the baseline approaches.

Original languageEnglish
Title of host publicationService-Oriented Computing - 23rd International Conference, ICSOC 2025, Proceedings
EditorsMarco Aiello, Ilche Georgievski, Shuiguang Deng, Juan-Manuel Murillo, Boualem Benatallah, Zhongjie Wang
PublisherSpringer Science and Business Media Deutschland GmbH
Pages221-229
Number of pages9
ISBN (Print)9789819550111
DOIs
Publication statusPublished - 2026
Event23rd International Conference on Service-Oriented Computing, ICSOC 2025 - Shenzhen, China
Duration: 1 Dec 20254 Dec 2025

Publication series

NameLecture Notes in Computer Science
Volume16320 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference23rd International Conference on Service-Oriented Computing, ICSOC 2025
Country/TerritoryChina
CityShenzhen
Period1/12/254/12/25

Fingerprint

Dive into the research topics of 'A Pattern-Driven and LLM-Assisted Approach for Decomposing Monolithic ML-Based Systems into Microservices'. These topics are generated from the title and abstract of the publication. Together, they form a unique fingerprint.

Cite this