Automating Software Diagram Generation with Large Language Models

Recent advances in Large Language Models (LLMs) have created new opportunities for automated and efficient diagram generation. This study introduces DiagramAI, a tool designed for AI-driven diagram generation and editing. To evaluate its feasibility, we assess the capabilities of seven LLMs in generating five types of software diagrams: use case, class, architectural, sequence, and C4 context diagrams. We compare two-generation approaches, direct Mermaid code output, and structured YAML-based representations, analyzing their syntactic correctness, structural consistency, and adherence to diagramming conventions. The results reveal significant variations in model performance, with some LLMs demonstrating strong syntax adherence, while others struggle with diagram structure and semantic accuracy.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.09.191
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

Automating Software Diagram Generation with Large Language Models

Stefan Valentin Gheorghita, Cristi Irimia, Adrian Iftene
Procedia Computer Science
Model-Driven Software Engineering Techniques
article

Automating Software Diagram Generation with Large Language Models

Stefan Valentin Gheorghita, Cristi Irimia, Adrian Iftene
article en

Abstract

Recent advances in Large Language Models (LLMs) have created new opportunities for automated and efficient diagram generation. This study introduces DiagramAI, a tool designed for AI-driven diagram generation and editing. To evaluate its feasibility, we assess the capabilities of seven LLMs in generating five types of software diagrams: use case, class, architectural, sequence, and C4 context diagrams. We compare two-generation approaches, direct Mermaid code output, and structured YAML-based representations, analyzing their syntactic correctness, structural consistency, and adherence to diagramming conventions. The results reveal significant variations in model performance, with some LLMs demonstrating strong syntax adherence, while others struggle with diagram structure and semantic accuracy.

Procedia Computer ScienceVol. 270
Alexandru Ioan Cuza University (RO)
Openalex Percentile: Top 66%
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.