Self-collaboration Code Generation via ChatGPT
Yihong Dong, Xue Jiang, Zhi Jin, and Ge Li

TL;DR
This paper introduces a self-collaboration framework for code generation using ChatGPT, where multiple LLM agents collaborate as a virtual team to improve performance on complex tasks, inspired by human teamwork strategies.
Contribution
The paper proposes a novel multi-agent self-collaboration approach for code generation with LLMs, integrating software development methodology to handle complex tasks without human intervention.
Findings
Improves Pass@1 by 29.9%-47.1% over base LLMs
Enables LLMs to handle complex repository-level tasks
Demonstrates effectiveness on various code-generation benchmarks
Abstract
Although Large Language Models (LLMs) have demonstrated remarkable code-generation ability, they still struggle with complex tasks. In real-world software development, humans usually tackle complex tasks through collaborative teamwork, a strategy that significantly controls development complexity and enhances software quality. Inspired by this, we present a self-collaboration framework for code generation employing LLMs, exemplified by ChatGPT. Specifically, through role instructions, 1) Multiple LLM agents act as distinct `experts', each responsible for a specific subtask within a complex task; 2) Specify the way to collaborate and interact, so that different roles form a virtual team to facilitate each other's work, ultimately the virtual team addresses code generation tasks collaboratively without the need for human intervention. To effectively organize and manage this virtual team,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Software Engineering Techniques and Practices
