ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments

Hojae Han, Seung-won Hwang, Rajhans Samdani, Yuxiong He
2/1/2025

No official code found. Best implementation: sfc-gh-hhan/convcodeworld (3 stars, last commit 2025-02-13). 1 more below.

Abstract

Large language models (LLMs) have proven invaluable for code generation, particularly in interactive settings. However, existing code generation benchmarks fail to capture the diverse feedback encountered in multi-turn interactions, limiting our ability to evaluate LLMs in these contexts. To address this gap, we present a set of novel benchmarks that explicitly model the quality of feedback provided to code generation LLMs. Our contributions are threefold: First, we introduce CONVCODEWORLD, a novel and reproducible environment for benchmarking interactive code generation. CONVCODEWORLD simulates 9 distinct interactive code generation scenarios while systematically combining three types of feedback: (a) compilation feedback; (b) execution feedback with varying test coverage; (c) verbal feedback generated by GPT-4o with different levels of expertise. Second, we introduce CONVCODEBENCH, a fast, static version of benchmark that uses pre-generated feedback logs, eliminating the need for costly dynamic verbal feedback generation while maintaining strong Spearman's rank correlations (0.82 to 0.99) with CONVCODEWORLD. Third, extensive evaluations of both closed-source and open-source LLMs including R1-Distill on CONVCODEWORLD reveal key insights: (a) LLM performance varies significantly based on the feedback provided; (b) Weaker LLMs, with sufficient feedback, can outperform single-turn results of state-of-the-art LLMs without feedback; (c) Training on a specific feedback combination can limit an LLM's ability to utilize unseen combinations; (d) LLMs solve problems in fewer turns (high MRR) may not solve as many problems overall (high Recall), and vice versa. All implementations and benchmarks will be made publicly available at https://huggingface.co/spaces/ConvCodeWorld/ConvCodeWorld

View on arXivView PDF

Code Implementations(2)

[ICLR2025] Official repo for "ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments" by Hojae Han, Seung-won Hwang, Rajhans Samdani, and Yuxiong He.

21Shell, PythonFeb 28, 20251 years ago

[ICLR2025] Official repo for "ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments" by Hojae Han, Seung-won Hwang, Rajhans Samdani, and Yuxiong He.

30Shell, PythonSep 6, 20241 years ago

Similar Papers

Cite this paper

@article{han2025convcodeworld,
  title  = {ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments},
  author = {Hojae Han and Seung-won Hwang and Rajhans Samdani and Yuxiong He},
  year   = {2025},
  eprint = {2502.19852},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.19852},
  journal = {ICLR 2025 2025}
}

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/2502.19852.svg)](https://codeofpaper.com/paper/2502.19852)

Discussion