DiagrammerGPT: Generating Open-Domain, Open-Platform Diagrams via LLM Planning

Abhay Zala, Han Lin, Jaemin Cho, Mohit Bansal
10/18/2023
cs.CVcs.AIcs.CL

No official code found. Best implementation: aszala/DiagrammerGPT (160 stars, MIT, last commit 2024-09-12).

Abstract

Text-to-image (T2I) generation has seen significant growth over the past few years. Despite this, there has been little work on generating diagrams with T2I models. A diagram is a symbolic/schematic representation that explains information using structurally rich and spatially complex visualizations (e.g., a dense combination of related objects, text labels, directional arrows/lines, etc.). Existing state-of-the-art T2I models often fail at diagram generation because they lack fine-grained object layout control when many objects are densely connected via complex relations such as arrows/lines, and also often fail to render comprehensible text labels. To address this gap, we present DiagrammerGPT, a novel two-stage text-to-diagram generation framework leveraging the layout guidance capabilities of LLMs to generate more accurate diagrams. In the first stage, we use LLMs to generate and iteratively refine 'diagram plans' (in a planner-auditor feedback loop). In the second stage, we use a diagram generator, DiagramGLIGEN, and a text label rendering module to generate diagrams (with clear text labels) following the diagram plans. To benchmark the text-to-diagram generation task, we introduce AI2D-Caption, a densely annotated diagram dataset built on top of the AI2D dataset. We show that our DiagrammerGPT framework produces more accurate diagrams, outperforming existing T2I models. We also provide comprehensive analysis, including open-domain diagram generation, multi-platform vector graphic diagram generation, human-in-the-loop editing, and multimodal planner/auditor LLMs.

View on arXivView PDF

Code Implementations(1)

MIT

Official code repository for: DiagrammerGPT: Generating Open-Domain, Open-Platform Diagrams via LLM Planning (COLM 2024)

16021PythonOct 18, 20232 years agoMIT

Similar Papers

Cite this paper

@article{zala2023diagrammergpt,
  title  = {DiagrammerGPT: Generating Open-Domain, Open-Platform Diagrams via LLM Planning},
  author = {Abhay Zala and Han Lin and Jaemin Cho and Mohit Bansal},
  year   = {2023},
  eprint = {2310.12128},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.12128v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.12128.svg)](https://codeofpaper.com/paper/2310.12128)

Discussion