https://www.mdu.se/

mdu.sePublications
Planned maintenance
A system upgrade is planned for 17/11-2026, at 12:00-13:00. During this time DiVA will be unavailable.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Toward Generative AI-assisted Model Transformation in Model-driven Engineering
Mälardalen University, Faculty of Engineering and Health Sciences, Department of Computer Science & Engineering.ORCID iD: 0009-0002-7198-8514
2026 (English)Licentiate thesis, comprehensive summary (Other academic)
Abstract [en]

Model transformation is an important activity in Model-Driven Engineering (MDE), but it is often hard to use in practice. It usually requires knowledge of special languages, metamodels, and complex toolchains. Recent progress in large language models (LLMs) suggests new ways to lower this entry barrier. However, results from my work show that although LLMs can help with model transformation tasks, their performance is still unstable when the tasks involve rich meaning, complex structure, or changes across related artifacts.

This licentiate research studies how LLMs can be used to reduce the practical difficulty of model transformation in MDE while still preserving the correctness and dependability needed in engineering work. The research builds on three empirical studies covering model transformation by example, zero-shot transformation, and round-trip consistency under change. Together, these studies show both the promise of LLMs and their limits in handling structural correctness, semantic consistency, and change across connected artifacts.

Based on these findings, the next step of the research explores a hybrid direction in which LLMs are not used as stand-alone transformation engines, but instead act as coordinators of deterministic tools and services through the Model Context Protocol (MCP). The goal is to combine the flexibility of LLMs with the precision, traceability, and validation support of established MDE technologies.

The expected contribution of this licentiate is an empirical and architectural foundation for more dependable LLM-assisted model transformation. More broadly, it aims to help move from purely generative approaches toward hybrid workflows that make MDE more accessible without giving up engineering rigor.

Abstract [sv]

Modelltransformation är en viktig aktivitet inom modelldriven teknik (MDE), men den är ofta svår att använda i praktiken. Det kräver vanligtvis kunskap om specialspråk, metamodeller och komplexa verktygskedjor. Nyligen genomförda framsteg inom stora språkmodeller (LLM) tyder på nya sätt att sänka denna inträdesbarriär. Resultat från mitt arbete visar dock att även om LLM:er kan hjälpa till med modelltransformationsuppgifter, är deras prestanda fortfarande instabil när uppgifterna involverar rik betydelse, komplex struktur eller förändringar över relaterade artefakter.

Denna licentiatforskning studerar hur LLM:er kan användas för att minska den praktiska svårigheten med modelltransformation i MDE samtidigt som den korrekthet och tillförlitlighet som behövs i ingenjörsarbete bevaras. Forskningen bygger på tre empiriska studier som täcker modelltransformation med exempel, noll-skotttransformation och tur-och-retur-konsistens under förändring. Tillsammans visar dessa studier både potentialen hos LLM:er och deras begränsningar i hanteringen av strukturell korrekthet, semantisk konsistens och förändring över sammankopplade artefakter.

Baserat på dessa resultat utforskar nästa steg i forskningen en hybridriktning där LLM:er inte används som fristående transformationsmotorer, utan istället fungerar som koordinatorer för deterministiska verktyg och tjänster genom Model Context Protocol (MCP). Målet är att kombinera flexibiliteten hos LLM:er med precisionen, spårbarheten och valideringsstödet hos etablerade MDE-tekniker.

Det förväntade bidraget från denna licentiatexamen är en empirisk och arkitektonisk grund för mer pålitlig LLM-assisterad modelltransformation. Mer allmänt syftar den till att bidra till att gå från rent generativa metoder till hybrida arbetsflöden som gör MDE mer tillgänglig utan att ge avkall på teknisk stringens.

