KIT | KIT-Bibliothek | Impressum | Datenschutz

LLM4MTLs: Automated Generation and Empirical Evaluation of Model Transformation Languages

Jiang, Bowen ORCID iD icon 1; Hagel, Nathan ORCID iD icon 2; Cheng, Haowei; Jutz, Benedikt ORCID iD icon 2; Lange, Arne ORCID iD icon 2; Zhang, Weixing ORCID iD icon 1; Sharma, Rahul ORCID iD icon 1; Reussner, Ralf 2; Koziolek, Anne ORCID iD icon 2
1 Karlsruher Institut für Technologie (KIT)
2 Institut für Informationssicherheit und Verlässlichkeit (KASTEL), Karlsruher Institut für Technologie (KIT)

Abstract:

Model transformation languages (MTLs) are domain-specific languages used to transform models conforming to a given metamodel into other models, including textual models such as source code. Developing correct model transformations in these languages is challenging and requires both language-specific and domain knowledge, creating a need for automated assistance and thus motivating the use of large language models (LLMs) for MTL code generation. However, due to the limited availability of training data and executable examples, LLM-generated MTL code is often not syntactically valid or semantically usable out of the box. This paper presents LLM4MTLs, an automated workflow for constructing and comparing prompting strategies for LLM-generated MTL code, together with an evaluation suite and an empirical evaluation. The workflow systematically explores prompt constructions combining few-shot prompting, grammar prompting, and helper methods inclusion, and evaluates them using both syntactic and semantic metrics. We construct an evaluation suite spanning four MTLs (ATL, ETL, QVTo, and the Reactions language) with executable reference scripts and manually written test suites, and evaluate across three LLMs. ... mehr


Originalveröffentlichung
DOI: 10.5381/jot.2026.25.3.a22
Zugehörige Institution(en) am KIT Institut für Informationssicherheit und Verlässlichkeit (KASTEL)
Publikationstyp Zeitschriftenaufsatz
Publikationsjahr 2026
Sprache Englisch
Identifikator ISSN: 1660-1769
KITopen-ID: 1000198943
Erschienen in The Journal of Object Technology
Verlag [Verlag nicht ermittelbar]
Band 25
Heft 3
Seiten 3:281-3:294
Schlagwörter Model Transformation Languages, Large Language Models, Code Generation, Prompt Engineering, Grammar Prompting, Domain-specific Languages
Nachgewiesen in Scopus
OpenAlex
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page