利用预训练通用智能体解决软件工程任务
Harnessing Pre-trained Generalist Agents for Software Engineering Tasks
AI总结:
本文实证评估了预训练通用智能体在软件工程任务(游戏错误检测和作业车间调度)上的性能,发现其以极少微调努力超越专门智能体,调度周期减少20%,游戏错误检测率提高85%,并为实践者提供选择建议。
摘要:
如今,我们正目睹人工智能(AI)在开发旨在提高软件系统可靠性、有效性和整体质量的技术方面得到越来越多的应用。深度强化学习(DRL)最近已被成功用于复杂任务的自动化,例如游戏测试和解决作业车间调度问题。然而,这些专门化的DRL智能体,在特定任务上从零开始训练,缺乏对其他任务的泛化能力,并且它们需要大量时间才能被有效地开发和重新训练。最近,DRL研究人员开始开发通用智能体,这些智能体能够从各种环境中学习策略,并且在新任务中能够达到与专门智能体相似或更好的性能。在自然语言处理或计算机视觉领域,这些通用智能体在轻量微调阶段后,对从未见过的任务展现出有前景的适应能力,并实现了高性能。本文研究了通用智能体在解决软件工程任务方面的潜力。具体而言,我们进行了一项实证研究,旨在评估两个通用智能体在两个重要软件工程任务上的性能:检测游戏中的错误(针对两个游戏)以及最小化调度任务中的制造周期,以解决作业车间调度问题(针对两个实例)。我们的结果表明,通用智能体以非常少的微调努力超越了专门智能体,在基于任务的调度中,与专门智能体的性能相比,制造周期减少了20%。在游戏测试的背景下,一些通用智能体配置比专门智能体多检测出85%的错误。基于我们的分析,我们为寻求为软件工程任务选择通用智能体的研究人员和从业者提供了建议,以确保它们有效运行。
英文摘要:
Nowadays, we are witnessing an increasing adoption of Artificial Intelligence (AI) to develop techniques aimed at improving the reliability, effectiveness, and overall quality of software systems. Deep reinforcement learning (DRL) has recently been successfully used for automation in complex tasks such as game testing and solving the job-shop scheduling problem. However, these specialized DRL agents, trained from scratch on specific tasks, suffer from a lack of generalizability to other tasks and they need substantial time to be developed and re-trained effectively. Recently, DRL researchers have begun to develop generalist agents, able to learn a policy from various environments and capable of achieving performances similar to or better than specialist agents in new tasks. In the Natural Language Processing or Computer Vision domain, these generalist agents are showing promising adaptation capabilities to never-before-seen tasks after a light fine-tuning phase and achieving high performance. This paper investigates the potential of generalist agents for solving SE tasks. Specifically, we conduct an empirical study aimed at assessing the performance of two generalist agents on two important SE tasks: the detection of bugs in games (for two games) and the minimization of makespan in a scheduling task, to solve the job-shop scheduling problem (for two instances). Our results show that the generalist agents outperform the specialist agents with very little effort for fine-tuning, achieving a 20% reduction of the makespan over specialized agent performance on task-based scheduling. In the context of game testing, some generalist agent configurations detect 85% more bugs than the specialist agents. Building on our analysis, we provide recommendations for researchers and practitioners looking to select generalist agents for SE tasks, to ensure that they perform effectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。