Can an LLM Detect Instances of Microservice Infrastructure Patterns?

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Duarte, Carlos Eduardo, Harrison, Neil B., Correia, Filipe Figueiredo, Aguiar, Ademar, Gonçalves, Pavlína
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915887051702272
author Duarte, Carlos Eduardo
Harrison, Neil B.
Correia, Filipe Figueiredo
Aguiar, Ademar
Gonçalves, Pavlína
author_facet Duarte, Carlos Eduardo
Harrison, Neil B.
Correia, Filipe Figueiredo
Aguiar, Ademar
Gonçalves, Pavlína
contents Architectural patterns are frequently found in various software artifacts. The wide variety of patterns and their implementations makes detection challenging with current tools, especially since they often only support detecting patterns in artifacts written in a single language. Large Language Models (LLMs), trained on a diverse range of software artifacts and knowledge, might overcome the limitations of existing approaches. However, their true effectiveness and the factors influencing their performance have not yet been thoroughly examined. To better understand this, we developed MicroPAD. This tool utilizes GPT 5 nano to identify architectural patterns in software artifacts written in any language, based on natural-language pattern descriptions. We used MicroPAD to evaluate an LLM's ability to detect instances of architectural patterns, particularly infrastructure-related microservice patterns. To accomplish this, we selected a set of GitHub repositories and contacted their top contributors to create a new, human-annotated dataset of 190 repositories containing microservice architectural patterns. The results show that MicroPAD was capable of detecting pattern instances across multiple languages and artifact types. The detection performance varied across patterns (F1 scores ranging from 0.09 to 0.70), specifically in relation to their prevalence and the distinctiveness of the artifacts through which they manifest. We also found that patterns associated with recognizable, dominant artifacts were detected more reliably. Whether these findings generalize to other LLMs and tools is a promising direction for future research.
format Preprint
id arxiv_https___arxiv_org_abs_2603_23073
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Can an LLM Detect Instances of Microservice Infrastructure Patterns?
Duarte, Carlos Eduardo
Harrison, Neil B.
Correia, Filipe Figueiredo
Aguiar, Ademar
Gonçalves, Pavlína
Software Engineering
Artificial Intelligence
Architectural patterns are frequently found in various software artifacts. The wide variety of patterns and their implementations makes detection challenging with current tools, especially since they often only support detecting patterns in artifacts written in a single language. Large Language Models (LLMs), trained on a diverse range of software artifacts and knowledge, might overcome the limitations of existing approaches. However, their true effectiveness and the factors influencing their performance have not yet been thoroughly examined. To better understand this, we developed MicroPAD. This tool utilizes GPT 5 nano to identify architectural patterns in software artifacts written in any language, based on natural-language pattern descriptions. We used MicroPAD to evaluate an LLM's ability to detect instances of architectural patterns, particularly infrastructure-related microservice patterns. To accomplish this, we selected a set of GitHub repositories and contacted their top contributors to create a new, human-annotated dataset of 190 repositories containing microservice architectural patterns. The results show that MicroPAD was capable of detecting pattern instances across multiple languages and artifact types. The detection performance varied across patterns (F1 scores ranging from 0.09 to 0.70), specifically in relation to their prevalence and the distinctiveness of the artifacts through which they manifest. We also found that patterns associated with recognizable, dominant artifacts were detected more reliably. Whether these findings generalize to other LLMs and tools is a promising direction for future research.
title Can an LLM Detect Instances of Microservice Infrastructure Patterns?
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2603.23073