arXiv:2610.39417cs.SEOct 2026

Manuscript Offprint

arXiv:2610.39417

Well-Specified and Well-Tested? Assessing SWE-bench-Style Datasets with a Self-Evolving Agent

Zhonghao Jiang, Xuyang Zheng, Yanfu Yan, Zhongxin Liu, Lingfeng Bao, Shuiguang Deng

Abstract

Large language models (LLMs) have demonstrated strong performance on software engineering (SE) tasks, driving the need for high-quality datasets to support reliable training and evaluation. SWE-bench-style datasets (SWE datasets) are widely used to evaluate LLM-based coding agents for resolving real-world software issues, where task quality, particularly task clarity and test coverage, directly affects whether instances are solvable and verifiable. However, quality issues remain in existing SWE datasets, while manual annotation and verification are costly and labor-intensive, motivating recent efforts toward LLM-based annotation. Existing approaches typically rely on static and overly general judgment rubrics, limiting their ability to accommodate diverse and nuanced scenarios and often resulting in high false positive rates. In contrast, human annotation usually draws on accumulated experience to make context-aware judgments.

Inspired by this, we propose EXLABEL, an LLM-based, self-evolving, experience-guided assistant for task clarity and test coverage assessment in SWE datasets. EXLABEL introduces an evolving experience bank that accumulates cross-instance knowledge into stable yet adaptive judgment criteria and reuses relevant experience to guide the assessment of new instances. To enable systematic evaluation, we construct SWE-TQ, a new benchmark spanning eight programming languages, by cleaning human annotations from SWE-bench and Multi-SWE-bench. Experiments with three backbone LLMs show that EXLABEL achieves the best F1 across all settings, with relative improvements of 44.2%/49.9% and 24.0%/18.4% over the best-performing baseline for task clarity and test coverage assessment on the Python/Multilingual subsets, respectively. Furthermore, a coding model fine-tuned on SWE-rebench data filtered by EXLABEL resolves 66.2% of the issues on SWE-bench Verified, outperforming the model trained on data filtered by the best-performing baseline by 14.5%.

1 Introduction

Developing and evaluating the software engineering (SE) capabilities of large language models (LLMs) has attracted considerable research attention [13, 21, 58]. SE datasets provide a critical foundation for equipping LLMs with SE-related capabilities [37, 56, 59], serving both as benchmarks [8, 22, 60] for evaluating model performance on SE tasks and as valuable corpora for model training [42, 52, 58]. Among these datasets, SWE-bench-style datasets (i.e., SWE datasets) [3, 18, 23] have become increasingly popular due to their demonstrated effectiveness in training and evaluating LLM-based coding agents for real-world software issue resolution [13, 55]. Each instance in

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Preprint.

SWE datasets consists of a natural-language task description, a golden patch, a set of test suites for evaluating the success of the task, and a corresponding sandboxed executable environment.

An important yet not well-explored aspect of SWE datasets is task quality, which concerns the solvability and verifiability of instances [5]. Poor task quality not only undermines evaluation reliability but can also mislead model training and benchmarking, leading to inflated or unreliable performance estimates. Despite its importance, quality issues have been observed in existing SWE datasets [53, 54, 58, 61]. Issues such as insufficient test coverage [56, 59] persist even in the manually verified SWE-bench dataset [8]. For SWE datasets containing synthetic data [54, 58], such issues may be further exacerbated, as large-scale automated data generation may introduce additional noise and inconsistencies. Task quality is commonly assessed along two dimensions [8]: task clarity and test coverage. Task clarity evaluates whether a task description provides sufficient and unambiguous information for solving the problem [8, 37]; incomplete or ambiguous descriptions may lead to incorrect or biased understanding, rendering tasks unsolvable [20, 35]. Test coverage evaluates whether the test suite is adequate and precise for verifying correctness [8, 37]; insufficient coverage may allow incorrect solutions to pass due to limited discriminative power [56, 59].

