EditBench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits

Wayne Chi, Valerie Chen, Ryan Shar, Aditya Mittal, Jenny Liang, Wei-Lin Chiang, Anastasios Angelopoulos, Ion Stoica, Graham Neubig, Ameet Talwalkar, Chris Donahue

International Conference on Learning Representations 2026 · Oral

Overview

In the rapidly evolving landscape of AI-assisted software development, Large Language Models (LLMs) are increasingly integrated into Integrated Development Environments (IDEs) to assist with various coding tasks. While code generation has received significant attention, the equally critical task of code editing—modifying existing code based on user instructions—remains a complex challenge. The talk "EditBench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits," presented by Wayne Chi at ICLR 2026, introduces a novel benchmark designed to rigorously evaluate LLMs on their capacity to perform real-world code edits. This work addresses a significant gap in current evaluation methodologies, which often rely on artificial problems or data-intensive, non-reproducible human preferences.

Watch on SlidesLive

Visual summary for EditBench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits by Wayne Chi, Valerie Chen, Ryan Shar, Aditya Mittal, Jenny Liang, Wei-Lin Chiang, Anastasios Angelopoulos, Ion Stoica, Graham Neubig, Ameet Talwalkar, Chris Donahue
Visual summary for EditBench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits by Wayne Chi, Valerie Chen, Ryan Shar, Aditya Mittal, Jenny Liang, Wei-Lin Chiang, Anastasios Angelopoulos, Ion Stoica, Graham Neubig, Ameet Talwalkar, Chris Donahue

Key moments

  1. 0:00 Introduction to EditBench: evaluating real-world instructed code edits
  2. 0:45 Example: Disambiguating messy real-world user instructions
  3. 2:20 Comparing coding benchmarks: Artificial vs. real-world problems
  4. 5:55 Methodology: Collecting EditBench data via Copilot Arena
  5. 6:50 Importance of real-world data and new contextual information
  6. 8:40 Evaluation findings: Model performance and contextual impact
  7. 10:15 Q&A: Handling data noise and future research plans

EditBench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits

Speakers: Wayne Chi, Valerie Chen, Ryan Shar, Aditya Mittal, Jenny Liang, Wei-Lin Chiang, Anastasios Angelopoulos, Ion Stoica, Graham Neubig, Ameet Talwalkar, Chris Donahue

Conference: ICLR 2026

YouTube: https://slideslive.com/39062064

Overview

In the rapidly evolving landscape of AI-assisted software development, Large Language Models (LLMs) are increasingly integrated into Integrated Development Environments (IDEs) to assist with various coding tasks. While code generation has received significant attention, the equally critical task of code editing—modifying existing code based on user instructions—remains a complex challenge. The talk "EditBench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits," presented by Wayne Chi at ICLR 2026, introduces a novel benchmark designed to rigorously evaluate LLMs on their capacity to perform real-world code edits. This work addresses a significant gap in current evaluation methodologies, which often rely on artificial problems or data-intensive, non-reproducible human preferences.

EditBench is a meticulously curated benchmark comprising 540 problems derived from authentic, "in-the-wild" code edits. Unlike traditional benchmarks that provide pristine, unambiguous instructions, EditBench embraces the messy reality of user interactions, incorporating vague natural language prompts and leveraging crucial contextual information such as highlighted code regions. The benchmark's structure mirrors real-world scenarios, presenting models with task instructions, extensive code context, and a suite of test cases to validate solutions. The significance of EditBench lies in its ability to provide a more realistic and reproducible evaluation framework for LLMs in code editing, revealing nuanced performance differences across models and highlighting the critical role of contextual understanding in achieving successful edits.

This research is particularly timely as the industry moves towards more sophisticated AI coding assistants. By offering a robust tool for evaluating LLMs on real-world code editing tasks, EditBench not only pushes the boundaries of current evaluation practices but also provides invaluable insights for the development of future models. It underscores the necessity for LLMs to interpret ambiguous instructions, leverage specific code context, and perform targeted modifications, ultimately paving the way for more effective and user-friendly AI programming tools.

Background

▶ Watch: Introduction to EditBench: evaluating real-world instructed code edits (0:00)

