Quality estimate 6.5/10

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 ยท October 29, 2026

Reviewed paper version: v1.

๐Ÿ“Œ Highlights

EXLABEL treats SWE dataset annotation as an iterative learning process rather than a fixed rubric lookup. It accumulates transferable judgment patterns from historical cases, retrieves relevant experience for new cases, and revises its knowledge after comparing predictions with golden annotations.

The paper's strongest evidence is consistent cross-backbone performance: EXLABEL achieved the best F1 in all 12 combinations of task, subset, and backbone model. Its average-F1 improvement over the best baseline was 44.2%/49.9% for task clarity and 24.0%/18.4% for test coverage on the Python/Multilingual subsets.

The main caveat is filtering risk. EXLABEL's FPR is nonzero and reaches 30.1% in the reported multilingual test-coverage setting, so downstream usefulness depends on whether improved retained-data quality offsets the loss of valid instances.

  • Core task: detect underspecified or inadequately tested SWE instances.
  • Core mechanism: structured summaries, hybrid retrieval, reranking, reflection, and experience-bank updates.
  • Downstream result: EXLABEL-filtered training data produced 66.2% resolution on SWE-bench Verified.
  • Main verification question: how well do results transfer beyond the cleaned, agreement-only SWE-TQ benchmark?

๐ŸŽฏ Introduction

SWE-bench-style instances combine a natural-language task description, a golden patch, test suites, and an executable environment. The paper focuses on two quality dimensions: task clarity, which asks whether the description is sufficient and unambiguous for solving the issue, and test coverage, which asks whether the tests adequately and precisely verify correctness.

The prior limitation is twofold. Manual annotation by professional engineers is expensive and difficult to scale, while existing automated methods rely on fixed, general rubrics that struggle with nuanced cases and can produce high false-positive rates. The paper's objective is to emulate the way human annotators accumulate experience by building an adaptive, reusable judgment bank.

The motivating Django example illustrates the distinction: a test that checks an exact deprecation-warning message may reject valid implementations even though the task only requires deprecation behavior. EXLABEL uses this type of cross-instance principle to improve test-coverage judgments.

๐Ÿ”ฌ Methodology

EXLABEL has an experience accumulation phase and an experience reuse phase. Accumulation starts with an empty bank and processes labeled instances through rollout, reflection, and experience update. Rollout summarizes the task, golden patch, and test patch along task type, task explanation, and test explanation; retrieves candidate experience using BM25 and dense embeddings; reranks candidates; and predicts a label and explanatory notes.

Reflection compares the prediction with the golden annotation and generates a structured experience item. Understanding captures an abstract problem pattern, Successes records transferable strategies, and Mistakes records recurring reasoning failures. The update stage applies insertion, modification, or deletion operations to maintain a compact, adaptive bank. For new unlabeled instances, reuse repeats summarization, retrieval, reranking, and prediction with the accumulated experience as context.

The benchmark construction is part of the methodology. SWE-TQ-PYTHON derives from SWE-bench human annotations, while SWE-TQ-MULTILINGUAL derives from Multi-SWE-bench and covers C, C++, Go, Java, JavaScript, Rust, and TypeScript in addition to Python. The authors retain unanimous binary labels, split historical and test data, and manually remove annotation patterns inconsistent with the stated criteria.

  • Retrieval representation: task type, task explanation, and test explanation.
  • Retrieval configuration: Top-10 candidates followed by reranking to Top-3.
  • Reflection fields: Understanding, Successes, and Mistakes.
  • Update operations: Insert, Modify, and Delete.

table: operations

Caption: Operations to update the experience bank.

Content:
OperationParametersExplanation
InsertitemAdd a new experience item and allocate an ID when the current case reveals a novel pattern.
ModifyID, experienceRefine the value of an existing experience item when prior experience needs clarification or correction.
DeleteIDRemove an existing experience item when it is contradicted or deemed incorrect.

Why It Matters: Defines the mechanisms that make the experience bank self-evolving rather than a static retrieval store.

table: benchmark statistics

Caption: Statistics of SWE-TQ, where Clarity and Coverage denote the two assessment tasks, Accum. denotes the historical data for experience accumulation, and Desc. denotes the task description. Instance characteristics are averaged over each group.