Currently, the assessment of task quality in SWE datasets primarily relies on human experts [8, 22, 60]. For example, in SWE-bench Verified [8], each instance is manually assessed/annotated three times by a total of 93 professional Python engineers. While manual annotation can provide relatively high-quality assessments, it is inherently expensive and difficult to scale, especially as large volumes of SWE data are rapidly collected [3, 18] or synthesized [54, 58]. Specifically, annotating 1,000 instances can cost approximately 100,000(100,000 (100 per instance), with an average of 1.05 person-hours required per instance [37]. These challenges highlight the need for automated annotation techniques that reduce costs while maintaining annotation quality.

A natural direction is to leverage LLMs for automated SWE dataset annotation. Recent work (e.g., SPICE [37]) constructs a rationale checklist and incorporates it into prompts to guide the annotation of SWE instances. However, these judgment rubrics are typically fixed and overly generic, limiting their ability to accommodate diverse and complex scenarios, particularly corner cases. More fundamentally, existing work largely treats annotation as a static decision process, whereas prior studies on human annotation and related tasks (e.g., qualitative analyses of annotation behavior [48, 49]) suggest that annotation is influenced by contextual factors and accumulated experience. This contrast motivates an experience-informed annotation process in which the judgment rubric evolves by learning from previously encountered cases.

However, effectively accumulating such experience is non-trivial. A naive strategy that directly aggregates experience at the instance level can produce increasingly expanded and fragmented rubrics, degenerating into collections of detailed, case-specific rules rather than coherent and generalizable guidelines for decision-making [15, 51]. The key challenge is therefore to balance generality and specificity when constructing and evolving the judgment rubric. On the one hand, the rubric should capture general principles that transfer across instances; on the other hand, it should retain sufficient specificity to accommodate nuanced and corner cases.

To this end, we model annotation as an iterative and experience-driven process that progressively refines the judgment rubric through experience abstraction to balance generality and specificity. Specifically, we propose EXLABEL, a self-evolving and experience-guided assistant for task quality assessment (i.e., task clarity and test coverage) in SWE datasets. EXLABEL is designed for both fully automated annotation and human-assisted annotation, where it provides preliminary assessments to potentially reduce manual effort. The core of EXLABEL is an evolving experience bank, which stores and updates structured knowledge derived from previously processed instances. EXLABEL operates in two phases: experience accumulation and experience reuse. The accumulation phase aims to mine cross-instance information from annotated instances into the experience bank, which is iteratively evolved to form a stable judgment rubric; the reuse phase then leverages the rubric through experience retrieval when predicting new annotations.

In the accumulation phase, EXLABEL iteratively refines its internal judgment rubric through a three-stage cycle: rollout, reflection, and experience update. The rollout stage summarizes each SWE instance along three dimensions (i.e., task type, task explanation, and test explanation), and encodes them using both sparse (i.e., BM25 [47]) and dense (LLM-based) representations to enable effective retrieval of relevant past experiences. The reflection stage leverages the semantic understanding capability of an LLM to compare the predicted annotation with the golden one, prompt the model to self-reflect on its reasoning process [46], and identify typical understanding, success, and error patterns, which are then distilled into an experience item. Finally, in the experience update stage, the experience bank is dynamically revised (via insertion, modification, and deletion), enabling the model to form a self-evolving cycle that progressively stabilizes the rubric to strike a balance between generality and specificity.

Evaluating such techniques poses an additional challenge, as no publicly available dataset is readily suitable for this purpose [37]. To address this, we construct SWE-TQ based on the human annotations of SWE-bench [23] and Multi-SWE-bench [60], which consists of a Python subset SWE-TQ-PYTHON and a multilingual subset SWE-TQ-MULTILINGUAL covering seven other programming languages. Specifically, we retain the instances on which all annotators agree, split them into historical data for experience accumulation and a test set, and apply an additional round of manual cleaning to remove typical annotation errors. This process results in 1,076/1,907 instances for task clarity assessment and 833/1,739 instances for test coverage assessment in SWE-TQ-PYTHON/MULTILINGUAL, respectively.

On this benchmark, we evaluate EXLABEL through two assessments using three LLMs, Qwen3.8-27B [45], DeepSeek-V4-Flash [10], and GPT-5.6 Luna [39], and compare it with five baselines. Experimental results show that EXLABEL achieves the best F1 in all 12 combinations of assessment tasks, subsets, and backbone models, with relative improvements in average F1 of 44.2%/49.9% and 24.0%/18.4% over the best-performing baseline for task clarity and test coverage assessment in SWE-TQ-PYTHON/MULTILINGUAL, respectively. Moreover, EXLABEL achieves average FPRs of 3.3% and 15.1% for task clarity and test coverage assessment, respectively, indicating that it filters out low-quality instances with limited impact on valid ones. Ablation studies further demonstrate that removing the experience bank or any of its key components leads to significant performance degradation, highlighting the effectiveness of our design.

Beyond assessment accuracy, we further evaluate whether EXLABEL can improve the quality of SWE data used for coding-agent training. We apply EXLABEL to filter 5k SWE-rebench instances [3] and fine-tune Qwen3.5-9B-Base [44] on the resolved trajectories of the retained instances. The resulting model achieves a 66.2% resolution rate on SWE-bench Verified, outperforming training with data filtered by the best-performing baseline by 14.5% and with the unfiltered dataset by 21.7%, while reducing the cost per resolved trajectory to $0.46.

In summary, our main contributions are as follows:

  • We propose EXLABEL, a novel LLM-based, experience-guided assistant for task quality assessment in SWE datasets. EXLABEL introduces a self-evolving experience bank that accumulates cross-instance knowledge from historical annotations into a stable yet adaptive judgment rubric and reuses relevant experience to guide the assessment of new instances.

  • We construct SWE-TQ, a benchmark for task clarity and test coverage assessment spanning eight programming languages, by manually cleaning the human annotations of SWE-bench [8] and Multi-SWE-bench [60].

  • We comprehensively evaluate EXLABEL on SWE-TQ, and it achieves the best F1 in all settings with relative improvements in average F1 of 44.2%/49.9% and 24.0%/18.4% on the two assessments in SWE-TQ-PYTHON/MULTILINGUAL, respectively, compared with the best-performing baseline.

  • We demonstrate the downstream effectiveness of EXLABEL by applying it to filter 5k SWE-rebench instances [3] for coding-agent training. Fine-tuning Qwen3.5-9B-Base on the filtered data achieves a 66.2% resolution rate on SWE-bench Verified, outperforming the best-performing baseline by 14.5% and the unfiltered data by 21.7%.

References (56)