The evaluation of Large Language Models (LLMs) for coding tasks has historically relied on a spectrum of benchmarks, each with distinct advantages and limitations. On one end are classical coding benchmarks such as HumanEval and LiveCodeBench. These benchmarks are celebrated for their ease of execution and the reproducibility of their results. A new model can be swiftly run against HumanEval, yielding a quantifiable score that allows for direct comparison against previous models or training iterations. However, their primary drawback lies in the artificial nature of their problems. HumanEval problems are derived from human notations, while LiveCodeBench problems often mirror those found on competitive programming platforms like LeetCode. As Wayne Chi highlights, these problems rarely reflect the day-to-day coding challenges faced by professional developers, limiting their utility in assessing real-world performance.

At the other end of the spectrum are more realistic evaluation methodologies, exemplified by Chatbot Arena and the team's prior work, Copilot Arena. These "arena" setups involve real users submitting prompts and receiving responses from multiple LLMs, subsequently voting on their preferred outcome. The undeniable benefit of this approach is the acquisition of real problems and genuine user feedback. Copilot Arena, published at ICML 2024, specifically aimed to evaluate LLMs within their operational environment—the IDE. It facilitated in-the-wild evaluation by presenting users with pairwise autocomplete suggestions, allowing them to vote and contribute to a leaderboard. This project garnered substantial engagement, serving over 4.5 million completions and collecting over 11,000 votes from more than 2,000 users, and its premise has been adopted by industry leaders for in-IDE model evaluation. The significant challenge with arena-based evaluations, however, is their data intensity, often requiring thousands of votes per model to achieve statistically meaningful results, which makes evaluating new models a slow and resource-heavy process.

Recognizing this dichotomy, the research team identified a critical need for an evaluation framework that strikes a balance: one that is both easy to run (like classical benchmarks) and features real-world problems (like arena evaluations). This gap is where EditBench positions itself. While SWE-bench also aims for real-world relevance by sourcing problems from GitHub issues, it primarily focuses on addressing software engineering tasks that involve fixing bugs or implementing features across entire repositories. For specific coding modalities, such as instructed code edits—where a user provides an instruction and highlights a specific code region for modification—a large, readily available repository of "in-the-wild" data has been historically unavailable. EditBench was conceived to fill this void, providing a benchmark that captures the nuanced reality of user-driven code modifications, a pervasive task in modern software development.

Key Findings

▶ Watch: Comparing coding benchmarks: Artificial vs. real-world problems (2:20)

The evaluation of 40 distinct LLMs against the EditBench benchmark yielded several critical insights into the current capabilities and limitations of AI in real-world code editing:

First, the overall performance of LLMs on instructed code edits remains a significant challenge. Across all 40 models tested, only one managed to achieve a pass@1 rate exceeding 60%. This indicates that even the most advanced LLMs still struggle to consistently perform accurate and desired code edits based on real-world, often ambiguous, user instructions and context. The high failure rate underscores the complexity of the task and the substantial room for improvement in current models.

Second, a clear performance disparity was observed between closed-source models and open-source models. The evaluation consistently showed that closed-source models, such as Gemini 1.5 Pro and GPT-4o mini, generally outperform their open-source counterparts on the diverse set of problems within EditBench. This suggests that proprietary models, likely benefiting from extensive training data, sophisticated architectures, and continuous refinement, currently hold an edge in handling the intricacies of real-world code editing tasks.

Third, models exhibit varying strengths across different categories of code editing problems. The researchers categorized the EditBench problems into four distinct types, revealing that while models like Gemini 1.5 Pro and GPT-4o mini might perform similarly across three of these categories, one model can significantly outperform another in a specific area. For instance, Gemini 1.5 Pro demonstrated a notable advantage over GPT-4o mini when it came to feature addition tasks. This finding is crucial as it suggests that models might be specialized or excel in particular types of code modifications, indicating that a one-size-fits-all solution might not be optimal and that future model development could benefit from focusing on specific editing modalities. This also echoes previous findings from Copilot Arena, where models showed varied strengths.

