KIT | KIT-Bibliothek | Impressum | Datenschutz

Does BERT Understand Code? : An Exploratory Study on the Detection of Architectural Tactics in Code

Keim, Jan ORCID iD icon 1; Kaplan, Angelika 2; Koziolek, Anne ORCID iD icon 2; Mirakhorli, Mehdi
1 Institut für Programmstrukturen und Datenorganisation (IPD), Karlsruher Institut für Technologie (KIT)
2 Kompetenzzentrum für angewandte Sicherheitstechnologie (KASTEL), Karlsruher Institut für Technologie (KIT)

Abstract:

Quality-driven design decisions are often addressed by using architectural tactics that are re-usable solution options for certain quality concerns. Creating traceability links for these tactics is useful but costly. Automating the creation of these links can help reduce costs but is challenging as simple structural analyses only yield limited results. Transfer-learning approaches using language models like BERT are a recent trend in the field of natural language processing. These approaches yield state-of-the-art results for tasks like text classification. In this paper, we experiment with treating detection of architectural tactics in code as a text classification problem. We present an approach to detect architectural tactics in code by fine-tuning BERT. A 10-fold cross-validation shows promising results with an average F1-Score of 90%, which is on a par with state-of-the-art approaches. We additionally apply our approach on a case study, where the results of our approach show promising potential but fall behind the state-of-the-art. Therefore, we discuss our approach and look at potential reasons as well as downsides and future work.


Postprint §
DOI: 10.5445/IR/1000124838
Veröffentlicht am 24.05.2024
Originalveröffentlichung
DOI: 10.1007/978-3-030-58923-3_15
Scopus
Zitationen: 10
Dimensions
Zitationen: 9
Cover der Publikation
Zugehörige Institution(en) am KIT Institut für Programmstrukturen und Datenorganisation (IPD)
Kompetenzzentrum für angewandte Sicherheitstechnologie (KASTEL)
Publikationstyp Proceedingsbeitrag
Publikationsdatum 08.09.2020
Sprache Englisch
Identifikator ISBN: 978-3-030-58923-3
ISSN: 0302-9743, 1611-3349
KITopen-ID: 1000124838
Erschienen in Software Architecture. Ed.: A. Jansen
Veranstaltung 14th European Conference on Software Architecture (ECSA 2020), Online, 14.09.2020 – 18.09.2020
Verlag Springer International Publishing
Seiten 220–228
Serie Lecture Notes in Computer Science ; 12292
Vorab online veröffentlicht am 31.08.2020
Schlagwörter Software architecture. Ed.: A. Jansen
Nachgewiesen in Dimensions
Scopus
Relationen in KITopen
KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft
KITopen Landing Page