Generating Domain-Specific Programs for Diagram Authoring with Large Language Models

被引:4
作者
Jain, Rijul [1 ]
Ni, Wode [2 ]
Sunshine, Joshua [2 ]
机构
[1] Williams Coll, Williamstown, MA 01267 USA
[2] Carnegie Mellon Univ, Pittsburgh, PA USA
来源
COMPANION PROCEEDINGS OF THE 2023 ACM SIGPLAN INTERNATIONAL CONFERENCE ON SYSTEMS, PROGRAMMING, LANGUAGES, AND APPLICATIONS: SOFTWARE FOR HUMANITY, SPLASH COMPANION 2023 | 2023年
关键词
domain-specific languages; large language models; visualization;
D O I
10.1145/3618305.3623612
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Large language models (LLMs) can generate programs in general-purpose languages from prose descriptions, but are not trained on many domain-specific languages (DSLs). Diagram authoring with Penrose, a diagramming system using three DSLs, exemplifies the utility of DSL program generation with LLMs, which enables diagram creation from prose. We provide methods to conceptualize and evaluate the structures of one-shot LLM prompts to generate error-free DSL programs and implement Penrose diagram creation from prose using LLMs. We will evaluate our LLM prompt structures by testing prompt variations across different diagramming domains and plan to run a user study to assess the ease of LLM-augmented Penrose diagramming over other tools.
引用
收藏
页码:70 / 71
页数:2
相关论文
共 3 条
  • [1] Harriman HS, 2021, COMPANION PROCEEDINGS OF THE 2021 ACM SIGPLAN INTERNATIONAL CONFERENCE ON SYSTEMS, PROGRAMMING, LANGUAGES, AND APPLICATIONS: SOFTWARE FOR HUMANITY, SPLASH COMPANION 2021, P22, DOI 10.1145/3484271.3484978
  • [2] Wang BL, 2023, Arxiv, DOI arXiv:2305.19234
  • [3] PENROSE: From Mathematical Notation to Beautiful Diagrams
    Ye, Katherine
    Ni, Wode
    Krieger, X.
    Ma'ayan, Dor
    Wise, Jenna
    Aldrich, Jonathan
    Sunshine, Joshua
    Crane, Keenan
    [J]. ACM TRANSACTIONS ON GRAPHICS, 2020, 39 (04):