Athena:利用 LLM 进行迭代式脚手架应用生成的中间表示
Athena: Intermediate Representations for Iterative Scaffolded App Generation with an LLM
AI总结:
Athena 通过引入应用故事板、数据模型和 GUI 骨架等共享中间表示,使开发者能与 LLM 迭代协作生成结构化多文件界面代码,用户研究中 75% 的参与者更偏好该原型。
摘要:
使用大型语言模型(LLM)为完整的用户界面生成代码具有挑战性。用户界面很复杂,其实现通常由多个相互关联的文件组成,这些文件共同规定了每个屏幕的内容、屏幕之间的导航流程以及整个应用程序中使用的数据模型。为 LLM 设计一个包含足够细节以生成完整用户界面的单一提示具有挑战性,即使如此,结果往往是一个包含所有生成屏幕的单一大型且难以理解的文件。在本文中,我们介绍了 Athena,一个原型应用生成环境,它展示了使用共享中间表示(包括应用故事板、数据模型和 GUI 骨架)如何帮助开发者以迭代方式与 LLM 协作来构建完整的用户界面。这些中间表示还为 LLM 的代码生成过程提供了脚手架,在多个文件中生成有组织且结构化的代码,同时限制错误。我们通过一项用户研究对 Athena 进行了评估,发现 75% 的参与者更喜欢我们的原型,而不是典型的聊天机器人式基线来进行应用原型设计。
英文摘要:
It is challenging to generate the code for a complete user interface using a Large Language Model (LLM). User interfaces are complex and their implementations often consist of multiple, inter-related files that together specify the contents of each screen, the navigation flows between the screens, and the data model used throughout the application. It is challenging to craft a single prompt for an LLM that contains enough detail to generate a complete user interface, and even then the result is frequently a single large and difficult to understand file that contains all of the generated screens. In this paper, we introduce Athena, a prototype application generation environment that demonstrates how the use of shared intermediate representations, including an app storyboard, data model, and GUI skeletons, can help a developer work with an LLM in an iterative fashion to craft a complete user interface. These intermediate representations also scaffold the LLM's code generation process, producing organized and structured code in multiple files while limiting errors. We evaluated Athena with a user study that found 75% of participants preferred our prototype over a typical chatbot-style baseline for prototyping apps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。