Place, publisher, year, edition, pages
Västerås: Mälardalens universitet, 2026.
Series
Mälardalen University Press Licentiate Theses, ISSN 1651-9256 ; 389
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:mdh:diva-79079ISBN: 978-91-7485-775-7 (print)OAI: oai:DiVA.org:mdh-79079DiVA, id: diva2:2104693
Presentation
2026-12-16, CASE och digitalt, Mälardalens universitet, Västerås, 13:15 (English)
Opponent
Supervisors
Available from: 2026-10-07 Created: 2026-09-24 Last updated: 2026-11-13Bibliographically approved
List of papers
1. Benchmarking Large Language Models for Zero-Shot UML-to-Java Model Transformation
Open this publication in new window or tab >>Benchmarking Large Language Models for Zero-Shot UML-to-Java Model Transformation
(English)In: Journal of Systems and Software, ISSN 0164-1212, E-ISSN 1873-1228Article in journal (Refereed) Submitted
National Category
Computer Sciences
Research subject
Computer Science
Identifiers
urn:nbn:se:mdh:diva-79078 (URN)
Available from: 2026-09-24 Created: 2026-09-24 Last updated: 2026-09-25Bibliographically approved
2. Learning to Transform: Evaluating LLMs on Model Transformation by Example
Open this publication in new window or tab >>Learning to Transform: Evaluating LLMs on Model Transformation by Example
2025 (English)In: 2025 ACM/IEEE 28th International Conference on Model Driven Engineering Languages and Systems Companion (MODELS-C), Institute of Electrical and Electronics Engineers (IEEE) , 2025, p. 576-585Conference paper, Published paper (Refereed)
Abstract [en]

Large language models have shown promising potential in reducing the accidental complexity of model-driven engineering, particularly in automating model transformation tasks. However, existing research has shown that large language models often struggle with correctness, generalizability, and performance in complex transformation scenarios. This paper investigates the feasibility of applying large language models within the paradigm of model transformation by example, an intuitive technique that derives transformation logic from prototypical source-target model pairs, thereby reducing cognitive load and bypassing the need for formal transformation specifications. We empirically benchmark five LLMs, ChatGPT-4.5, DeepSeek V3, DeepHermes 3 LLaMA 3 8B, QwQ 32B, and OlympicCoder 32B, across three transformation scenarios of increasing complexity: RDBMS-to-UML, UML-to-Java, and SysML-to-AAS. Each scenario is evaluated under three configurations, varying the number of example pairs provided. In each configuration, the LLMs are tasked with directly generating target models given source models, example pairs, and initial mapping rules. Model outputs are assessed using correctness and weighted success metrics that account for structural and semantic fidelity. Our findings reveal that LLMs perform well in syntactically regular transformations but struggle in semantically rich or complex scenarios. Additional examples do not consistently enhance performance and may even degrade it, highlighting the models’ limitations in abstraction and semantic grounding. GPT-4.5 delivers the highest peak performance but suffers from instability, while smaller models like DeepSeek V3 and OlympicCoder 32B offer more stable, scalable results.

Place, publisher, year, edition, pages
Institute of Electrical and Electronics Engineers (IEEE), 2025
Keywords
Measurement, Large language models, Unified modeling language, Semantics, Transforms, Benchmark testing, Model driven engineering, Complexity theory, Logic, Load modeling, Model Transformation By Example, Benchmarking
National Category
Artificial Intelligence
Identifiers
urn:nbn:se:mdh:diva-75800 (URN)10.1109/MODELS-C68889.2025.00081 (DOI)001735745700073 ()2-s2.0-105030486105 (Scopus ID)979-8-3315-7990-6 (ISBN)979-8-3315-7991-3 (ISBN)
Conference
2025 ACM/IEEE 28th International Conference on Model Driven Engineering Languages and Systems Companion (MODELS-C), 05-10 October 2025, Grand Rapids, USA
Available from: 2026-02-09 Created: 2026-02-09 Last updated: 2026-09-24Bibliographically approved
3. Change-aware round-trip benchmarking of LLMs for reliable and efficient artifact co-evolution
Open this publication in new window or tab >>Change-aware round-trip benchmarking of LLMs for reliable and efficient artifact co-evolution
2026 (English)In: Journal of Systems and Software, ISSN 0164-1212, E-ISSN 1873-1228, Vol. 241, article id 113014Article in journal (Refereed) Published
Abstract [en]