Lastly, the study definitively established that model performance is significantly affected by additional contextual information. Specifically, the inclusion of the highlighted code region consistently led to improved model performance across the board. This validates the core hypothesis of EditBench: that user-selected code regions provide invaluable cues to the LLM about the intended scope and target of an edit. Conversely, adding cursor position as contextual information yielded mixed results, sometimes leading to performance degradation. This suggests that not all contextual information is equally useful, and some, if not properly utilized or weighted by the model, can introduce noise or misdirection. Furthermore, models that struggled to effectively utilize the highlighted code generally exhibited a broader difficulty in leveraging contextual information, indicating a fundamental limitation in their ability to integrate and interpret diverse inputs for complex tasks.

Technical Deep Dive

▶ Watch: Methodology: Collecting EditBench data via Copilot Arena (5:55)

The creation of EditBench involved a sophisticated data collection and annotation pipeline designed to capture the essence of real-world instructed code edits. Recognizing the scarcity of large repositories for this specific modality, the researchers innovated by building a new feature directly into Copilot Arena, their prior in-IDE evaluation platform. This feature was instrumental in gathering the raw, "in-the-wild" data that forms the foundation of EditBench.

The process began with a user highlighting a specific region of code within their IDE. This act of highlighting is a crucial differentiator for EditBench, as it explicitly signals the user's focus and the intended scope of the edit—a piece of contextual information largely absent from other coding benchmarks. Following the highlight, the user would provide a natural language instruction or "suggestion" for the desired modification. This instruction often reflected the messy, ambiguous, and terse nature of real-world user queries, such as "optimize this" or "fix this," or even a direct error trace dump, unlike the neatly phrased problems seen in benchmarks like CanItEdit. The LLM would then generate a code suggestion based on both the highlighted region and the instruction. The user would review this generated code and decide whether to accept or reject it. This interaction, captured directly within the user's development workflow, formed the raw data points.

Each collected data point then underwent a rigorous human annotation and verification process. This step was critical for ensuring the quality, correctness, and unambiguous interpretability of the problems included in EditBench. Highly ambiguous or unclear problems, even if collected in the wild, were excluded from the final benchmark to maintain integrity. This manual curation ensured that each of the 540 problems in EditBench was a valid, solvable, and representative instance of a real-world instructed code edit.

The resulting structure of an EditBench problem is multifaceted:

  1. Task Instruction: The natural language prompt provided by the user, which can range from concise and clear to ambiguous and verbose (e.g., "on error try again in 61 seconds," or a full error trace).
  2. Code Context: The full code file or relevant snippets surrounding the highlighted region, providing the necessary semantic and syntactic environment for the edit.
  3. Highlighted Code Region: The exact portion of the code selected by the user, serving as a critical signal for the model to understand the target of the edit. This is a novel input feature in the context of coding benchmarks.
  4. Test Cases: A series of automatically executable tests annotated by human experts to objectively determine if the model's proposed solution correctly implements the user's instruction and maintains code functionality.

A concrete example illustrates this design: A user provides the instruction "on error try again in 61 seconds." The code context includes two functions, generate_prompt and create_image. Without further context, it's ambiguous which function requires modification. However, the user then highlights the create_image function. This highlighted region disambiguates the instruction, clearly indicating that the retry logic should be applied to image generation. The model's task is then to insert a try-except loop around the highlighted code, and the solution is evaluated against specific test cases to ensure the retry mechanism functions as intended. This intricate problem structure ensures that EditBench effectively evaluates an LLM's ability to not only generate correct code but also to accurately interpret user intent within a rich and often imperfect real-world context.

Furthermore, the data collection methodology inherently captures new contextual information that is typically unavailable in other benchmarks. Beyond the highlighted code region, insights like cursor position (though later found to be less consistently useful) were also initially collected. The diverse nature of real-world user instructions—from terse commands to full error traces—provides a rich, realistic testbed for LLMs to demonstrate their robustness in handling ambiguous inputs. The resulting dataset also boasts a significantly wider distribution of Python libraries compared to other code editing benchmarks, featuring almost triple the variety, which further attests to its real-world relevance and complexity.

Experimental Setup & Results

▶ Watch: Evaluation findings: Model performance and contextual impact (8:40)

The experimental evaluation of LLMs on EditBench was designed to provide a comprehensive understanding of their performance in real-world instructed code editing tasks.

