ChatCoder: Chat-based Refine Requirement Improves LLMs' Code Generation

Zejun Wang, Jia Li, Ge Li, Zhi Jin
11/1/2023
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Large language models have shown good performances in generating code to meet human requirements. However, human requirements expressed in natural languages can be vague, incomplete, and ambiguous, leading large language models to misunderstand human requirements and make mistakes. Worse, it is difficult for a human user to refine the requirement. To help human users refine their requirements and improve large language models' code generation performances, we propose ChatCoder: a method to refine the requirements via chatting with large language models. We design a chat scheme in which the large language models will guide the human users to refine their expression of requirements to be more precise, unambiguous, and complete than before. Experiments show that ChatCoder has improved existing large language models' performance by a large margin. Besides, ChatCoder has the advantage over refine-based methods and LLMs fine-tuned via human response.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2023chatcoder,
  title  = {ChatCoder: Chat-based Refine Requirement Improves LLMs' Code Generation},
  author = {Zejun Wang and Jia Li and Ge Li and Zhi Jin},
  year   = {2023},
  eprint = {2311.00272},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.00272v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.00272.svg)](https://codeofpaper.com/paper/2311.00272)

Discussion