Self-collaboration Code Generation via ChatGPT

04/15/2023
by   Yihong Dong, et al.
0

Code generation is widely regarded as a key technique for elevating the automation and ultimate quality of software development. Nevertheless, existing code generation approaches usually concentrate on a single stage of the software development process (i.e., the coding stage) and do not take into consideration other stages that are crucial in reducing complexity and ensuring quality assurance. The organization and conduction of multiple stages in software development require collaborative teamwork. To this end, this paper presents a self-collaboration code generation framework employing large language models (LLMs), exemplified by ChatGPT. Specifically, multiple LLMs play distinct roles through role instructions to form teams, addressing code generation tasks collaboratively and interactively without the need for human intervention. To showcase our framework, we assemble an elementary team consisting of three ChatGPT roles (i.e., analyst, coder, and tester) corresponding to the analysis, coding, and testing stages of software development. We conduct comprehensive experiments on various code-generation benchmarks. The experimental results indicate that self-collaboration code generation improves 29.9 code generation, achieving state-of-the-art performance and even surpassing GPT-4.

READ FULL TEXT
research
07/16/2023

Communicative Agents for Software Development

Software engineering is a domain characterized by intricate decision-mak...
research
12/14/2020

Risk Assessment, Threat Modeling and Security Testing in SDLC

The software development process is considered as one of the key guideli...
research
02/10/2020

Building Implicit Vector Representations of Individual Coding Style

With the goal of facilitating team collaboration, we propose a new appro...
research
09/09/2020

User documentation and training at Belle II

Belle II is a rapidly growing collaboration with members from one hundre...
research
04/14/2023

CollabCoder: A GPT-Powered Workflow for Collaborative Qualitative Analysis

The Collaborative Qualitative Analysis (CQA) process can be time-consumi...
research
08/25/2023

COCO: Testing Code Generation Systems via Concretized Instructions

Code generation systems have been extensively developed in recent years ...
research
03/31/2021

Execution of Partial State Machine Models

The iterative and incremental nature of software development using model...

Please sign up or login with your details

Forgot password? Click here to reset