Content:
TaskLabelSWE-TQ-PYTHON Accum.SWE-TQ-PYTHON TestDesc. #WordsGolden Patch #FilesGolden Patch #LinesTest Patch #FilesTest Patch #LinesSWE-TQ-MULTILINGUAL Accum.SWE-TQ-MULTILINGUAL TestDesc. #WordsGolden Patch #FilesGolden Patch #LinesTest Patch #FilesTest Patch #Lines
ClarityUnderspecified4318155.72.974.41.867.06126115.53.798.02.084.2
ClarityWell-specified733282201.71.526.11.531.61,273547184.44.6139.52.790.6
CoverageInadequate26556196.22.278.21.852.039662174.94.4108.92.368.9
CoverageAdequate403109187.11.214.21.323.2995286176.84.7134.02.482.4

Why It Matters: Shows the benchmark scale, class imbalance, and differing patch characteristics across Python and multilingual subsets.

page 1

Formula:
\[{zhonghao.j,zhengxuyang,yanfu,liu_zx,lingfengbao,dengsg}@zju.edu.cn\]

page 4

Formula:
\[def length_is(value, arg):\]

page 4

Formula:
\[+ "The length_is template filter is deprecated in favor of the length\]

page 4

Formula:
\[+ "filter and the == operator withon an {% if %} tag.",\]

๐Ÿ“Š Experiments

The main evaluation uses SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL with Qwen3.8-27B, DeepSeek-V4-Flash, and GPT-5.6 Luna. Baselines are Vanilla, SimpleRAG, SPICE, Codex, and Claude Code. F1 is the primary metric because it balances precision and recall for detecting unsolvable or unverifiable instances; FPR measures the proportion of valid instances mistakenly filtered. Token usage and monetary cost are also reported.

EXLABEL achieved the best F1 in all 12 task/subset/backbone combinations. Its average relative improvement over the best baseline was 44.2% and 49.9% for task clarity on Python and Multilingual, and 24.0% and 18.4% for test coverage. The paper reports average FPRs of 3.3% for task clarity and 15.1% for test coverage. EXLABEL used 6.0kโ€“21.0k tokens per instance, compared with 25.6kโ€“265.5k for Codex and Claude Code in the reported settings.

The ablations show that the experience bank is the most important component: removing it reduced task-clarity F1 by 25.5%โ€“35.7% and test-coverage F1 by 49.3%โ€“84.0% in the reported Python and Multilingual settings. Removing reranking or either reflection field also reduced F1, with the combined removal of Successes and Mistakes producing larger degradation than removing either field alone.

For downstream effectiveness, the authors sampled 5k SWE-rebench instances, generated trajectories with DeepSeek-V4-Flash, filtered instances with GPT-5.6 Luna-backed assessors, fine-tuned Qwen3.5-9B-Base on retained resolved trajectories, and evaluated on SWE-bench Verified. EXLABEL retained 1,087 trajectories and achieved 66.2% resolution, compared with 54.4% for Full Data and 57.8% for the best baseline shown in the table, at a reported cost of $0.46 per retained trajectory.

  • Datasets and benchmarks: SWE-TQ-PYTHON, SWE-TQ-MULTILINGUAL, SWE-rebench, and SWE-bench Verified.
  • Metrics: F1โ†‘, FPRโ†“, token usage, monetary cost, and downstream Resolved%โ†‘.
  • Best reported downstream result: 66.2% resolution on SWE-bench Verified.
  • Ablation interpretation: retrieval quality and structured positive/error experience are complementary.

table: aggregate_results

Caption: Reported relative improvements in average F1 over the best-performing baseline.

Content:
AssessmentSWE-TQ-PYTHONSWE-TQ-MULTILINGUAL
Task clarity44.2%49.9%
Test coverage24.0%18.4%

Why It Matters: Condenses the paper's main cross-backbone effectiveness result across both assessment tasks and benchmark subsets.

table: ablation

Caption: Ablation study results with GPT-5.6 Luna, where Python and Multilingual denote SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, respectively, and F1 and FPR are reported in percentage.

Content:
MethodTaskPython F1โ†‘Python FPRโ†“Python #TokenPython $CostMultilingual F1โ†‘Multilingual FPRโ†“Multilingual #TokenMultilingual $Cost
EXLABELTask Clarity61.12.56.0k0.002126.95.97.9k0.0021
w/o Experience BankTask Clarity45.55.71.1k0.000417.320.31.0k0.0003
w/o RerankingTask Clarity48.84.62.5k0.001017.714.12.4k0.0010
w/o Field (Successes)Task Clarity53.74.34.3k0.001322.211.34.5k0.0017
w/o Field (Mistakes)Task Clarity46.55.35.3k0.001920.211.55.1k0.0019
w/o Field (Successes, Mistakes)Task Clarity44.97.14.6k0.001718.912.84.4k0.0017
EXLABELTest Coverage79.421.113.6k0.007240.030.116.6k0.0093
w/o Experience BankTest Coverage12.72.83.5k0.001620.33.24.4k0.0021
w/o RerankingTest Coverage74.126.68.9k0.005438.337.411.0k0.0069
w/o Field (Successes)Test Coverage76.022.08.7k0.002338.331.514.7k0.0082
w/o Field (Mistakes)Test Coverage76.922.09.2k0.002438.033.614.4k0.0074
w/o Field (Successes, Mistakes)Test Coverage72.022.08.5k0.002337.133.614.3k0.0080

Why It Matters: Supports the claim that the experience bank, reranking, and structured reflection fields are central to performance.

table: application

Caption: Downstream effectiveness on the 5k SWE-rebench instances.

Content:
Method#Filtered#Trajs$Annotation$Sampling$Cost/#TrajsResolved%โ†‘
Base Model----------2.0
Full Data02,3090.001,680.940.7354.4
Vanilla2,1401,4249.87876.930.6251.0
SimpleRAG2,2481,39024.65860.550.6457.8
SPICE4,12458238.42225.610.4557.6
Codex2,4711,36185.04744.580.6157.4
Claude Code2,4651,33057.46738.050.6055.6
EXLABEL3,2761,08735.21460.540.4666.2

Why It Matters: Shows that EXLABEL reached the highest downstream resolution rate while retaining fewer resolved trajectories than the other non-SPICE filtering methods.

fig: motivation

fig: motivation

Caption: A motivating example of django-15869 in SWE-bench.

Why It Matters: Shows how a test can over-specify an exact warning message that the task description does not require, motivating experience-guided test-coverage assessment.

fig: overview

fig: overview

Caption: Overview of .

Why It Matters: Summarizes the accumulation and reuse phases, including rollout, reflection, retrieval, prediction, and experience-bank updates.

fig: task_features

fig: task_features

Caption: An example of the summarized descriptions along three dimensions for django-14453 in SWE-bench.

Why It Matters: Illustrates the structured representation used to bridge code patches and natural-language retrieval.

fig: experience

fig: experience

Caption: An example of generated experience about xarray-5362 in SWE-bench for test coverage assessment.

Why It Matters: Demonstrates how reflection converts one annotation outcome into reusable Understanding, Successes, and Mistakes.

fig: effective_case

fig: effective_case

Caption: A test coverage assessment case of django-15869 to reveal the reason for 's better performance.

Why It Matters: Provides a concrete case where retrieved experience helps identify an over-specified test that baseline systems accept.

fig: inconsistent_cases

fig: inconsistent_cases

Caption: Examples of typical annotation error patterns in task clarity (left) and test coverage assessments (right).

Why It Matters: Connects recurring annotation failures to the need for accumulated, reusable error patterns.

๐Ÿ”ฎ Conclusion

The paper argues that SWE dataset quality assessment benefits from experience that evolves across instances. EXLABEL combines structured instance understanding, hybrid retrieval, reranking, self-reflection, and explicit experience-bank maintenance to identify task descriptions and test suites that are likely to undermine solvability or verifiability.

Across SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, the method consistently outperformed the evaluated baselines in F1. The downstream experiment further indicates that filtering can improve coding-agent training: the EXLABEL-filtered model achieved 66.2% resolution on SWE-bench Verified using 1,087 retained trajectories.

The evidence also establishes a practical trade-off. Filtering removes some valid instances, but the downstream result suggests that, under the reported setup, the retained trajectories were more useful for training than the larger unfiltered collection.

table: application

Caption: Downstream effectiveness on the 5k SWE-rebench instances.

Content:
Method#Filtered#Trajs$Annotation$Sampling$Cost/#TrajsResolved%โ†‘
Base Model----------2.0
Full Data02,3090.001,680.940.7354.4
Vanilla2,1401,4249.87876.930.6251.0
SimpleRAG2,2481,39024.65860.550.6457.8
SPICE4,12458238.42225.610.4557.6
Codex2,4711,36185.04744.580.6157.4
Claude Code2,4651,33057.46738.050.6055.6
EXLABEL3,2761,08735.21460.540.4666.2

Why It Matters: Shows that EXLABEL reached the highest downstream resolution rate while retaining fewer resolved trajectories than the other non-SPICE filtering methods.

๐Ÿ› ๏ธ Future Research Improvements

A natural next step is to evaluate robustness under less curated label conditions. SWE-TQ uses unanimous annotator agreement and removes cases that two authors judge inconsistent with the annotation criteria; testing disagreement-aware learning or soft labels could reveal whether EXLABEL remains effective on the ambiguity that production dataset pipelines actually encounter.

The reported multilingual results aggregate seven programming languages into one subset. Per-language evaluation, language-specific experience banks, and cross-language transfer experiments would clarify whether the experience representation captures general software-engineering principles or mainly benefits from distributional similarity.

Further work should measure threshold calibration and the quality-versus-retention trade-off explicitly. The reported FPR range, especially for test coverage, indicates that deployment may require operating points tailored to whether the priority is preserving valid data or aggressively removing unreliable instances.

The downstream study should be extended across more training models, trajectory generators, issue sources, and held-out benchmarks to determine whether the 66.2% resolution result reflects a broadly reusable filtering effect.

๐Ÿญ Potential Industry Use Scenarios

A dataset-maintenance team could run EXLABEL before releasing or refreshing coding-agent training corpora, flagging issue descriptions that lack sufficient information and tests that overfit implementation details. The output notes could support targeted human review instead of requiring every instance to receive the same level of manual inspection.

Benchmark providers could use separate task-clarity and test-coverage assessments to annotate evaluation suites, report quality distributions, and remove or quarantine instances likely to produce misleading model comparisons.

Organizations collecting synthetic or automatically mined software issues could apply the method as a quality gate before expensive trajectory generation. The reported downstream setup specifically supports filtering before sampling, because it reduces sampling expenditure on instances later rejected by quality assessment.

Human-in-the-loop review systems could use the experience bank as an auditable memory of recurring success patterns and mistakes, while routing high-uncertainty or high-impact cases to engineers.

๐Ÿ’ฌ Critical Analysis

The strongest aspect of the paper is mechanism-level evidence. The experience bank is not only proposed conceptually; removing it causes large F1 drops, and removing reranking or reflection fields also degrades performance. The case study provides a plausible explanation for the gains: accumulated guidance helps the model recognize when a test checks details that the task does not require.

The benchmark design is thoughtful in separating temporal test coverage evaluation from random task-clarity evaluation and in cleaning recurring annotation inconsistencies. However, these choices also narrow the evaluation distribution. Complete-agreement filtering removes disagreement cases, and the severe class imbalance makes F1 and FPR behavior dependent on the selected test composition.

The results do not show that repository exploration is unnecessary in every setting; they show that the evaluated general-purpose coding agents did not match EXLABEL on these quality-assessment tasks. The method also depends on LLM calls for summarization, prediction, reflection, reranking, and bank maintenance, so latency, provider changes, prompt sensitivity, and experience-bank drift deserve separate operational study.

The downstream result is compelling but bounded. EXLABEL retains 1,087 resolved trajectories versus 2,309 for Full Data and achieves higher SWE-bench Verified resolution, yet the experiment does not establish how much of the gain comes from filtering criteria, trajectory selection, model-specific compatibility, or the particular sampled SWE-rebench distribution.

  • Strength: strong ablation support for the proposed experience-guided mechanism.
  • Strength: evaluates both annotation accuracy and downstream training utility.
  • Caveat: benchmark labels are filtered for agreement and manually cleaned.
  • Caveat: test-coverage false-positive rates remain substantial in some settings.
  • Open question: whether the experience bank remains stable under continual data and repository evolution.

Original 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%.