Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models

被引:26
|
作者
Jiang, Ellen [1 ]
Toh, Edwin [2 ]
Molina, Alejandra [3 ]
Olson, Kristen [4 ]
Kayacik, Claire [2 ]
Donsbach, Aaron [4 ]
Cai, Carrie J. [2 ]
Terry, Michael [1 ]
机构
[1] Google, Cambridge, MA 96470 USA
[2] Google Res, Mountain View, CA USA
[3] Google Res, New York, NY USA
[4] Google Res, Seattle, WA USA
关键词
generative language models; prompt programming; code synthesis;
D O I
10.1145/3491102.3501870
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In this paper, we present a natural language code synthesis tool, GenLine, backed by 1) a large generative language model and 2) a set of task-specifc prompts that create or change code. To understand the user experience of natural language code synthesis with these new types of models, we conducted a user study in which participants applied GenLine to two programming tasks. Our results indicate that while natural language code synthesis can sometimes provide a magical experience, participants still faced challenges. In particular, participants felt that they needed to learn the model's "syntax," despite their input being natural language. Participants also struggled to form an accurate mental model of the types of requests the model can reliably translate and developed a set of strategies to debug model input. From these findings, we discuss design implications for future natural language code synthesis tools built using large generative language models.
引用
收藏
页数:19
相关论文
共 50 条
  • [1] Stellenwert von Natural Language Processing und chatbasierten Generative Language ModelsSignificance of natural language processing and chat-based generative language models
    Markus Haar
    Michael Sonntagbauer
    Stefan Kluge
    [J]. Medizinische Klinik - Intensivmedizin und Notfallmedizin, 2024, 119 : 181 - 188
  • [2] Natural language syntax
    Borsley, Robert D.
    [J]. LANGUAGE, 2010, 86 (04) : 945 - 948
  • [3] PROGRAMMING-LANGUAGE SYNTAX
    ROGERS, J
    [J]. DR DOBBS JOURNAL, 1994, 19 (15): : 12 - &
  • [4] Second language syntax: A generative introduction
    Standop, E
    [J]. ANGLIA-ZEITSCHRIFT FUR ENGLISCHE PHILOLOGIE, 2002, 120 (01): : 99 - 104
  • [5] Second language syntax: A generative introduction
    Vainikka, A
    Young-Scholten, M
    [J]. LINGUA, 2003, 113 (01) : 93 - 102
  • [6] Stellenwert von Natural Language Processing und chatbasierten Generative Language Models
    Haar, Markus
    Sonntagbauer, Michael
    Kluge, Stefan
    [J]. MEDIZINISCHE KLINIK-INTENSIVMEDIZIN UND NOTFALLMEDIZIN, 2024, 119 (03) : 181 - 188
  • [7] Systematicity and natural language syntax
    Pullum, Geoffrey K.
    Scholz, Barbara C.
    [J]. CROATIAN JOURNAL OF PHILOSOPHY, 2007, 7 (21) : 375 - 402
  • [8] Natural language syntax.
    Leung, Tommi
    [J]. JOURNAL OF LINGUISTICS, 2010, 46 (01) : 219 - 226
  • [9] OUTER AND INNER SYNTAX OF A PROGRAMMING LANGUAGE
    WILKES, MV
    [J]. COMPUTER JOURNAL, 1968, 11 (03): : 260 - &
  • [10] An Empirical Investigation into Programming Language Syntax
    Stefik, Andreas
    Siebert, Susanna
    [J]. ACM TRANSACTIONS ON COMPUTING EDUCATION, 2013, 13 (04):