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 DengarXiv 2026

TL;DR

EXLABEL is a self-evolving LLM agent designed to automatically clean and verify software engineering (SE) datasets. By maintaining a dynamic "experience bank" that learns from past successes and mistakes, it significantly outperforms static rubric-based methods in identifying underspecified tasks and inadequate test suites, ultimately leading to much more effective fine-tuning for coding agents.

What Problem Does This Paper Address?

The rise of Large Language Models (LLMs) in software engineering has created a massive demand for high-quality benchmarks like SWE-bench. These datasets consist of real-world GitHub issues, golden patches (solutions), and test suites. However, these datasets are often "noisy." Some tasks are underspecified (the description lacks critical info), while others have inadequate test coverage (the tests pass even if the solution is wrong or over-specify implementation details).

Cleaning these datasets manually is prohibitively expensive—roughly $100 per instance. While researchers have tried using LLMs for automated annotation, existing tools typically rely on static, one-size-fits-all rubrics. These rubrics struggle with the nuanced "corner cases" that human experts handle by drawing on years of accumulated experience. The authors of this paper ask: Can we build an agent that learns and evolves its own judgment criteria just like a human expert?

Methods

The authors introduce EXLABEL, an agent that operates in two primary phases: Experience Accumulation and Experience Reuse.

  1. Experience Accumulation: The agent iteratively refines a judgment rubric by processing labeled data.
  2. Rollout: The agent summarizes a SWE instance into three dimensions: Task Type, Task Explanation, and Test Explanation (see Figure 3). It then predicts a quality label using Retrieval-Augmented Generation (RAG).
  3. Reflection: The agent compares its prediction to a "golden" human label. It reflects on its reasoning to identify patterns of success or failure.
  4. Update: It dynamically updates its Experience Bank—inserting new insights, modifying existing ones, or deleting contradictory rules.
  5. Experience Reuse: When faced with a new, unlabeled instance, EXLABEL retrieves the most relevant experiences from its bank to guide its judgment.
Figure 3: An example of the summarized descriptions along three dimensions for django-14453 in SWE-bench.
Figure 2: Overview of EXLABEL.

A key innovation is the three-dimensional summarization. By converting raw code and messy issue descriptions into structured natural language, EXLABEL bridges the semantic gap, making it easier to retrieve relevant past experiences.

Datasets

  • SWE-TQ (New): The authors constructed this benchmark by cleaning human annotations from SWE-bench and Multi-SWE-bench. It spans eight programming languages and serves as a high-quality ground truth for evaluating automated annotators.
  • SWE-rebench: A large-scale synthetic dataset used to test the downstream impact of EXLABEL's filtering.
  • SWE-bench Verified: The gold standard for evaluating coding agents, used to measure the final performance of models trained on EXLABEL-filtered data.

Key Insights and Ideas

  • Experience > Static Rubrics: Static rules are too brittle for the complexity of software engineering. As shown in Figure 1, a standard LLM might think a test is "adequate" just because it aligns with a solution. EXLABEL learns a more sophisticated rule: avoid over-specification that rejects valid alternative implementations.
  • Learning from Mistakes: The "Mistakes" field in the experience bank is crucial. It documents reasoning flaws and cognitive biases, helping the agent avoid recurring errors (see Figure 4).
  • Data Quality Trumps Quantity: Filtering out low-quality tasks actually makes model training more efficient. Even though filtering reduces the total number of training examples, the resulting model is significantly more capable because it isn't learning from ambiguous or "unverifiable" data.
Figure 1: A motivating example of django-15869 in SWE-bench.
Figure 4: An example of generated experience about xarray-5362 in SWE-bench for test coverage assessment.

Key Results

EXLABEL demonstrated superior performance across multiple backbone models (Qwen, DeepSeek, GPT-4o):

  • Clarity & Coverage: It achieved relative F1 improvements of up to 49.9% for task clarity and 24.0% for test coverage assessment compared to the best-performing baselines (like SPICE).
  • Downstream Impact: The authors fine-tuned a Qwen-9B model on data filtered by EXLABEL. This model resolved 66.2% of issues on SWE-bench Verified—a 14.5% improvement over models trained on data filtered by other methods.
  • Cost Efficiency: By filtering out "junk" instances before the expensive trajectory sampling phase, EXLABEL reduced the cost per resolved trajectory to just $0.46.

Limitations and Future Work

While EXLABEL significantly reduces false positives compared to other tools, it still incurs a False Positive Rate (FPR) between 0.7% and 30.1% depending on the task. This means it occasionally discards perfectly valid training instances.

Future work could involve extending EXLABEL to other software engineering domains beyond issue resolution, such as feature optimization or documentation generation. Additionally, the authors suggest that the experience bank could be further refined to handle even more diverse repository-specific conventions.

Summary updated

Abstract

Large language models (LLMs) have shown strong performance on software engineering (SE) tasks, driving the need for high-quality datasets for reliable training and evaluation. SWE-bench-style datasets (SWE datasets) are widely used to evaluate LLM-based coding agents on real-world software issues, where task clarity and test coverage directly affect whether instances are solvable and verifiable. However, quality issues persist in existing SWE datasets, and manual annotation is costly and labor-intensive, motivating LLM-based annotation. Existing approaches typically rely on static, overly general rubrics, limiting their ability to handle diverse and nuanced scenarios and often yielding high false positive rates. In contrast, human annotators draw 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 maintains an evolving experience bank that distills cross-instance knowledge into stable yet adaptive judgment criteria and reuses relevant experience to guide the assessment of new instances. For 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 baseline for task clarity and test coverage assessment on the Python/Multilingual subsets, respectively. Moreover, a coding model fine-tuned on SWE-rebench data filtered by ExLabel resolves 66.2% of issues on SWE-bench Verified, outperforming the model trained on data filtered by the best baseline by 14.5%.
BibTeX
@misc{jiang2026well,
  author = {Zhonghao Jiang and Xuyang Zheng and Yanfu Yan and Zhongxin Liu and Lingfeng Bao and Shuiguang Deng},
  title = {{Well-Specified and Well-Tested? Assessing SWE-bench-Style Datasets with a Self-Evolving Agent}},
  year = {2026},
  eprint = {2610.39417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.39417},
}
Figure