Introduction
Traditional evaluation of Large Language Models (LLMs) for code generation has largely relied on a "one-shot" paradigm. Benchmarks like HumanEval or MBPP present a model with a complete, detailed prompt and measure success based on the model's ability to produce a correct solution in a single attempt. However, this approach fails to capture the reality of modern software development. In practice, developers use tools like GitHub Copilot or ChatGPT as collaborative partners, engaging in multi-turn dialogues to refine underspecified requests, debug errors, and incorporate feedback.
This research introduces an interactive evaluation pipeline designed to bridge the gap between static leaderboard performance and real-world utility. By simulating a collaborative environment, the study reveals that a model’s ranking on static benchmarks is a poor predictor of its ability to function as an effective coding assistant.
The Interactive Evaluation Pipeline
To measure "collaborative capability," the researchers developed a multi-turn "Iterative Refinement Loop." This pipeline transforms existing static coding problems into interactive challenges through several key steps:
- Input Obfuscation: To simulate real-world ambiguity, the researchers use Claude 3.5 Sonnet to summarize detailed problem descriptions into single, underspecified sentences. This creates an information asymmetry where the code model must interact with the user to succeed.
- Simulated User Feedback: A high-performing LLM (Sonnet-3.5) acts as the "user." This simulated user has access to the full, original problem description and the ground-truth solution, allowing it to provide critiques of the model's attempts.
- Feedback Modalities: The study tests four distinct feedback types:
- Sentence: A concise natural language critique.
- Paragraph: Detailed, multi-sentence instructions.
- Code Feedback: Direct suggestions for specific lines of code.
- Query Rephrasing: A rewritten version of the original prompt with added detail.
- The Refinement Loop: The code model generates a solution, the simulated user provides feedback, and the model attempts to fix its code. This process continues for up to five turns or until the code passes all functional test cases.
Experimental Setup
The study evaluated 10 prominent models, including GPT-4o, Claude 3.5 Sonnet, and various iterations of Llama, Qwen, and Gemma. These models were tested across three major benchmarks:
- APPS (Interview & Introductory): Focuses on complex, lengthy algorithmic problems.
- LiveCodeBench (LCB): A benchmark designed to mitigate data contamination by using problems released after the models' training cutoff dates.
- ClassEval: A benchmark that shifts focus from simple functions to class-level code generation.
Key Insights and Collaborative Dynamics
The Deception of Static Rankings
The most significant finding is that static rankings are deceptive. When models are evaluated in an interactive setting, their relative performance shifts. On LiveCodeBench, the ranking distance (measured by Spearman’s Footrule) between static and interactive settings reached 0.356. This suggests that some models are "one-shot wonders" that struggle to incorporate feedback, while others excel in a dialogue despite lower initial scores.
The "Aesthetic vs. Functional" Trap
Interestingly, stronger models like Sonnet-3.5 or GPT-4o occasionally performed worse when provided with high-quality "Code Feedback" compared to natural language paragraphs. The researchers identified an "aesthetic trap" where these models prioritize making their code look like the user's suggestion (aesthetic edits) rather than ensuring the logic is functionally correct. This highlights a potential pitfall in steerability: a model can be too compliant with the form of feedback at the expense of the solution's substance.
Steerability and Robustness
The study distinguishes between surface-level steerability (changing characters) and behavioral steerability (changing execution logic). Weaker models often exhibit high surface steerability—making massive changes to the text—without actually fixing the underlying bugs. Conversely, stronger models are more surgical and effective. Furthermore, top-tier models demonstrated robustness to "directionally incorrect" feedback; when a simulated user wrongly claimed a correct solution was broken, these models often ignored the bad advice and maintained their correct logic.
Results and Conclusion
The results demonstrate that interactive feedback allows models to recover from underspecified prompts, often exceeding their original static performance levels. Paragraph and Code Feedback emerged as the most effective modalities due to their high information density.
While the use of simulated users provides a scalable framework for evaluation, the authors acknowledge limitations, such as the lack of multi-modal feedback (e.g., execution logs) and the focus on Python. Future work should explore model-initiated interaction, where the LLM proactively asks clarifying questions rather than waiting for user critiques. Ultimately, this research underscores that as LLMs become more integrated into the developer workflow, we must move beyond static benchmarks to evaluate their true potential as collaborative partners.
Summary updated