EditBench Dataset: The benchmark itself comprises 540 unique problems, meticulously sourced from "in-the-wild" code edits collected through a specialized feature integrated into Copilot Arena. Each problem includes a user instruction, the relevant code context, a precisely defined highlighted code region, and a set of human-annotated test cases for objective evaluation. A notable characteristic of the dataset is its wide distribution of Python libraries, containing almost triple the number of distinct libraries compared to the next best code editing benchmark. This diversity ensures that models are tested across a broad spectrum of real-world programming scenarios, rather than being confined to a narrow set of common libraries or functions.

Models Evaluated: The study evaluated a total of 40 different Large Language Models, encompassing both prominent closed-source models (e.g., Gemini 1.5 Pro, GPT-4o mini) and a variety of open-source models. This extensive selection allowed for a broad comparison of current state-of-the-art capabilities across different development paradigms.

Metrics: The primary metric used for evaluation was pass@1 rate. This metric measures the percentage of problems for which the model correctly produces the desired code edit on the first attempt, as verified by the provided test cases. This is a stringent metric, reflecting the expectation of accurate and direct assistance from an AI coding assistant.

Headline Numbers & Key Findings:

  • Overall Challenge: The most striking result was the general difficulty LLMs faced with EditBench. Across all 40 models, only one managed to achieve a pass@1 rate greater than 60%. This indicates that real-world instructed code editing remains a highly challenging task for even the most advanced LLMs, highlighting significant room for improvement.
  • Closed-Source vs. Open-Source Performance: Consistent with trends observed in other domains, closed-source models generally outperformed open-source models on EditBench. This suggests that proprietary models, likely benefiting from larger training corpora, more sophisticated architectures, or extensive fine-tuning, currently hold an advantage in handling the complexities and nuances of real-world code edits.
  • Performance Across Problem Categories: The researchers categorized EditBench problems into four distinct types. The results showed that models did not perform uniformly across these categories. For instance, Gemini 1.5 Pro and GPT-4o mini exhibited comparable performance on three out of the four categories. However, for feature addition tasks, Gemini 1.5 Pro significantly outperformed GPT-4o mini. This finding suggests that models may have specialized strengths or weaknesses in different types of code modification, pointing towards the potential for more targeted model development or ensemble approaches.

Ablation Studies & Contextual Information:

A critical part of the experimental setup involved analyzing the impact of various contextual information inputs on model performance:

  • Impact of Highlighted Code: The inclusion of the highlighted code region consistently led to an improvement in model performance. This strongly validates the hypothesis that explicitly indicating the target region of an edit provides crucial disambiguation and guidance to the LLM, enabling it to better understand user intent and execute more accurate modifications.
  • Impact of Cursor Position: In contrast, adding cursor position as contextual information yielded mixed performance results, and in some cases, even led to performance degradation. This suggests that not all contextual signals are equally valuable or easily interpretable by current LLMs. Cursor position might introduce noise or be misinterpreted, leading to less optimal outputs.
  • General Context Utilization: An interesting correlation was observed: models that struggled to effectively utilize the highlighted code also generally showed a broader difficulty in leveraging other forms of contextual information. This indicates a fundamental challenge for some models in integrating diverse inputs to inform their code generation process, rather than just a specific issue with one type of context.

These results provide a detailed empirical foundation for understanding the current state of LLMs in code editing, emphasizing the complexity of the task and the critical role of well-designed contextual inputs.

Practical Implications

▶ Watch: Q&A: Handling data noise and future research plans (10:15)

The findings from EditBench carry significant practical implications for a wide range of stakeholders in the AI/ML and software development ecosystems, including practitioners, infrastructure teams, model builders, and deployers.

