测试大模型能否从零构建完整安卓应用,发现表现普遍很差。
AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?
- 设计多智能体系统自动提取真实安卓应用功能并生成测试用例
- 12个主流大模型仅GPT-5实现18.8%的正确应用,多数失败于状态协调与生命周期管理
- 专为评估模型独立开发能力而建,适合研究通用编程智能的研究者
大型语言模型在函数级代码生成上表现出色,但在真实应用开发中需处理组件交互、状态一致性及生命周期管理等系统性挑战。现有基准无法有效评估模型是否能从零构建完整软件系统。为此,我们提出APPFORGE,一个包含101个来自真实安卓应用的开发问题的基准。给定自然语言需求,模型需从零实现安卓应用。这要求理解应用状态、生命周期和异步操作,生成上下文感知、鲁棒且可维护的代码。通过多智能体系统自动提炼功能并导航应用生成验证用例,经安卓专家人工验证后,集成进自动化评估框架,支持无干预复现评估。对12个旗舰模型的评估显示,所有模型效果均低,最佳模型GPT-5仅成功构建18.8%的功能正确应用,揭示当前模型在复杂多组件工程任务中的根本局限。
原文摘要 · Abstract (English)
Large language models (LLMs) have demonstrated remarkable capability in function-level code generation tasks. Unlike isolated functions, real-world applications demand reasoning over the entire software system: developers must orchestrate how different components interact, maintain consistency across states over time, and ensure the application behaves correctly within the lifecycle and framework constraints. Yet, no existing benchmark adequately evaluates whether LLMs can bridge this gap and construct entire software systems from scratch. To address this gap, we propose APPFORGE, a benchmark consisting of 101 software development problems drawn from real-world Android apps. Given a natural language specification detailing the app functionality, a language model is tasked with implementing the functionality into an Android app from scratch. Developing an Android app from scratch requires understanding and coordinating app states, lifecycle management, and asynchronous operations, calling for LLMs to generate context-aware, robust, and maintainable code. To construct APPFORGE, we design a multi-agent system to automatically summarize the main functionalities from app documents and navigate the app to synthesize test cases validating the functional correctness of app implementation. Following rigorous manual verification by Android development experts, APPFORGE incorporates the test cases within an automated evaluation framework that enables reproducible assessment without human intervention, making it easily adoptable for future research. Our evaluation on 12 flagship LLMs show that all evaluated models achieve low effectiveness, with the best-performing model (GPT-5) developing only 18.8% functionally correct applications, highlighting fundamental limitations in current models' ability to handle complex, multi-component software engineering challenges.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。