Large language models are increasingly embedded in software development, yet most evaluations still treat them as one-shot generators for isolated tasks such as code completion or refactoring. In real workflows, however, artifacts such as application programming interfaces, data models, and database schemas co-evolve, and changes must propagate across representations without breaking consistency. When propagation fails, developers incur extra validation, retries, and manual repair, which increases latency and infrastructure cost and undermines sustainable operation. In this study, we ask whether large language models can preserve cross-artifact consistency under change in a round-trip workflow. We apply a controlled edit to one artifact, translate it to its coupled counterpart, and translate it back, then check whether the intended edit persists without drift (i.e., unintended semantic changes or syntactic invalidity). We instantiate this question by synchronizing class-oriented data models with relational database schemas. Using a curated dataset of paired models and schemas and a suite of controlled edit operations, we evaluate four large language model, GPT-5, Qwen3-Next-80B-A3B, DeepSeek V3, and Gemini 2.5, under a unified, reproducible protocol that measures (i) edit persistence, (ii) structural validity (parsability/loadability), and (iii) run-to-run consistency over repeated executions. Our results show that the models handle small, routine edits reliably, but they struggle when edits require structural reorganization. Gemini 2.5 is the most consistent across runs; DeepSeek V3 often preserves the intended semantics but occasionally produces unparsable outputs; Qwen3-Next-80B-A3B exhibits high variance; and GPT-5 often recognizes the change but fails to propagate it coherently through the coupled representation. We contribute a reproducible benchmark and evaluation framework for assessing LLM reliability under artifact co-evolution, together with empirical evidence of current limitations. Overall, the findings reveal a gap between detecting a change and propagating it coherently, underscoring the need for structural validation and human oversight to achieve dependable and cost-efficient LLM-assisted software evolution.

Place, publisher, year, edition, pages
Elsevier BV, 2026
Keywords
Large language models for software evolution, Round-trip consistency, Software artifact co-evolution, Benchmarking, Relational database systems, Software design, Syntactics, Co-evolution, Code re-factoring, Language model, Large language model for software evolution, Round trip, Software artefacts, Software Evolution, Work-flows, Semantics
National Category
Software Engineering
Identifiers
urn:nbn:se:mdh:diva-78602 (URN)10.1016/j.jss.2026.113014 (DOI)001819034300001 ()2-s2.0-105043594050 (Scopus ID)
Note

This is an open access article under the CC BY license.

Available from: 2026-07-15 Created: 2026-07-15 Last updated: 2026-09-24Bibliographically approved
4. Agentic Model Transformation: Service-Mediated Orchestration for Transformation Development
Open this publication in new window or tab >>Agentic Model Transformation: Service-Mediated Orchestration for Transformation Development
2026 (English)In: MODELS '26: Proceedings of the ACM/IEEE 29th International Conference on Model Driven Engineering Languages and Systems, Association for Computing Machinery (ACM) , 2026, p. 365-371Conference paper, Published paper (Refereed)
Abstract [en]

Model transformation is a core mechanism in Model-Driven Engineering (MDE), but its use requires expertise in metamodels, transformation languages, execution engines, runtime configuration, and diagnostics. Although LLMs can generate and revise transformation artifacts, direct prompt-to-output generation does not by itself provide an executable MDE workflow grounded in metamodel conformance and transformation rules execution.

This paper proposes agentic model transformation: a service-mediated workflow in which an LLM agent generates candidate transformation specifications and coordinates MDE services for metamodel access, example retrieval, checking, execution, diagnostics, and repair. Model Context Protocol is used to expose these services to the agent. When execution succeeds, target artifacts are produced through the configured transformation infrastructure, serialized by the target modeling environment, and loadable against the registered target metamodel.

Early results from adopting the proposed framework for the UML-to-Java and SysMLv2-to-AAS cases show that constructing and repairing executable transformations is possible. The results also show that executable success and metamodel conformance are only first checks; structural completeness, mapping coverage, and semantic adequacy require additional MDE services. The framework, therefore, shifts LLM support for model transformation from one-off artifact generation towards service-supported transformation development, where specifications, diagnostics, and execution traces can be inspected, reused, and extended.

Place, publisher, year, edition, pages
Association for Computing Machinery (ACM), 2026
Keywords
Agentic Model Transformation, Service-Mediated Orchestration, Large Language Models, Execution Diagnostics
National Category
Computer and Information Sciences
Identifiers
urn:nbn:se:mdh:diva-79076 (URN)10.1145/3822455.3838763 (DOI)979-8-4007-2809-9 (ISBN)
Conference
ACM/IEEE 29th International Conference on Model Driven Engineering Languages and Systems, 4-9 October, Malaga, Spain
Available from: 2026-09-23 Created: 2026-09-23 Last updated: 2026-09-28Bibliographically approved

Open Access in DiVA

The full text will be freely available from 2026-11-25 08:00
Available from 2026-11-25 08:00

Authority records

Dao, Khanh Duy

Search in DiVA

By author/editor
Dao, Khanh Duy
By organisation
Department of Computer Science & Engineering
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar

isbn
urn-nbn

Altmetric score

isbn
urn-nbn
Total: 7970 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf