Saved in:
Bibliographic Details
Main Authors: Baber, Junaid, Hili, Nicolas, Schwab, Didier, Challier, Léo, Satrin, Cécilia
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.15865
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914568984330240
author Baber, Junaid
Hili, Nicolas
Schwab, Didier
Challier, Léo
Satrin, Cécilia
author_facet Baber, Junaid
Hili, Nicolas
Schwab, Didier
Challier, Léo
Satrin, Cécilia
contents Large Language Models (LLMs) have shown increasing potential in automating model-driven software engineering tasks, particularly in generating models conforming to Domain Specific Languages (DSLs) from natural language. While most existing approaches rely on large proprietary models, their high cost and limited deployability hinder broader adoption. In this paper, we evaluate whether open-source LLMs of varying sizes (0.5B to 32B parameters) can generate DSL-conformant models using only few-shot prompting, without any fine-tuning. Our evaluation focuses on key model-driven engineering (MDE) requirements, including syntactic validity, semantic completeness, and inter-model reference consistency. We extend our prior work by moving from generating user interface models (referred to as "UI models" in this paper) over fixed, predefined data schemas ("data models") to generating both the UI and data models entirely from scratch. This shift serves two purposes: first, it highlights the LLM's ability to infer domain-specific relationships and maintain consistency across multiple interconnected models; second, it allows us to generalize earlier findings by testing DSL generation across models of different natures and structural roles. Our structured evaluation combines automatic parsing and expert feedback across 39 LLMs, revealing that several compact models (e.g., \texttt{gemma3:12b}, \texttt{mistral:7b-instruct}) approach or match the quality of much larger models. These findings demonstrate the feasibility of using smaller, open-source LLMs for grammar-conformant DSL generation in MDE workflows, offering a cost-effective and deployable alternative to closed LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2605_15865
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle From Text to DSL: Evaluating Grammar-Based Model Generation Using Open LLMs
Baber, Junaid
Hili, Nicolas
Schwab, Didier
Challier, Léo
Satrin, Cécilia
Software Engineering
Large Language Models (LLMs) have shown increasing potential in automating model-driven software engineering tasks, particularly in generating models conforming to Domain Specific Languages (DSLs) from natural language. While most existing approaches rely on large proprietary models, their high cost and limited deployability hinder broader adoption. In this paper, we evaluate whether open-source LLMs of varying sizes (0.5B to 32B parameters) can generate DSL-conformant models using only few-shot prompting, without any fine-tuning. Our evaluation focuses on key model-driven engineering (MDE) requirements, including syntactic validity, semantic completeness, and inter-model reference consistency. We extend our prior work by moving from generating user interface models (referred to as "UI models" in this paper) over fixed, predefined data schemas ("data models") to generating both the UI and data models entirely from scratch. This shift serves two purposes: first, it highlights the LLM's ability to infer domain-specific relationships and maintain consistency across multiple interconnected models; second, it allows us to generalize earlier findings by testing DSL generation across models of different natures and structural roles. Our structured evaluation combines automatic parsing and expert feedback across 39 LLMs, revealing that several compact models (e.g., \texttt{gemma3:12b}, \texttt{mistral:7b-instruct}) approach or match the quality of much larger models. These findings demonstrate the feasibility of using smaller, open-source LLMs for grammar-conformant DSL generation in MDE workflows, offering a cost-effective and deployable alternative to closed LLMs.
title From Text to DSL: Evaluating Grammar-Based Model Generation Using Open LLMs
topic Software Engineering
url https://arxiv.org/abs/2605.15865