arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00856cs.SEcs.AIcs.CLcs.PL
收藏

面向音频编程的可视化数据流语言中LLM代码生成基准评测

Benchmarking LLM Code Generation for Audio Programming with Visual Dataflow Languages

Columbia University(哥伦比亚大学);Barnard College, Columbia University(巴纳德学院,哥伦比亚大学);Eastlake High School(伊斯特莱克高中)
William Zhang, Maria Leon, Ryan Xu, Adrian Cardenas, Amelia Wissink, Hanna Martin, Maya Srikanth, Kaya Dorogi, Christian Valadez, Pedro Perez, Citlalli Grijalva… 展开作者

William Zhang, Maria Leon, Ryan Xu, Adrian Cardenas, Amelia Wissink, Hanna Martin, Maya Srikanth, Kaya Dorogi, Christian Valadez, Pedro Perez, Citlalli Grijalva, Corey Zhang, Mark Santolucito

AI总结:

本文基准评测了LLM在音频可视化编程语言中通过元编程和JSON直接节点生成两种表示层级的代码生成表现,发现元编程在代码形式良好时语义正确性更高,且提示加入随机性与循环可提升生成代码复杂度。

摘要:

基于节点的编程语言在媒体艺术编码领域日益流行。这类语言旨在让编程经验有限的用户也能使用,使其无需深厚的编程背景即可实现创意输出。利用基于LLM的代码生成进一步降低创意输出门槛是一个令人兴奋的机遇。然而,针对可视化基于节点的编程语言,最佳代码生成策略仍是一个悬而未决的问题。特别是,这类语言在文本中具有多个表示层级,每一层都可能被用于代码生成。在本工作中,我们探索了LLM代码生成在可视化编程语言的音频编程任务中在多个表示层级上的表现。我们探索了通过这些语言的元编程代码表示(即使用不同的高层基于文本的编程语言来编写该语言)进行的代码生成,以及通过JSON进行的直接节点生成。我们在一个编码问题基准集上,针对两种用于音频编程的可视化语言,评估了以这种方式生成的代码。我们测量了生成代码的正确性和复杂度。我们发现,在代码形式良好(即语法正确且可运行)的前提下,元编程能产生语义上更正确的生成代码。我们还发现,通过提示使用随机性和循环来实现更丰富的元编程,会生成更复杂的代码。

英文摘要:

Node-based programming languages are increasingly popular in media arts coding domains. These languages are designed to be accessible to users with limited coding experience, allowing them to achieve creative output without an extensive programming background. Using LLM-based code generation to further lower the barrier to creative output is an exciting opportunity. However, the best strategy for code generation for visual node-based programming languages is still an open question. In particular, such languages have multiple levels of representation in text, each of which may be used for code generation. In this work, we explore the performance of LLM code generation in audio programming tasks in visual programming languages at multiple levels of representation. We explore code generation through metaprogramming code representations for these languages (i.e., coding the language using a different high-level text-based programming language), as well as through direct node generation with JSON. We evaluate code generated in this way for two visual languages for audio programming on a benchmark set of coding problems. We measure both correctness and complexity of the generated code. We find that metaprogramming results in more semantically correct generated code, given that the code is well-formed (i.e., is syntactically correct and runs). We also find that prompting for richer metaprogramming using randomness and loops led to more complex code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