arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.06911cs.HC
收藏

超越代码生成:LLM 支持的程序设计空间探索

Beyond Code Generation: LLM-supported Exploration of the Program Design Space

J. D. Zamfirescu-Pereira, Eunice Jun, Michael Terry, Qian Yang, Björn Hartmann

AI总结:

本文提出一个支持程序设计的 IDE,通过生成备选问题表述与解决方案、跟踪设计决策并识别隐含决策来扩展设计空间探索,同时揭示未来 IDE 需解决注意力管理与信息呈现时机的核心挑战。

摘要:

在这项工作中,我们探索了由大语言模型(LLM)驱动的、面向计算机程序迭代式设计的显式支持。程序设计与其他设计活动一样,其特征是以迭代方式在备选问题表述及其相关解决方案构成的空间中进行导航。LLM 在辅助这种探索方面具有潜在的强大能力;然而,默认情况下,代码生成型 LLM 交付的代码仅代表某个特定的点解决方案。这遮蔽了更大的可能备选方案空间,其中许多备选方案可能优于 LLM 的默认解释及其生成的代码。我们贡献了一个集成开发环境(IDE),该环境通过生成并展示对问题进行重新表述的新方式以及备选解决方案、跟踪设计决策、并识别由程序员或 LLM 做出的隐含决策来支持程序设计。在一项用户研究中,我们发现使用我们的 IDE 后,用户会组合并并行化各个设计阶段,以探索更广阔的设计空间——但同时也难以跟上 LLM 引发的代码变更以及其他信息过载。这些发现为未来通过向基于 LLM 的智能体提供更高层指令来支持程序设计的 IDE 揭示了一个核心挑战:谨慎管理注意力,并决定智能体应在何时向程序设计者呈现哪些信息。

英文摘要:

In this work, we explore explicit Large Language Model (LLM)-powered support for the iterative design of computer programs. Program design, like other design activity, is characterized by navigating a space of alternative problem formulations and associated solutions in an iterative fashion. LLMs are potentially powerful tools in helping this exploration; however, by default, code-generation LLMs deliver code that represents a particular point solution. This obscures the larger space of possible alternatives, many of which might be preferable to the LLM's default interpretation and its generated code. We contribute an IDE that supports program design through generating and showing new ways to frame problems alongside alternative solutions, tracking design decisions, and identifying implicit decisions made by either the programmer or the LLM. In a user study, we find that with our IDE, users combine and parallelize design phases to explore a broader design space -- but also struggle to keep up with LLM-originated changes to code and other information overload. These findings suggest a core challenge for future IDEs that support program design through higher-level instructions given to LLM-based agents: carefully managing attention and deciding what information agents should surface to program designers and when.

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

↑