PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 28, 2026Machine Learning with Applications0 citationsOpen Access

AST-guided transformers for sustainable and reliable UML modeling

View Full Paper
FAFeisal AlaswadPEPoovammal E.BABatoul Aljaddouh

Key Points

  • This study aims to enhance the reliability and sustainability of UML modeling by automating the translation of natural language requirements into class diagrams.
  • Developed a Sequence-to-Sequence (Seq2Seq) model for direct UML code generation.
  • Created a Sequence-to-Abstract-Syntax-Tree (Seq2AST) model incorporating syntactic constraints for structural correctness.
  • Introduced a multi-task learning approach for UML element extraction and design pattern recommendations.
  • Achieved accuracy comparable to large language models with better determinism and domain alignment.
  • Reduced computational requirements, enhancing energy efficiency in AI integration.
  • Enhanced modeling consistency and reusability through structural constraints and design knowledge.

Abstract

The manual conversion of natural language software requirements into Unified Modeling Language (UML) class diagrams is often labor-intensive, dependent on expert knowledge, and susceptible to human error within the requirements engineering process. Inefficiencies and inconsistencies introduced during this early design phase can lead to expensive revisions later in development, ultimately affecting the sustainability and long-term maintainability of software systems. To address this challenge, this study presents a neural-based framework that formulates UML diagram generation as a structured machine translation task, aiming to support more reliable and sustainable model-driven engineering practices. In this work, two transformer-based approaches are proposed: a Sequence-to-Sequence (Seq2Seq) model designed for direct diagram code generation, and a Sequence-to- Abstract-Syntax-Tree (Seq2AST) model that incorporates syntactic constraints to ensure structural correctness while maintaining the intended semantics. To mitigate the limited availability of annotated training data, a multi-task learning strategy is introduced, which simultaneously performs UML element extraction and context-aware recommendation of reusable design patterns derived from a large repository of existing diagrams. Integrating structural constraints with reusable design knowledge enhances modeling consistency, promotes reusability, and supports improved long-term design quality. Experimental results indicate that the proposed framework achieves accuracy comparable to general-purpose large language models while offering greater determinism and stronger domain alignment. Furthermore, it operates with significantly lower computational requirements, contributing to a more energy-efficient and sustainable integration of artificial intelligence within software engineering workflows. To support transparency, reproducibility, and continued research in AI-driven systems engineering, all datasets and experimental artifacts used in this study have been made publicly available.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Alaswad et al. (2026) studied this question.

synapsesocial.com/papers/6a40b92b61bb0a67205c588bhttps://doi.org/10.1016/j.mlwa.2026.100940
Ask AI
Helpful
Bookmark
Share
View Full Paper