Extracting Overlapping Microservices from Monolithic Code via Deep Semantic Embeddings and Graph Neural Network-Based Soft Clustering

Morteza Ziabakhsh, Kiyan Rezaee, Sadegh Eskandari, Seyed Amir Hossein Tabatabaei, Mohammad M. Ghassemi
8/10/2025
2 citations
cs.SEcs.AIcs.CV
gnn

No official code found. Best implementation: Morteza-24/Monolith-to-Microservice (2 stars, Java, last commit 2025-12-18).

Abstract

Modern software systems are increasingly shifting from monolithic architectures to microservices to enhance scalability, maintainability, and deployment flexibility. Existing microservice extraction methods typically rely on hard clustering, assigning each software component to a single microservice.

Show full abstract

This approach often increases inter-service coupling and reduces intra-service cohesion. We propose Mo2oM (Monolithic to Overlapping Microservices), a framework that formulates microservice extraction as a soft clustering problem, allowing components to belong probabilistically to multiple microservices. This approach is inspired by expert-driven decompositions, where practitioners intentionally replicate certain software components across services to reduce communication overhead. Mo2oM combines deep semantic embeddings with structural dependencies extracted from methodcall graphs to capture both functional and architectural relationships. A graph neural network-based soft clustering algorithm then generates the final set of microservices. We evaluate Mo2oM on four open-source monolithic benchmarks and compare it against eight state-of-the-art baselines. Our results demonstrate that Mo2oM achieves improvements of up to 40.97% in structural modularity (balancing cohesion and coupling), 58% in inter-service call percentage (communication overhead), 26.16% in interface number (modularity and decoupling), and 38.96% in non-extreme distribution (service size balance) across all benchmarks.

View on arXivView PDF

Code Implementations(1)

Official implementation for the paper "Extracting Overlapping Microservices from Monolithic Code via Deep Semantic Embeddings and Graph Neural Network-Based Soft Clustering"

22Java, Jupyter NotebookMay 28, 202311 months ago

Similar Papers

Cite this paper

@article{ziabakhsh2025extracting,
  title  = {Extracting Overlapping Microservices from Monolithic Code via Deep Semantic Embeddings and Graph Neural Network-Based Soft Clustering},
  author = {Morteza Ziabakhsh and Kiyan Rezaee and Sadegh Eskandari and Seyed Amir Hossein Tabatabaei and Mohammad M. Ghassemi},
  year   = {2025},
  eprint = {2508.07486},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.07486v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.07486.svg)](https://codeofpaper.com/paper/2508.07486)

Discussion