Comparing LLM-based and MDE-based code generation for agile MDE

Large Language Models (LLMs) are increasingly applied to many different software tasks, and by means of specific domain training, they can perform well in specialised areas. Code-aware LLMs can generate executable program<br/>code from natural language specifications and prompts, but there are questions about the reliability of this process, because the results are not always consistent and correct. Model-driven engineering (MDE) also provides code generation techniques, which produce code automatically based on software designs expressed in UML or OCL. Compared to the LLM solution, the code generation process in MDE is more explicit, and the transformed code is determined by the source model, and there is usually a high correctness level for such generation. The code-generation by example (CGBE) process uses symbolic machine learning to synthesise code generators for particular code generation processes in MDE. The resulting generators map from UML/OCL specifications to the<br/>target programming language. In this paper we compare the effectiveness of code generation using baseline and fine-tuned LLMs, such as DeepSeek and LLama2, with CGBE code generators.

Publication Details

Journal
Research Portal (King's College London)
Published
2025-10-01
Primary Topic
Model-Driven Software Engineering Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparing LLM-based and MDE-based code generation for agile MDE

Research Portal (King's College London)
Model-Driven Software Engineering Techniques
article

Comparing LLM-based and MDE-based code generation for agile MDE

article en

Abstract

Large Language Models (LLMs) are increasingly applied to many different software tasks, and by means of specific domain training, they can perform well in specialised areas. Code-aware LLMs can generate executable program<br/>code from natural language specifications and prompts, but there are questions about the reliability of this process, because the results are not always consistent and correct. Model-driven engineering (MDE) also provides code generation techniques, which produce code automatically based on software designs expressed in UML or OCL. Compared to the LLM solution, the code generation process in MDE is more explicit, and the transformed code is determined by the source model, and there is usually a high correctness level for such generation. The code-generation by example (CGBE) process uses symbolic machine learning to synthesise code generators for particular code generation processes in MDE. The resulting generators map from UML/OCL specifications to the<br/>target programming language. In this paper we compare the effectiveness of code generation using baseline and fine-tuned LLMs, such as DeepSeek and LLama2, with CGBE code generators.

Research Portal (King's College London)
Quality Education
Openalex Percentile: Top 36%
Model-Driven Software Engineering Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.