KIT | KIT-Bibliothek | Impressum | Datenschutz

Leveraging LLMs to support co-evolution between definitions and instances of textual DSLs: a systematic evaluation

Zhang, Weixing ORCID iD icon 1; Jiang, Bowen 1; Fu, Yuhong; Koziolek, Anne ORCID iD icon 1; Hebig, Regina; Strüber, Daniel
1 Institut für Informationssicherheit und Verlässlichkeit (KASTEL), Karlsruher Institut für Technologie (KIT)

Abstract:

Software languages evolve over time for various reasons, such as the addition of new features. When the language’s grammar definition evolves, textual instances that originally conformed to the grammar become outdated. For DSLs in a model-driven engineering context, there exists a plethora of techniques to co-evolve models with the evolving metamodel. However, these techniques are not geared to support DSLs with a textual grammar—applying them to textual language definitions and instances may lead to the loss of information from the original instances, such as layout information and comments, which are valuable for software comprehension and maintenance. This study systematically evaluates the potential of Large Language Model (LLM)-based solutions in achieving grammar and instance co-evolution for textual DSLs. By applying two advanced language models, Claude Sonnet 4.5 and GPT-5.2, and conducting ten experimental runs per case across ten case languages, we evaluate both the correctness of co-evolved instances and the preservation of human-oriented information such as comments and layout. Our results indicate high performance on small-scale cases ($\geq$94% precision and recall for instances with fewer than 20 lines requiring modification), but performance degraded with scale: Claude Sonnet 4.5 maintained 85% recall at 40 lines while GPT-5.2 showed greater sensitivity, failing entirely on the two largest instances. ... mehr


Verlagsausgabe §
DOI: 10.5445/IR/1000195589
Veröffentlicht am 23.07.2026
Originalveröffentlichung
DOI: 10.1007/s10270-026-01402-9
Cover der Publikation
Zugehörige Institution(en) am KIT Institut für Informationssicherheit und Verlässlichkeit (KASTEL)
Publikationstyp Zeitschriftenaufsatz
Publikationsjahr 2026
Sprache Englisch
Identifikator ISSN: 1619-1366, 1619-1374
KITopen-ID: 1000195589
Erschienen in Software and Systems Modeling
Verlag Springer
Vorab online veröffentlicht am 10.07.2026
Schlagwörter Co-evolution · Textual DSLs · Language definition · Instance · LLM
Nachgewiesen in OpenAlex
Scopus
Relationen in KITopen
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page