SEAISep 19, 2025

Generating High-Quality Datasets for Code Editing via Open-Source Language Models

arXiv:2509.25203v31 citationsh-index: 13Has Code
Originality Incremental advance
AI Analysis

This addresses the need for high-quality, diverse datasets for code editing tasks in software engineering, though it is incremental as it builds on existing LLM capabilities.

The paper tackles the problem of noisy and limited datasets for code editing by introducing OpenCodeEdit, an open-source pipeline that synthesizes realistic code-edit triplets using multiple LLMs, resulting in a curated dataset of 20K samples. Fine-tuning models on this dataset yields significant performance gains on the CanItEdit benchmark, with relative pass@1 improvements up to 20.79% and narrowing the gap to GPT-4 to 3.54%.

Code editing plays a vital role in software engineering, requiring developers to adjust existing code according to natural language instructions while keeping functionality intact and avoiding unnecessary modifications. However, commit-based datasets commonly used for this task are often noisy, lack diversity, and fail to reflect the style of real-world edit instructions. To address this, we introduce OpenCodeEdit, an open-source pipeline that leverages multiple LLMs to synthesize realistic code-edit triplets. The pipeline produces both concise "lazy" instructions and more detailed "descriptive" ones, and applies filtering based on diffs and topics to guarantee data quality and variety. Using this process, we construct OCEDataFT, a curated dataset of 20K samples. Fine-tuning three advanced base models on OCEDataFT leads to significant performance boosts on the CanItEdit benchmark, with relative pass@1 improvements ranging from 4.50% to 20.79%. Notably, the resulting models achieve performance close to closed-source systems, narrowing the gap to GPT-4 to just 3.54%, without relying on proprietary resources or manual annotation.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes