DiagramGPT-Llama3:Enabling Editable, High-Fidelity Diagram Generation with Vision Large Language Models

Authors

  • Yongyuan Chen State Key Lab of CAD&CG, Zhejiang University
  • Minjie Hong School of Software Technology, Zhejiang University
  • Boxi Wu School of Software Technology, Zhejiang University Daerwen AI
  • Xicheng Han School of Software Technology, Zhejiang University

DOI:

https://doi.org/10.1609/aaai.v40i36.40286

Abstract

The automation of diagram generation has gained significant attention in recent years. Previous studies mainly focused on generating diagrams from natural language, but often lacked support for user-friendly editing like drag-and-drop. This paper proposes a novel task: generating editable, high-fidelity diagrams from either text or raster images. It is also among the first to introduce diagram restoration and style transfer in this setting.To tackle these tasks, we constructed the Diagram-mxGraph dataset, covering restoration, text-to-diagram generation, and style transfer. We propose two core innovations: Fine-grained Adaptive Background Suppression (FABS) and Component-Aware Adaptive Loss (CAAL). Leveraging pre-trained Vision Transformers (ViTs) and the Diagram Adapter module, our method aligns diagram features with a Large Language Model (LLM) to output diagrams in editable mxGraph format.

Downloads

Published

2026-03-14

How to Cite

Chen, Y., Hong, M., Wu, B., & Han, X. (2026). DiagramGPT-Llama3:Enabling Editable, High-Fidelity Diagram Generation with Vision Large Language Models. Proceedings of the AAAI Conference on Artificial Intelligence, 40(36), 30341–30349. https://doi.org/10.1609/aaai.v40i36.40286

Issue

Section

AAAI Technical Track on Natural Language Processing I