For practitioners and model builders, the benchmark underscores the current limitations of LLMs in performing real-world instructed code edits. The fact that only one out of 40 models exceeded a 60% pass@1 rate highlights that current AI coding assistants are far from perfect. This implies a need for continued research and development focused on improving model robustness, accuracy, and contextual understanding. Specifically, future models should be trained to:

  • Handle Ambiguous and Messy Instructions: Real-world user instructions are often terse, vague, or contain raw error traces. Models need to become more adept at interpreting these imperfect inputs, perhaps by learning to ask clarifying questions or by drawing stronger inferences from contextual cues.
  • Leverage Highlighted Code Effectively: The consistent performance improvement observed with highlighted code emphasizes its critical role. Model architectures and training regimes should prioritize mechanisms that allow LLMs to deeply understand and precisely act upon user-selected code regions, perhaps through specialized attention mechanisms or input representations that emphasize the highlighted segment.
  • Differentiate Useful from Noise Context: The mixed results with cursor position suggest that not all contextual information is equally beneficial. Model builders must explore how to intelligently filter, weight, or ignore irrelevant contextual cues to prevent performance degradation. This could involve learning which types of context are salient for different tasks.
  • Specialize for Edit Types: The varied performance across problem categories (e.g., feature addition) suggests that a single, monolithic model might not be optimal for all code editing tasks. Developing specialized models or fine-tuning general models for specific editing modalities (bug fixes, refactoring, feature additions) could lead to higher accuracy and user satisfaction.

For infrastructure teams and deployers, EditBench provides a reproducible and realistic tool for evaluating new models before deployment. This addresses the challenge of data-intensive arena evaluations like Copilot Arena, offering an efficient way to benchmark model improvements. The benchmark can guide decisions on which models to integrate into IDEs, ensuring that deployed LLMs meet practical performance thresholds. Furthermore, understanding the limitations highlighted by EditBench can inform the design of user interfaces for AI coding assistants, perhaps prompting users for more explicit instructions or encouraging the use of highlighting to guide the model.

Tradeoffs and Limitations: The work also implicitly highlights several tradeoffs. While EditBench offers realism and reproducibility, its creation involved significant human annotation and verification. This process, while ensuring high data quality, is resource-intensive, which is a common tradeoff when moving beyond synthetically generated problems. The generalizability of the 540 problems, while diverse, will need continuous expansion as coding practices evolve. The benchmark also focuses on Python, and while many concepts are transferable, performance in other languages might vary.

Ultimately, EditBench serves as a crucial compass for navigating the development of AI-powered code editing tools. It pushes the field towards more practical and user-centric evaluations, guiding the creation of LLMs that are not just intelligent but genuinely useful in the everyday workflow of software developers.

Key Takeaways

  • In-the-wild data is essential for realistic benchmarks: EditBench demonstrates how sourcing problems from real user interactions in IDEs (via Copilot Arena) yields benchmarks that capture the messiness and complexity of actual development work.
  • New inputs and context are vital for evaluation: The inclusion of highlighted code regions is a novel and critical contextual input, significantly improving model performance by clarifying user intent and target scope, a feature absent in most prior benchmarks.
  • Real-world evaluation provides novel insights: EditBench reveals that LLMs still struggle significantly with instructed code edits (only one model above 60% pass@1), closed-source models generally outperform open-source, and models exhibit varied strengths across different problem categories.
  • Contextual information's value is not uniform: While highlighted code consistently boosts performance, other contextual cues like cursor position can sometimes lead to mixed or even degraded results, emphasizing the need for models to intelligently discern relevant information.
  • LLMs need to improve ambiguous instruction handling: The benchmark exposes that models must become more robust at interpreting terse, ambiguous, or error-trace-based user instructions, which are common in real-world scenarios.
  • Future model development can benefit from specialization: The observed performance differences across problem categories suggest that training or fine-tuning models for specific types of code edits (e.g., feature addition vs. bug fixing) could lead to more effective and reliable AI coding assistants.

About the Speaker(s)

The talk "EditBench: Evaluating LLM Abilities to Perform Real-World Instructed Code Edits" was presented by Wayne Chi. Wayne Chi is the primary speaker for this research, representing a collaborative effort with a distinguished list of co-authors including Valerie Chen, Ryan Shar, Aditya Mittal, Jenny Liang, Wei-Lin Chiang, Anastasios Angelopoulos, Ion Stoica, Graham Neubig, Ameet Talwalkar, and Chris Donahue. While specific titles and affiliations for all co-authors are not detailed in the provided metadata or transcript, the collective expertise involved in this work, spanning multiple researchers, indicates a deep engagement with cutting-edge AI/ML research, particularly in the domain of Large Language Models and their applications in software engineering tools. The presentation highlights Wayne Chi's role in articulating the intricacies of EditBench, its motivation, and its key findings.

Reviews

→ Top-rated talks at International Conference on Learning Representations 2026

All talks from International Conference on Learning Representations 2026