Manuscript Offprint
arXiv:2610.39417Well-Specified and Well-Tested? Assessing SWE-bench-Style Datasets with a Self-Evolving Agent
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.
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 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%.
2.1 Problem Definition
In this work, we mainly focus on assessing the task quality in SWE datasets, especially in solvability and verifiability. Each SWE instance typically consists of a task description, a corresponding reference solution (golden patch), and a set of test suites used to validate candidate solutions (test patch). However, not all SWE instances are equally well-defined or verifiable. Ambiguous or incomplete task descriptions can make it difficult to determine the intended solution, while inadequate

Figure 1: A motivating example of django-15869 in SWE-bench.
test suites may fail to reliably distinguish correct solutions from incorrect ones [8, 56, 59]. Following prior work [8, 22, 37], we assess the SWE instance in two dimensions: Task Clarity and Test Coverage. Together, these dimensions aim to determine whether a given SWE instance is sufficiently well-specified and properly verifiable to serve as a meaningful instance for the SWE dataset.
-
Task Clarity Assessment evaluates whether the task description provides sufficient and unambiguous information to solve the task, with the golden and test patches serving as references. However, if necessary information can only be inferred from the patches but is absent from the task description, the task is still considered underspecified. External discussions and linked resources are excluded from the assessment [8, 22, 37]. Given a SWE instance, task clarity assessment assigns a Boolean label, where True indicates that the task is underspecified and False indicates that it is well-specified, together with a note explaining the reasons and evidence for the judgment.
-
Test Coverage Assessment examines whether the provided test suite is appropriate and sufficient to validate correct solutions to the task. Given an instance in a SWE dataset, the test coverage assessment aims to assign a Boolean label mainly according to the test patch, where True indicates that the test suite is inadequate, and False indicates that the test suite is adequate, with a predicted note to explain the reasons.
2.2 Motivating Example
Figure 1 presents an instance from the Django project in SWE-bench [23]. The task asks to deprecate the length_is template filter in favor of length. To implement this requirement, the golden patch raises a RemovedInDjango51Warning when length_is is invoked and provides a specific warning message recommending alternative usage. The test patch verifies both the warning type and its exact message through assertRaisesMessage. Human annotators judge this test suite as inadequate because the task description requires the filter to be deprecated but does not specify the exact warning message. Consequently, a valid solution that raises the correct deprecation warning with different wording may still fail the test. Without relevant prior experience, the LLM instead predicts the test suite as adequate. As illustrated in Figure 1, experience accumulated from previous annotations can provide a general guideline that tests should avoid imposing implementation details not explicitly required by the task. With this experience, the LLM recognizes the exact-message check as over-specification and correctly predicts the test suite as inadequate. This example motivates us to accumulate experience from historical annotations and reuse relevant experience when assessing new SWE instances.
3 Approach
In this section, we introduce EXLABEL, a self-evolving experience-guided assistant to assess task clarity and test coverage in SWE datasets. As illustrated in Figure 2, EXLABEL maintains an experience bank as the central vehicle of self-evolution to accumulate and reuse experience. Specifically, it consists of two primary phases: experience accumulation and experience reuse. In the experience accumulation phase (Section 3.1), we begin with an empty experience bank and apply an LLM-based (e.g., GPT-5.6 Luna [39]) retrieval-augmented generation (RAG) method [27, 41] to each labeled

Figure 2: Overview of EXLABEL.
instance to predict its annotation. Subsequently, by comparing the predicted annotation with the golden annotation, we perform self-reflection [19, 46] that guides the LLM to reflect on its reasoning trajectories to generate experience. Self-reflection can help the LLM transform concrete RAG-based reasoning trajectories into generalized experience, thereby enabling cross-instance reuse. To achieve self-evolution, we further manipulate and update the experience bank using three predefined operation interfaces. A generalized experience bank is finally formed through continuous self-evolution that extracts high-consensus patterns and typical error patterns from a large amount of historical annotation data. When a new instance arrives, EXLABEL leverages the cross-instance information formed through self-evolution to predict its annotation by reusing the accumulated experiences (Section 3.2).
3.1 Experience Accumulation
The experience accumulation phase aims to extract high-consensus patterns, successful annotation strategies, and typical error patterns from annotated instances as experience items that iteratively update the experience bank. It takes a SWE instance and its golden annotation (i.e., golden label and golden notes) as input and returns an experience item to update the experience bank. We design three stages for experience accumulation: rollout, reflection, and experience update. Specifically, in the rollout stage (Section 3.1.1), we use an LLM-based RAG pipeline to retrieve experience from the current experience bank and, based on it, predict the annotation of the instance. In the reflection stage (Section 3.1.2), we compare the current predicted annotation with the golden annotation and apply a self-reflection mechanism to generate experience. In the experience update stage (Section 3.1.3), we provide the LLM with an interface for operating on the experience bank, enabling it to insert, modify, or delete the generated experience.
3.1.1 Rollout
This stage aims to generate predicted annotations (i.e., predicted labels and notes) for SWE instances based on the current experience bank, using a RAG-based pipeline. The process can be divided into the following three steps.
Step I: Summarization of the Description in Three Dimensions. A prerequisite for forming experience is a structured understanding of SWE instances. Given that human annotators may interpret task descriptions from multiple perspectives [30], we employ an LLM to summarize each SWE instance along multiple dimensions to provide a structured understanding of the instance. The dimensions are defined as follows:
"task_id":"django_django-14453", "task_type":"ConfigurationError", "task_explanation":"Occurs when Django cannot find valid URL patterns due to misconfigured or missing urlpatterns variable, often caused by typos or variable name errors rather than circular imports.", "test_explanation":"The test verifies that Django provides improved error messaging when no URL patterns are found, specifically mentioning the 'urlpatterns' variable to help users identify typos. It checks that the exception message now explicitly references checking for the 'urlpatterns' variable name, addressing the original problem where users couldn't easily identify misspelled variable names."
Figure 3: An example of the summarized descriptions along three dimensions for django-14453 in SWE-bench.
-
Task Type: A generalized categorization provided by the LLM using SWE instances (e.g., ConfigurationError, Variable-ReferenceError), which is used to distinguish different task intents.
-
Task Explanation: A generalized, concise description of the SWE instance while preserving its core semantics. It describes the underlying causes, trigger conditions, and typical scenarios.
-
Test Explanation: A summary of the test patch's logic, validation objectives, and its correspondence with the SWE instance, which is used to distinguish different test behaviors.
These three dimensions correspond to the three components of a SWE instance, and we consider them capable of reflecting the information contained in the SWE instance. We first generate descriptions that differentiate among task types, as tasks of the same type may share similar solutions. Moreover, we summarize the golden solution and test suites, originally in the code format, of the SWE instances into natural language (NL) descriptions to bridge the semantic gap between code and text. The resulting descriptions are concatenated and encoded using an embedding model to form features for indexing experience items (as detailed in Step II). To help better understand the summarized descriptions, we provide an example shown in Figure 3. By constructing and leveraging these descriptions, we achieve a transformation from specific, bimodal SWE instance data to generalized, NL-based data, which not only bridges the semantic gap between text and code but also provides the foundation for generalizing similar experiences and retrieving relevant experience items.
Step II: Experience Retrieval. This step aims to retrieve, rerank, and select the most relevant experience items from the experience bank. It allows the LLM to autonomously make predictions based on the existing experience bank, while providing signals for potential refinement of the experience bank. Following prior work [32, 33], we adopt a hybrid strategy that combines sparse retrieval and dense retrieval. For each SWE instance, we first concatenate the three summarized descriptions generated in Step I to form a unified textual representation. We then compute similarity scores between the query instance and each experience item (as detailed in Section 3.1.2) in the current experience bank from both sparse and dense perspectives. The representation of the three-dimensional descriptions constitutes the key (index) of an experience item. Specifically, we adopt the widely used BM25 [47] algorithm for sparse retrieval to capture lexical similarity. For dense retrieval, we use an LLM-based embedding model (e.g., Qwen3-Embedding-8B [62]) to obtain semantically rich representations. The similarity scores from both retrieval methods are normalized and averaged to produce a final similarity score. Based on this score, experience items are ranked, and the Top- items are selected. This hybrid design leverages the complementary strengths of sparse and dense retrieval: BM25 captures lexical similarity [12], while dense embeddings encode semantic and structural similarity [24], leading to more accurate and robust experience retrieval. Furthermore, we introduce an LLM-based reranking step to refine the usability of retrieved experience items. Specifically, the SWE instance and the Top- retrieved items are provided as context to prompt the LLM, which produces a ranking based on their relevance and usefulness for annotating the current instance. We then select the Top- (where ) items from the reranked list as the final retrieval results, which serve as reliable prior knowledge for subsequent prediction generation.
Step III: Prediction Generation. This step aims to predict the annotation of SWE instances by leveraging the retrieved experience items. It takes a SWE instance and the Top- experience items retrieved in Step II as input and requires the LLM to return the predicted label and predicted notes as predicted annotations.
"Understanding": "The core issue is about ensuring consistent error handling between weighted and unweighted operations, where the test should verify that non-existent dimensions trigger appropriate errors without being overly specific about the exact error message format.", "Successes": "Tests should validate behavior requirements rather than implementation details; error message tests should use flexible matching patterns when exact wording isn't essential; consistency between related operations is more important than identical error messages.", "Mistakes": "The judgment incorrectly assumed the test's exact error message matching was reasonable, failing to recognize that the specific string format could reject valid implementations that use different but correct error messaging."
Figure 4: An example of generated experience about xarray-5362 in SWE-bench for test coverage assessment.
3.1.2 Reflection
This stage aims to generate experience items by comparing the predicted annotation with the golden annotation through a self-reflection mechanism. Self-reflection is used to reflect on the reasoning process in the rollout stage, which takes the SWE instance, predicted annotation with Top-N retrieved experience items used in the rollout stage, and the golden annotation as input, and returns new experience items for updating the experience bank. Specifically, we use the LLM to analyze the similarities and differences between the predicted annotation and the golden annotation according to the retrieved experience items in order to generate new experiences, i.e., the transferable and generalizable reasoning patterns. To capture different ways in which annotation outcomes inform future decisions, we design the value of each experience item along three dimensions: Understanding, Successes, and Mistakes. These correspond to refined high-consensus understanding, effective annotation strategies, and recurring error patterns, respectively. The dimensions are defined as follows:
- Understanding: It is a high-level abstract understanding of the problem. It provides a general pattern summarized from the problem and supports cross-instance comparison.
- Successes: It records transferable principles, strategies, and insights distilled from the current instance. It provides actionable guidance for how to make successful predictions in the future in similar scenarios.
- Mistakes: It is used to learn from errors when predictions fail. It documents typical patterns such as reasoning flaws, overlooked evidence, and cognitive biases that lead to incorrect outcomes, and is populated only for failed predictions.
Figure 4 illustrates an example of experience generated by the LLM for a specific SWE instance (xarray-5362) from SWE-bench [23]. For deduplication, each experience item is additionally assigned a unique identifier (id).
3.1.3 Experience Update
This stage aims to update the experience bank based on newly generated experiences, thereby enabling its self-evolution. It takes as input the Top-N retrieved experience items from the rollout stage and the newly generated experience item from the reflection stage, and updates the experience bank through three predefined operations: insertion, modification, and deletion. The self-evolution process is implemented via an LLM-driven maintenance procedure, which generates an ordered sequence of operations over the experience bank based on the input and executes them accordingly. The interfaces corresponding to these operations are described in Table 1.
Table 1: Operations to update the experience bank.
| Operation | Parameters | Explanation |
|---|---|---|
| Insert | item | Add a new experience item and allocate an ID when the current case reveals a novel pattern. |
| Modify | ID, experience | Refine the value of an existing experience item when prior experience needs clarification or correction. |
| Delete | ID | Remove an existing experience item when it is contradicted or deemed incorrect. |
Additionally, to ensure that the newly identified experience is explicitly anchored to the current instance and can be independently retrieved in the future, we insert a new experience item generated in the reflection stage, when the operation list contains a Modify but no Insert. Experience items that reference the same experience share a common id, so that we can deduplicate by this id and keep only one experience item during retrieval. After all operations are executed, the refreshed experience bank is used for the next round of rollout and reflection, forming a closed loop that continuously improves subsequent predictions. The detailed prompt template for the experience accumulation phase can be found in our replication package.
3.2 Experience Reuse
This phase aims to apply the constructed experience bank to annotate new unlabeled instances, which takes an unlabeled SWE instance as input and returns the predicted label and predicted notes. It shares the same RAG workflow with the rollout stage in the experience accumulation phase (Section 3.1.1). Specifically, it first generates three summarized descriptions for a SWE instance and uses their textual representation as a query to retrieve and rerank the Top-N relevant experience items from the accumulated experience bank. It finally leverages the experience of the selected experience items as contextual information to predict the label and notes of the current instance.
4 SWE-TQ: A Benchmark for Task Clarity and Test Coverage Assessment
4.1 Benchmark Construction
There is currently no publicly available dataset with human annotations for evaluating automated task quality assessment techniques. SPICE [37], the closest work to ours, only releases SPICE-Bench, which is annotated using its proposed automated technique, while its human-annotated evaluation dataset remains closed-source. Therefore, we construct SWE-TQ, a new benchmark for evaluating automated task clarity and test coverage assessment techniques, following a construction process similar to that of SPICE and aligned with common practices in empirical SE [4]. SWE-TQ consists of two subsets: SWE-TQ-PYTHON , built from the human annotations of SWE-bench [8], and SWE-TQ-MULTILINGUAL , built from the human annotations of Multi-SWE-bench [60], which covers seven programming languages (i.e., C, C++, Go, Java, JavaScript, Rust, and TypeScript). Both subsets are constructed through three steps: annotation collection, data splitting, and manual cleaning.
Annotation Collection. We collect the human annotations of SWE-bench [8] and Multi-SWE-bench [60] for SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, respectively. In SWE-bench, each of the 1,699 instances annotated by OpenAI is independently labeled by three annotators, while in Multi-SWE-bench, each of the 2,456 candidate instances is independently labeled by two annotators. Following their respective annotation guidelines [8, 60], we convert the original annotations into binary labels. For both datasets, we apply the same filtering strategy and retain only the instances on which all annotators reach complete agreement on the binary labels.
Data Splitting. For each subset, we split the instances into historical data for experience accumulation and a test set. For test coverage assessment, we adopt a temporal split based on commit timestamps, using the most recent 20% of instances as the test set. Since test coverage assessment primarily evaluates the test patch, which may be affected by the evolving state of the codebase, we adopt this more conservative strategy to temporally separate experience accumulation from test instances. In contrast, task clarity assessment primarily concerns whether the task description provides sufficient information to solve the task (Section 2.1) and is less subject to such temporal dependencies. Given the class imbalance in task clarity assessment, a 20% temporal split would leave very few underspecified instances in the test set (10 for SWE-TQ-PYTHON and 24 for SWE-TQ-MULTILINGUAL). Therefore, we randomly sample 30% of the instances as the test set to include a sufficient number of underspecified instances for evaluation.
Manual Cleaning. To further ensure dataset reliability, two authors manually review all instances in SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL to identify two recurring annotation patterns that are inconsistent with OpenAI's annotation criteria [8]. For task clarity assessment, we remove instances labeled as well-specified when key information (e.g., error messages) is provided only through external links excluded by the annotation criteria. Allowing LLMs to access such external resources may introduce data leakage or benchmark contamination [7, 11], unpredictable environmental noise [34, 43], and reproducibility issues [14]. For test coverage assessment, we
https://cdn.openai.com/introducing-swe-bench-verified/swe-bench-annotation-results.zip
Table 2: 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.
| Task | Label | SWE-TQ-PYTHON | SWE-TQ-MULTILINGUAL | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #Inst. | Desc. | Golden Patch | Test Patch | #Inst. | Desc. | Golden Patch | Test Patch | ||||||||
| Accum. | Test | #Words | #Files | #Lines | #Files | #Lines | Accum. | Test | #Words | #Files | #Lines | #Files | #Lines | ||
| Clarity | Underspecified | 43 | 18 | 155.7 | 2.9 | 74.4 | 1.8 | 67.0 | 61 | 26 | 115.5 | 3.7 | 98.0 | 2.0 | 84.2 |
| Well-specified | 733 | 282 | 201.7 | 1.5 | 26.1 | 1.5 | 31.6 | 1,273 | 547 | 184.4 | 4.6 | 139.5 | 2.7 | 90.6 | |
| Coverage | Inadequate | 265 | 56 | 196.2 | 2.2 | 78.2 | 1.8 | 52.0 | 396 | 62 | 174.9 | 4.4 | 108.9 | 2.3 | 68.9 |
| Adequate | 403 | 109 | 187.1 | 1.2 | 14.2 | 1.3 | 23.2 | 995 | 286 | 176.8 | 4.7 | 134.0 | 2.4 | 82.4 | |
remove instances labeled as adequate when the test patch assumes an exact error message that is not specified in the task description. We remove these instances rather than relabeling them because each annotation contains both a label and notes justifying the label: changing the label alone would make it inconsistent with the original notes, while rewriting the notes would introduce the authors' own judgments into the human annotations, potentially biasing experience accumulation and evaluation. More details are provided in Section 7.1. Instances for which the two authors fail to reach consensus are also removed. The two authors achieve a Cohen's kappa [9] of 0.928 on their cleaning decisions, indicating strong agreement [26]. Overall, manual cleaning removes 34 and 148 instances from SWE-TQ-PYTHON and 136 and 384 instances from SWE-TQ-MULTILINGUAL for task clarity and test coverage assessment, respectively.
4.2 Benchmark Characteristics
Table 2 summarizes the statistics of SWE-TQ, which spans eight programming languages. After filtering, SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL comprise 1,076 and 1,907 instances for task clarity assessment and 833 and 1,739 instances for test coverage assessment, respectively. Both subsets are imbalanced, especially for task clarity assessment. In SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, only 6.0% and 4.5% of the test instances are underspecified, and 33.9% and 17.8% are inadequate, respectively. Such imbalance makes it challenging to precisely identify the rare positive instances without discarding many valid ones.
We further examine whether the reported surface characteristics can distinguish positive and negative instances. Using any single characteristic (e.g., #Words) yields an AUC of 0.50–0.77, suggesting that effective assessment cannot rely solely on individual surface characteristics and requires considering the semantic information in the task description and patches. We assess the adequacy of our test-set sizes using the minimum sample size required under random sampling with a 95% confidence level and a 10% margin of error. The resulting minimum sample sizes for task clarity and test coverage assessment are 88/91 and 86/91 for SWE-TQ-PYTHON/MULTILINGUAL, respectively. Our test sets contain 300/573 instances for task clarity assessment and 165/348 instances for test coverage assessment in SWE-TQ-PYTHON/MULTILINGUAL, respectively, all exceeding the corresponding minimum sample sizes.
5 Experiment Setup
5.1 Research Questions
-
RQ1 (Effectiveness): How effective is EXLABEL in assessing task clarity and test coverage compared with existing automated techniques?
-
RQ2 (Ablation): How do the key components of EXLABEL contribute to its overall effectiveness?
-
RQ3 (Downstream Effectiveness): Can the dataset filtering performed by EXLABEL benefit the training of coding agents?
-
RQ4 (Case Study): How does the experience of EXLABEL help it perform better?
5.2 Baselines
We mainly compare EXLABEL with the open-source state-of-the-art baseline method, SPICE [37]. Additionally, we include direct prompting (i.e., Vanilla) and a simple RAG approach as baselines to highlight the effectiveness of our self-evolving mechanism. We further include two state-of-the-art general-purpose coding agents, Codex [38] and Claude Code [2], to examine whether autonomous exploration of the repository is sufficient for assessing task quality. The implementation details of baselines are described in Section 5.4.
-
Vanilla: The LLM directly predicts the annotation using only the SWE instance without any additional context, which serves as a lower-bound reference for zero-shot performance.
-
SimpleRAG: The LLM predicts the annotation with retrieval-augmented generation, where the historical annotated instances are stored as external memory and the three most similar ones are retrieved as additional context for each SWE instance.
-
SPICE: For task clarity assessment, SPICE utilizes developer-provided reasoning patterns as guidance for prediction. For test coverage assessment, it leverages Aider [1], an open-source command-line AI programming agent, to incorporate repository-aware code as additional context.
-
Codex & Claude Code: General-purpose coding agents developed by OpenAI and Anthropic, respectively, which autonomously explore the repository and read relevant code to predict the annotation of each SWE instance.
5.3 Evaluation Metrics
Since the goal of both tasks is to identify unsolvable or unverifiable instances, following prior detection work [6, 64], we regard such instances as positive and adopt the following metrics.
-
F1-score: The harmonic mean of precision and recall, where precision measures the proportion of predicted positive instances that are truly positive, and recall measures the proportion of positive instances that are correctly identified. We adopt the F1-score as the primary metric because it balances precision and recall when identifying positive instances.
-
False Positive Rate (FPR): The proportion of negative instances incorrectly predicted as positive. Since instances predicted as positive are filtered out, FPR measures the proportion of valid (i.e., solvable or verifiable) instances that are mistakenly discarded and thus reflects the data loss caused by filtering.
In addition, we report the average number of tokens (#Token) and monetary cost ($Cost) consumed per instance to measure the efficiency of each technique. The corresponding precision and recall values for all techniques are further reported in online Appendix A.
5.4 Implementation Details
We evaluate all techniques on the test data of both SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL described in Section 4, and EXLABEL accumulates experience on the merged historical data of both subsets for each task, which also serves as the retrieval pool of SimpleRAG. We further analyze how the size of the historical data affects the effectiveness in online Appendix B. We use Qwen3.8-27B [45], DeepSeek-V4-Flash [10], and GPT-5.6 Luna [39] as the backbone models for all methods, as they represent models from different sources (i.e., open-source or closed-source) and families (i.e., dense or MoE). We use Qwen3-Embedding-8B [62] to generate dense representations for retrieval, as it has demonstrated state-of-the-art performance across many information retrieval tasks [36]. This model is used in both EXLABEL and SimpleRAG for computing embeddings to ensure a fair comparison. All backbone models are accessed through their official APIs.
For EXLABEL, during experience retrieval (Section 3.1.1), we first retrieve the Top-10 candidate experience items, then rerank them to select the Top-3 as the final result, following prior experience retrieval work [25, 29]. Since the experience bank is initially empty during the accumulation phase (Section 3.1), EXLABEL makes predictions without experience when no items are retrieved. The experience generated from this prediction is then inserted into the experience bank as a cold start. For SimpleRAG, we concatenate the task description, golden patch, and test patch of each instance as its textual representation, retrieve the three most similar historical instances by cosine similarity using the same embedding model as EXLABEL, and use them together with their annotations as few-shot examples for prediction. To facilitate reproducibility, we uniformly set temperature = 0 for annotation prediction across all approaches.
Table 3: Overall performance on the task clarity and test coverage assessments, where Python and Multilingual denote SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, respectively, and Avg. Impr. (F1) denotes the relative improvement of the average F1 of EXLABEL across the three backbone models over that of each baseline.
| Method | Qwen3.8-27B | DeepSeek-V4-Flash | GPT-5.6 Luna | Avg. Impr. (F1) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| F1↑ | FPR↓ | #Token | $Cost | F1↑ | FPR↓ | #Token | $Cost | F1↑ | FPR↓ | #Token | $Cost | |||
| Task Clarity | Vanilla | 50.0 | 0.0 | 1.1k | 0.0010 | 24.7 | 16.3 | 0.9k | 0.0002 | 45.5 | 5.7 | 1.1k | 0.0004 | ↑47.8% |
| SimpleRAG | 43.5 | 0.0 | 4.4k | 0.0027 | 19.6 | 36.2 | 4.1k | 0.0009 | 48.7 | 3.6 | 4.2k | 0.0009 | ↑58.9% | |
| SPICE | 52.8 | 7.4 | 2.4k | 0.0030 | 39.6 | 19.5 | 1.5k | 0.0005 | 30.8 | 28.7 | 1.5k | 0.0006 | ↑44.2% | |
| Codex | 20.0 | 0.0 | 168.8k | 0.0740 | 30.3 | 3.6 | 47.5k | 0.0016 | 52.6 | 3.6 | 135.1k | 0.0102 | ↑72.7% | |
| Claude Code | 20.0 | 0.0 | 103.4k | 0.0230 | 37.2 | 6.0 | 92.0k | 0.0208 | 47.6 | 5.0 | 80.4k | 0.0063 | ↑69.6% | |
| EXLABEL | 64.7 | 1.8 | 7.3k | 0.0068 | 51.9 | 0.7 | 9.7k | 0.0028 | 61.1 | 2.5 | 6.0k | 0.0021 | - | |
| Vanilla | 26.7 | 4.8 | 1.1k | 0.0011 | 15.0 | 26.9 | 0.8k | 0.0002 | 17.3 | 20.3 | 1.0k | 0.0003 | ↑52.2% | |
| SimpleRAG | 26.9 | 3.5 | 3.7k | 0.0025 | 12.2 | 51.7 | 3.2k | 0.0008 | 20.8 | 11.0 | 3.5k | 0.0010 | ↑49.9% | |
| Multilingual | SPICE | 13.9 | 22.1 | 2.1k | 0.0027 | 15.4 | 32.5 | 1.7k | 0.0006 | 13.2 | 44.4 | 1.4k | 0.0006 | ↑111.3% |
| Codex | 17.1 | 1.1 | 105.0k | 0.0184 | 16.6 | 19.6 | 25.6k | 0.0013 | 14.5 | 16.3 | 158.0k | 0.0120 | ↑86.3% | |
| Claude Code | 24.2 | 0.6 | 144.7k | 0.0681 | 16.2 | 11.9 | 34.7k | 0.0079 | 13.3 | 21.0 | 98.1k | 0.0077 | ↑67.2% | |
| EXLABEL | 37.5 | 2.4 | 6.8k | 0.0080 | 25.4 | 6.6 | 6.8k | 0.0023 | 26.9 | 5.9 | 7.9k | 0.0021 | - | |
| Test Coverage | Vanilla | 10.0 | 0.9 | 4.9k | 0.0067 | 13.3 | 0.0 | 2.8k | 0.0007 | 12.7 | 2.8 | 3.5k | 0.0016 | ↑535.8% |
| SimpleRAG | 66.7 | 1.8 | 13.1k | 0.0089 | 31.9 | 1.8 | 10.6k | 0.0024 | 20.9 | 3.7 | 11.5k | 0.0035 | ↑91.5% | |
| SPICE | 71.3 | 24.8 | 42.2k | 0.0333 | 37.5 | 8.3 | 44.2k | 0.0102 | 75.8 | 23.9 | 42.0k | 0.0085 | ↑24.0% | |
| Codex | 10.0 | 0.9 | 265.5k | 0.1220 | 16.9 | 8.3 | 48.0k | 0.0027 | 43.6 | 4.6 | 153.3k | 0.0118 | ↑224.7% | |
| Claude Code | 0.0 | 0.0 | 158.6k | 0.0408 | 9.2 | 5.5 | 35.3k | 0.0084 | 30.6 | 4.6 | 99.8k | 0.0089 | ↑475.1% | |
| EXLABEL | 76.5 | 6.4 | 15.7k | 0.0191 | 73.0 | 15.6 | 21.0k | 0.0065 | 79.4 | 21.1 | 13.6k | 0.0072 | - | |
| Vanilla | 24.4 | 3.5 | 5.4k | 0.0066 | 33.7 | 7.7 | 3.4k | 0.0008 | 20.3 | 3.2 | 4.4k | 0.0021 | ↑42.6% | |
| SimpleRAG | 26.2 | 15.4 | 9.8k | 0.0117 | 13.3 | 2.8 | 12.0k | 0.0027 | 36.0 | 7.0 | 11.9k | 0.0028 | ↑48.1% | |
| Multilingual | SPICE | 31.7 | 37.8 | 28.9k | 0.0299 | 27.0 | 21.0 | 22.2k | 0.0054 | 35.7 | 47.6 | 23.9k | 0.0055 | ↑18.4% |
| Codex | 14.1 | 1.4 | 225.9k | 0.0461 | 19.1 | 11.5 | 29.7k | 0.0023 | 38.9 | 8.7 | 220.3k | 0.0157 | ↑55.1% | |
| Claude Code | 16.7 | 1.4 | 260.1k | 0.1318 | 8.9 | 8.4 | 47.5k | 0.0160 | 35.2 | 9.4 | 128.1k | 0.0111 | ↑83.9% | |
| EXLABEL | 36.9 | 7.7 | 15.7k | 0.0185 | 34.9 | 9.8 | 13.5k | 0.0031 | 40.0 | 30.1 | 16.6k | 0.0093 | - | |
5.5 Downstream Effectiveness Analysis
We evaluate the downstream impact of dataset filtering by comparing coding models trained on data retained by different task quality assessment techniques for software issue resolution. Specifically, we first randomly sample 5k instances from SWE-rebench [3], a large-scale SWE dataset constructed through automated data collection, and sample the corresponding trajectories using DeepSeek-V4-Flash [10]. To ensure a fair comparison, we apply EXLABEL and all baselines with GPT-5.6 Luna as the backbone model to filter out each instance predicted as either underspecified or inadequate, together with its trajectories. For EXLABEL, we directly reuse the experience banks accumulated with GPT-5.6 Luna in RQ1. We then perform supervised fine-tuning (SFT) on Qwen3.5-9B-Base [44] using the resolved trajectories of the remaining instances and evaluate the resulting models on SWE-bench Verified [8]. The detailed training recipe is provided in online Appendix C. We also include the base model without fine-tuning (Base Model) and the model trained on all 5k instances without filtering (Full Data) as references. For each technique, we report the number of filtered instances (#Filtered), the number of remaining resolved trajectories (#Trajs), the annotation cost (Sampling), and their total cost per trajectory (Cost/#Trajs), and adopt the resolution rate on SWE-bench Verified (Resolved%) as the primary metric. Note that Sampling is calculated only for the instances retained by each technique, reflecting the expected sampling cost when filtering is performed before trajectory sampling.
6 Experimental Results
6.1 RQ1: Effectiveness
The experimental results of all techniques on task clarity and test coverage assessment using three LLM backbones (i.e., Qwen3.8-27B, DeepSeek-V4-Flash, and GPT-5.6 Luna) are reported in Table 3. Compared with the five baselines, EXLABEL achieves the best F1 across all 12 combinations of assessment tasks, subsets, and backbone models. Moreover, averaged across the three backbone models, EXLABEL improves F1 over the best-performing baseline by 44.2%/49.9% for task clarity assessment and 24.0%/18.4% for test coverage assessment on SWE-TQ-PYTHON/MULTILINGUAL, respectively. These consistent improvements across the three backbone models demonstrate the effectiveness of leveraging cross-instance information through the evolving experience bank for identifying unsolvable and unverifiable instances in SWE datasets.
Table 4: 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.
| Method | Python | Multilingual | |||||||
|---|---|---|---|---|---|---|---|---|---|
| F1↑ | FPR↓ | #Token | $Cost | F1↑ | FPR↓ | #Token | $Cost | ||
| Task Clarity | EXLABEL | 61.1 | 2.5 | 6.0k | 0.0021 | 26.9 | 5.9 | 7.9k | 0.0021 |
| w/o Experience Bank | 45.5 ↓25.5% | 5.7 | 1.1k | 0.0004 | 17.3 ↓35.7% | 20.3 | 1.0k | 0.0003 | |
| w/o Reranking | 48.8 ↓20.1% | 4.6 | 2.5k | 0.0010 | 17.7 ↓34.2% | 14.1 | 2.4k | 0.0010 | |
| w/o Field (Successes) | 53.7 ↓12.1% | 4.3 | 4.3k | 0.0013 | 22.2 ↓17.5% | 11.3 | 4.5k | 0.0017 | |
| w/o Field (Mistakes) | 46.5 ↓23.9% | 5.3 | 5.3k | 0.0019 | 20.2 ↓24.9% | 11.5 | 5.1k | 0.0019 | |
| w/o Field (Successes, Mistakes) | 44.9 ↓26.5% | 7.1 | 4.6k | 0.0017 | 18.9 ↓29.7% | 12.8 | 4.4k | 0.0017 | |
| Test Coverage | EXLABEL | 79.4 | 21.1 | 13.6k | 0.0072 | 40.0 | 30.1 | 16.6k | 0.0093 |
| w/o Experience Bank | 12.7 ↓84.0% | 2.8 | 3.5k | 0.0016 | 20.3 ↓49.3% | 3.2 | 4.4k | 0.0021 | |
| w/o Reranking | 74.1 ↓6.7% | 26.6 | 8.9k | 0.0054 | 38.3 ↓4.3% | 37.4 | 11.0k | 0.0069 | |
| w/o Field (Successes) | 76.0 ↓4.3% | 22.0 | 8.7k | 0.0023 | 38.3 ↓4.3% | 31.5 | 14.7k | 0.0082 | |
| w/o Field (Mistakes) | 76.9 ↓3.1% | 22.0 | 9.2k | 0.0024 | 38.0 ↓5.0% | 33.6 | 14.4k | 0.0074 | |
| w/o Field (Successes, Mistakes) | 72.0 ↓9.3% | 22.0 | 8.5k | 0.0023 | 37.1 ↓7.3% | 33.6 | 14.3k | 0.0080 | |
Although several baselines achieve lower FPRs than EXLABEL in some settings, they often do so while achieving substantially lower F1. For example, Claude Code with Qwen3.8-27B achieves an FPR of 0.0% on test coverage assessment in SWE-TQ-PYTHON, but its F1 is also 0.0%. SPICE, in contrast, exhibits relatively high FPRs in several settings, reaching 47.6%, indicating that it can mistakenly filter out a substantial proportion of valid instances. This may stem from its reliance on fixed rubrics, which are less adaptive to the nuanced differences across instances. In comparison, EXLABEL achieves a higher F1 than SPICE in all 12 combinations while maintaining a lower FPR in 11 of them. Moreover, although Codex and Claude Code can autonomously explore repositories, their F1 reaches at most 52.6%, suggesting that repository exploration alone does not ensure accurate task quality assessment. Together, these results show that the evolving experience bank enables EXLABEL to more effectively distinguish unsolvable or unverifiable instances from valid ones than fixed-rubric and general-purpose coding-agent baselines. In terms of cost, EXLABEL consumes 6.0k–21.0k tokens per instance, substantially fewer than the 25.6k–265.5k tokens consumed by Codex and Claude Code, suggesting that reusing accumulated experience can reduce the need for extensive repository exploration.
Despite its higher F1, EXLABEL still incurs FPRs of 0.7%–6.6% and 6.4%–30.1% for task clarity and test coverage assessment, respectively, meaning that some valid instances are inevitably removed together with the identified positive instances. However, such false positives affect the quantity of retained data rather than introducing unsolvable or unverifiable instances into it. This trade-off motivates our downstream evaluation in Section 6.3, where we directly examine whether filtering with EXLABEL benefits subsequent coding-agent training despite the loss of some valid instances.
RQ1 Summary: Compared with the baselines, EXLABEL achieves the best F1 in all settings and improves the average F1 over the best-performing baseline by 44.2%/49.9% on task clarity assessment and 24.0%/18.4% on test coverage assessment in SWE-TQ-PYTHON/MULTILINGUAL, respectively.
6.2 RQ2: Ablation
We conduct ablation studies on both task clarity and test coverage assessments by removing key components or experience fields from the EXLABEL design. Specifically, we evaluate the following variants: w/o Experience Bank, w/o Reranking, w/o Field (Successes, Mistakes), w/o Field (Successes), and w/o Field (Mistakes). All experiments are performed using GPT-5.6 Luna to assess the contribution of each component. As shown in Table 4, EXLABEL consistently outperforms all five variants in terms of F1, highlighting the effectiveness of its component design.
- w/o Experience Bank: Removing the experience bank reduces F1 by 25.5%–35.7% on task clarity assessment and 49.3%–84.0% on test coverage assessment. Although this variant yields a lower FPR on test coverage assessment, it identifies far fewer inadequate instances. This suggests that without prior experience, the LLM lacks cross-instance guidance and is more prone to incorrect reasoning.
Table 5: Downstream effectiveness on the 5k SWE-rebench instances.
| Method | #Filtered | #Trajs | $Annotation | $Sampling | $Cost/#Trajs | Resolved %↑ |
|---|---|---|---|---|---|---|
| Base Model | — | — | — | — | — | 2.0 |
| Full Data | 0 | 2,309 | 0.00 | 1,680.94 | 0.73 | 54.4 ↑21.7% |
| Vanilla | 2,140 | 1,424 | 9.87 | 876.93 | 0.62 | 51.0 ↑29.8% |
| SimpleRAG | 2,248 | 1,390 | 24.65 | 860.55 | 0.64 | 57.8 ↑14.5% |
| SPICE | 4,124 | 582 | 38.42 | 225.61 | 0.45 | 57.6 ↑14.9% |
| Codex | 2,471 | 1,361 | 85.04 | 744.58 | 0.61 | 57.4 ↑15.3% |
| Claude Code | 2,465 | 1,330 | 57.46 | 738.05 | 0.60 | 55.6 ↑19.1% |
| EXLABEL | 3,276 | 1,087 | 35.21 | 460.54 | 0.46 | 66.2 |
-
w/o Reranking: Removing reranking lowers F1 by 20.1%–34.2% and 4.3%–6.7% on the two tasks, respectively. This is likely because less precise retrieval introduces irrelevant context, increasing noise and distracting the LLM from the core issue.
-
w/o Field (Successes): Removing the Successes field leads to F1 drops of 12.1%–17.5% and 4.3% on the two tasks, respectively. This indicates that Successes provides useful reasoning patterns that guide correct predictions.
-
w/o Field (Mistakes): Removing the Mistakes field decreases F1 by 23.9%–24.9% and 3.1%–5.0% on the two tasks, respectively. This suggests that Mistakes helps the LLM avoid recurring reasoning errors by highlighting common pitfalls.
-
w/o Field (Successes, Mistakes): Removing both Successes and Mistakes reduces F1 by 26.5%–29.7% and 7.3%–9.3% on the two tasks, respectively. This shows that the two fields play complementary roles, jointly providing positive guidance and error correction.
These results demonstrate that each component of EXLABEL plays an indispensable role in enabling experience extraction with self-reflection and the self-evolution of the experience bank, and they constitute essential elements of EXLABEL 's effectiveness. We further present a representative case in online Appendix D to illustrate how each component affects the prediction.
RQ2 Summary: All components of EXLABEL are effective, and the experience bank is the most critical one, whose removal reduces F1 by 48.6% on average.
6.3 RQ3: Downstream Effectiveness
As shown in Table 5, the model trained on the data filtered by EXLABEL achieves the highest resolution rate of 66.2%, outperforming the best-performing baseline by 14.5%. Notably, EXLABEL retains 1,087 resolved trajectories, fewer than the 1,330–1,424 retained by all baselines except SPICE. Compared with Full Data, EXLABEL improves the resolution rate by 21.7% while using fewer than half of its 2,309 trajectories. These results show that the benefit of EXLABEL does not arise from using more training data; instead, its filtering enables more effective training with substantially fewer trajectories.
Moreover, filtering with EXLABEL reduces the cost per resolved trajectory to 0.45 of SPICE and lower than the 0.64 of the other baselines, as filtering before sampling avoids spending sampling cost on instances that would subsequently be filtered out. SPICE achieves a slightly lower cost of $0.45 but filters out 4,124 of the 5k instances and retains only 582 resolved trajectories. Such aggressive filtering is consistent with its substantially higher FPR observed in RQ1. In contrast, EXLABEL achieves the highest downstream resolution rate while retaining nearly twice as many resolved trajectories as SPICE, demonstrating a better balance between filtering data and preserving useful training trajectories.
RQ3 Summary: Filtering SWE-rebench with EXLABEL enables Qwen3.5-9B-Base to achieve a 66.2% resolution rate on SWE-bench Verified, outperforming the best-performing baseline by 14.5% while reducing the cost per resolved trajectory to $0.46.
6.4 RQ4: Case Study
To understand how the experience of EXLABEL helps it outperform the baselines, we manually inspect representative cases in RQ1 and find that the experience provides annotation-specific knowledge

Figure 5: A test coverage assessment case of django-15869 to reveal the reason for EXLABEL's better performance.
that additional context alone cannot offer. For example, in the test coverage case shown in Figure 5, the task description only asks to deprecate the length_is template filter, while the test patch uses assertRaisesMessage to check the exact warning message implemented in the golden patch. Therefore, a valid solution that raises the same warning with a different message would fail the test, making the test suite inadequate. Vanilla notices that the test patch aligns with the warning in the golden patch but treats this alignment as evidence of adequacy, overlooking that such alignment is exactly the source of over-specification. SimpleRAG retrieves a historical instance about the urlize function, whose annotation concerns URL handling and provides no guidance on over-specified tests. SPICE locates the relevant test file and source file but still concludes that the tests cover all reasonable solutions, indicating that access to the relevant code alone is insufficient to judge whether the tests are over-specified. Codex and Claude Code explore the repository and find other deprecation tests that also assert exact warning messages, and thus regard the message as intended behavior rather than an implementation detail. However, such repository conventions only reflect how developers write tests, rather than whether the tests accept all valid solutions to the task. In contrast, EXLABEL retrieves the experience "Avoid over-specification that could reject reasonable alternative implementations" distilled from historical annotations, which directs the LLM to examine whether the test constrains details beyond the task description and thus identify the check on the exact warning message. This case illustrates that EXLABEL's experience provides more effective judgment criteria that may not be readily available from the instance itself, similar historical instances, or repository context.
7 Discussion
7.1 Typical Annotation Errors in SWE Datasets
During the manual cleaning of SWE-TQ, we have observed the presence of incorrect annotations in the datasets for both task clarity and test coverage assessments, consistent with the observations of OpenAI's annotation team [8], mainly manifested as follows.
For task clarity assessment, a typical annotation error occurs in instances whose task descriptions provide key information through external links [8]. Since LLMs are required not to access the internet when completing the task, information provided through external links is invalid [7, 11, 23]. Therefore, such task descriptions should be labeled as underspecified. Yet, they are incorrectly labeled as well-specified, which is inconsistent with the criteria for task clarity. For example, as shown in Figure 6 (left), the task description contains three external links that document code snippets relevant to the task and their corresponding documentation. However, since the LLM cannot access these external links, the information within them cannot be obtained, resulting in missing key information.

Figure 6: Examples of typical annotation error patterns in task clarity (left) and test coverage assessments (right).
in the task description. Without access to the code snippets corresponding to the images, it is nearly impossible for the LLM to understand what the parameters “False, I” refer to, thereby rendering the task unsolvable.
For test coverage assessment, we further filter another type of annotation error, i.e., instances labeled as adequate even though the task description does not specify the exact error message assumed by the test patch. Specifically, the golden patch implements the logic of raising an exception for certain inputs, whereas the corresponding test patch performs assertions by matching the error message as a string, making the test suite overly specific. For example, as shown in Figure 6 (right), the test patch checks for specific error messages such as “manage.py subparser foo: error: argument bar: invalid int value: 'twelve'”. But this error message is not provided in the task description, which causes an LLM that generates a similar error message to be judged as failing the task, even when it has in fact solved it, simply because it cannot pass the test. This is a typical instance of an inadequate test suite, yet it is incorrectly annotated as adequate.
By identifying and filtering the annotation errors of these two widely acknowledged patterns [8], we construct SWE-TQ as a high-quality benchmark for evaluating automated annotation methods, thereby ensuring the validity of the evaluation.
7.2 Threats to Validity
Internal Validity. The datasets used in our experiments were manually annotated by the annotators of SWE-bench Verified and Multi-SWE-bench. However, manual annotation may still contain errors. To mitigate this threat, we retain only the instances on which all annotators reach complete agreement, and two of the authors further review all instances following the annotation criteria released by OpenAI [8] to filter out erroneous annotations, achieving a Cohen's kappa of 0.928.
External Validity. Our evaluation focuses on issue resolution, as existing SWE benchmarks are predominantly constructed around this task setting. Nevertheless, issue resolution encompasses diverse SE scenarios, including bug fixing, feature implementation, and feature optimization [60], allowing SWE-TQ to evaluate EXLABEL across these diverse scenarios. Moreover, EXLABEL is not inherently tied to issue resolution, as its general interfaces and easily adaptable prompt templates facilitate its extension to other task settings.
8 Related Work
8.1 SWE-bench-style Datasets
With the rapid advancement of LLMs for SE tasks, increasing research attention has been devoted to constructing datasets for training and evaluating LLMs on diverse tasks (e.g., bug fixing and feature requests) in real-world software repositories. A prominent family of such datasets is SWE-bench-style datasets. Unlike traditional static code collections [17, 31, 65], SWE-bench-style datasets provide each instance with an executable environment, allowing LLM-based agents to interact with the repository, resolve tasks based on natural-language descriptions, and validate their solutions through execution. Existing SWE-bench-style datasets can broadly be divided into benchmark and training datasets.
Benchmark datasets are typically collected from real-world repositories and equipped with executable environments. For example, SWE-bench [23] collects 2,294 executable instances from 12 real-world software repositories to evaluate LLMs on issue resolution. Subsequent studies extend SWE-bench to multilingual [60, 61] and multimodal [57] settings. SWE-Perf [16] and FEA-bench [28] further target performance optimization and feature addition, respectively, broadening the task scope while retaining the basic SWE-bench setting. Training datasets additionally employ automated or synthetic construction to increase data scale. For example, SWE-Smith [58] introduces a reverse synthesis approach that starts from runnable code and automatically injects defects to generate new tasks. Similarly, SWE-Synth [42] uses LLMs to simulate the debugging process, generating code fixes, test cases, and repair trajectories. BugPilot [52] synthesizes data by guiding coding agents to introduce new features into codebases and leveraging unintended test failures arising during this process to construct new tasks.
Despite substantial efforts devoted to constructing SWE-bench-style datasets [53, 54, 58, 61], quality issues such as underspecified task descriptions and inadequate test suites have been observed. For example, even SWE-bench Verified, which undergoes manual verification [8], has been reported to contain instances with insufficient test coverage [56, 59]. Automated and synthetic construction may further introduce quality risks as datasets scale [54, 58]. These concerns motivate techniques for systematically assessing task quality before SWE datasets are used for evaluation or training.
8.2 Quality Assessment of SWE Datasets
Before task clarity and test coverage were explicitly introduced as criteria for verifying SWE-bench instances [8], prior work had explored automated quality assessment for various software artifacts. For example, Sheikhaei et al. [50] investigated automated labeling of self-admitted technical debt (SATD) in code comments, comparing in-context learning with fine-tuned base models and showing the potential of LLMs for automated software-artifact assessment. For SWE-bench-style datasets, however, task quality assessment remains challenging because determining whether a task is sufficiently specified and adequately tested requires contextual judgment over the task description and associated patches [37]. In practice, existing SWE datasets largely rely on human annotation and verification for task quality assessment [8, 22]. For example, OpenAI [8] recruited 93 professional Python developers to independently annotate 1,699 SWE-bench instances, resulting in the SWE-bench Verified subset. Multi-SWE-bench [60] and Doc2Feat-bench [22] similarly employ manual annotation based on the criteria introduced by SWE-bench Verified.
Moreover, SPICE [37] makes an initial attempt at automated annotation for SWE-bench-style datasets. It employs separate pipelines for task clarity and test coverage assessment: the former uses manually summarized patterns of underspecified task descriptions, while the latter leverages agent-based repository exploration to assess test adequacy. However, such approaches assess individual instances using predefined criteria or instance-specific context, without explicitly accumulating and reusing knowledge learned from assessments across instances. In contrast, EXLABEL introduces a self-evolving experience bank that continuously extracts generalizable judgment criteria from historical experience and retrieves relevant experience to guide new instances. This enables task quality assessment to benefit from cross-instance knowledge rather than treating each instance independently.
9 Conclusion
In this work, we propose EXLABEL, an LLM-based, self-evolving, experience-guided assistant to assess task quality in SWE datasets. EXLABEL extracts common patterns and typical error patterns from historically annotated data through a self-evolving loop to form experience, thereby overcoming the limitations on cross-instance information utilization imposed by the stateless nature of LLMs. We evaluate task quality from two perspectives: task clarity and test coverage, which concern solvability and verifiability, respectively. To support the evaluation, we clean the human annotations of SWE-bench and Multi-SWE-bench and construct SWE-TQ, a benchmark spanning eight programming languages. The experimental results on SWE-TQ show that EXLABEL achieves the best F1 in all settings, 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, filtering the training data with EXLABEL improves the fine-tuned coding model's resolution rate on SWE-bench Verified by 14.5% over the best-performing baseline.
Data Availability
The replication package, including the SWE-TQ benchmark, the detailed prompt templates, and the appendix, is available at https://github.com/ZJU-CTAG/ExLabel.
References
[1] Aider-AI. Aider: Ai pair programming in your terminal. https://github.com/Aider-AI/aider, 2026. Accessed: 2026-01-22.
[2] Anthropic. Claude code. https://github.com/anthropics/claude-code, 2026. Accessed: 2026-09-28.
[3] Ibragim Badertdinov, Alexander Golubev, Maksim Nekrashevich, Anton Shevtsov, Simon Karasik, Andrei Andriushchenko, Maria Trofimova, Daria Litvintseva, and Boris Yangel. SWE-rebench: An automated pipeline for task collection and decontaminated evaluation of software engineering agents. In Advances in Neural Information Processing Systems 38, Datasets and Benchmarks Track, volume 38. Neural Information Processing Systems Foundation, 2025. doi: 10.52202/085713-0788. URL https://proceedings.nips.cc/paper_files/paper/2025/hash/21bec6ace947b1b58967b945c8ac0f10-Abstract-Datasets_and_Benchmarks_Track.html.
[4] Aaditya Bhatia, Shaowei Wang, Muhammad Asaduzzaman, and Ahmed E Hassan. A study of bug management using the stack exchange question and answering platform. IEEE Transactions on Software Engineering, 48(2):502–518, 2022.
[5] Michael Franklin Bosu and Stephen G MacDonell. Data quality in empirical software engineering: a targeted review. In Proceedings of the 17th International Conference on Evaluation and Assessment in Software Engineering, pages 171–176, 2013.
[6] Guorui Chen, Yifan Xia, Xiaojun Jia, Zhijiang Li, Philip Torr, and Jindong Gu. LLM jailbreak detection for (almost) free! In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 5777–5807. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.findings-emnlp.309. URL https://aclanthology.org/2025.findings-emnlp.309/.
[7] Hyeong Kyu Choi, Maxim Khanov, Hongxin Wei, and Yixuan Li. How contaminated is your benchmark? measuring dataset leakage in large language models with kernel divergence. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 10666–10682. PMLR, 2025. URL https://proceedings.mlr.press/v267/choi25b.html.
[8] Neil Chowdhury, James Aung, Chan Jun Shern, Oliver Jaffe, Dane Sherburn, Giulio Starace, Evan Mays, Rachel Dias, Marwan Aljubeh, Mia Glaese, Carlos E. Jimenez, John Yang, Leyton Ho, Tejal Patwardhan, Kevin Liu, and Aleksander Madry. Introducing SWE-bench verified, 2024. URL https://openai.com/index/introducing-swe-bench-verified/.
[9] Jacob Cohen. A coefficient of agreement for nominal scales. Educational and Psychological Measurement, 20(1):37–46, 1960.
[10] DeepSeek-AI et al. Deepseek-v4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348, 2026.
[11] Chunyuan Deng, Yilun Zhao, Xiangru Tang, Mark Gerstein, and Arman Cohan. Investigating data contamination in modern benchmarks for large language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 8706–8719, 2024.
[12] Luyu Gao, Zhuyun Dai, Tongfei Chen, Zhen Fan, Benjamin Van Durme, and Jamie Callan. Complement lexical retrieval model with semantic residual embeddings. In European Conference on Information Retrieval, pages 146–160. Springer, 2021.
[13] Pengfei Gao, Zhao Tian, Xiangxin Meng, Xinchen Wang, Ruida Hu, Yuanan Xiao, Yizhou Liu, Zhao Zhang, Junjie Chen, Cuiyun Gao, et al. Trae agent: An llm-based agent for software engineering with test-time scaling. arXiv preprint arXiv:2507.23370, 2025.
[14] Divyansh Garg, Diego Caples, Andis Draguns, Nikil Ravi, Pranav Putta, Naman Garg, Prannay Hebbar, Youngchul Joo, Jindong Gu, Charles London, et al. Real: Benchmarking autonomous agents on deterministic simulations of real websites. In The Thirty-ninth Annual Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2025.
[15] Helia Hashemi, Jason Eisner, Corby Rosset, Benjamin Van Durme, and Chris Kedzie. Llm-rubric: A multidimensional, calibrated approach to automated evaluation of natural language texts. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13806–13834, 2024.
[16] Xinyi He, Qian Liu, Mingzhe Du, Lin Yan, Zhijie Fan, Yiming Huang, Yin Zheng, Zejian Yuan, and Zejun Ma. SWE-perf: Can language models optimize code performance on real-world repositories? In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 41651–41666. PMLR, 2026. URL https://proceedings.mlr.press/v306/he26y.html.
[17] Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Live-CodeBench: Holistic and contamination-free evaluation of large language models for code. In International Conference on Learning Representations (ICLR), 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/94074dd5a072d28ff75a76dabed43767-Abstract-Conference.html.
[18] Naman Jain, Jaskirat Singh, Manish Shetty, Tianjun Zhang, Liang Zheng, Koushik Sen, and Ion Stoica. R2E-gym: Procedural environment generation and hybrid verifiers for scaling open-weights SWE agents. In Proceedings of the Conference on Language Modeling (COLM), 2025. URL https://openreview.net/forum?id=7evvwdo3z.
[19] Ziwei Ji, Tiezheng Yu, Yan Xu, Nayeon Lee, Etsuko Ishii, and Pascale Fung. Towards mitigating llm hallucination via self-reflection. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 1827–1843, 2023.
[20] Haoxiang Jia, Robbie Morris, He Ye, Federica Sarro, and Sergey Mechtaev. Automated repair of ambiguous problem descriptions for LLM-based code generation. In 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 367–379, Seoul, South Korea, 2025. IEEE. doi: 10.1109/ASE63991.2025.00038. URL https://doi.org/10.1109/ASE63991.2025.00038.
[21] Zhonghao Jiang, David Lo, and Zhongxin Liu. Agentic software issue resolution with large language models: A survey. arXiv preprint arXiv:2512.22256, 2025.
[22] Zhonghao Jiang, Le Deng, Jialun Cao, Michael Pradel, and Zhongxin Liu. Doc2Feat-bench: Evaluating documentation-driven feature addition. In Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (ASE 2026), 2026. URL https://conf.researchr.org/track/ase-2026/ase-2026-research-track.
[23] Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. Swe-bench: Can language models resolve real-world github issues? In International Conference on Learning Representations (ICLR), 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/hash/edac78c3e300629acfe6cbe9ca88fb84-Abstract-Conference.html.
[24] Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769–6781, 2020.
[25] Taeyoon Kwon, Dongwook Choi, Hyojun Kim, Sunghwan Kim, Seungjun Moon, Beong-woo Kwak, Kuan-Hao Huang, and Jinyoung Yeo. Embodied agents meet personalization: Investigating challenges and solutions through the lens of memory utilization. In International Conference on Learning Representations (ICLR), 2026. URL https://openreview.net/pdf?id=E5L4315EIu.
[26] J. Richard Landis and Gary G. Koch. The measurement of observer agreement for categorical data. Biometrics, 33(1):159–174, 1977.
[27] Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in neural information processing systems, 33:9459–9474, 2020.
[28] Wei Li, Xin Zhang, Zhongxin Guo, Shaoguang Mao, Wen Luo, Guangyue Peng, Yangyu Huang, Houfeng Wang, and Scarlett Li. FEA-bench: A benchmark for evaluating repository-level code generation for feature implementation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 17160–17176. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.acl-long.839. URL https://aclanthology.org/2025.acl-long.839/.
[29] Xuancheng Li, Haitao Li, Yujia Zhou, Yiqun Liu, and Qingyao Ai. Beyond experience retrieval: Learning to generate utility-optimized structured experience for frozen LLMs. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 39467–39482. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.acl-long.1831. URL https://aclanthology.org/2026.acl-long.1831/.
[30] Anna Lindahl. Disagreement in argumentation annotation. In Proceedings of the 3rd Workshop on Perspectivist Approaches to NLP (NLPerspectives)@ LREC-COLING 2024, pages 56–66, 2024.
[31] Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. Is your code generated by chatgpt really correct? rigorous evaluation of large language models for code generation. Advances in Neural Information Processing Systems, 36:21558–21572, 2023.
[32] Shuai Lu, Nan Duan, Hojae Han, Daya Guo, Seung-won Hwang, and Alexey Svyatkovskiy. ReACC: A retrieval-augmented code completion framework. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6227–6240. Association for Computational Linguistics, 2022. doi: 10.18653/v1/2022.acl-long.431. URL https://aclanthology.org/2022.acl-long.431/.
[33] Yingwei Ma, Qingping Yang, Rongyu Cao, Binhua Li, Fei Huang, and Yongbin Li. Alibaba lingmaagent: Improving automated issue resolution via comprehensive repository exploration. In Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering, pages 238–249, 2025.
[34] Mahmoud Mohammadi, Yipeng Li, Jane Lo, and Wendy Yip. Evaluation and benchmarking of llm agents: A survey. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2, pages 6129–6139, 2025.
[35] Fangwen Mu, Lin Shi, Song Wang, Zhuohao Yu, Binquan Zhang, ChenXue Wang, Shichao Liu, and Qing Wang. Clarifygpt: A framework for enhancing llm-based code generation via requirements clarification. Proceedings of the ACM on Software Engineering, 1(FSE): 2332–2354, 2024.
[36] Niklas Muennighoff, Nouamane Tazi, Loic Magne, and Nils Reimers. MTEB: Massive text embedding benchmark. In Andreas Vlachos and Isabelle Augenstein, editors, Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 2014–2037, Dubrovnik, Croatia, May 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.eacl-main.148. URL https://aclanthology.org/2023.eacl-main.148/.
[37] Gustavo A Oliva, Gopi Krishnan Rajbahadur, Aaditya Bhatia, Haoxiang Zhang, Yihao Chen, Zhilong Chen, Arthur Leung, Dayi Lin, Boyuan Chen, and Ahmed E Hassan. Spice: An automated swe-bench labeling pipeline for issue clarity, test coverage, and effort estimation. In 2025 IEEE/ACM 40th International Conference on Automated Software Engineering (ASE), pages 2324–2336. IEEE, 2025.
[38] OpenAI. Codex. https://github.com/openai/codex, 2026. Accessed: 2026-09-28.
[39] OpenAI. Gpt-5.6 luna, 2026. URL https://developers.openai.com/api/docs/models/gpt-5.6-luna. Accessed: 2026-09-28.
[40] Jiayi Pan, Xingyao Wang, Graham Neubig, Navdeep Jaitly, Heng Ji, Alane Suhr, and Yizhe Zhang. Training software engineering agents and verifiers with SWE-gym. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 47717–47737. PMLR, 2025. URL https://proceedings.mlr.press/v267/pan25g.html.
[41] Md Rizwan Parvez, Wasi Ahmad, Saikat Chakraborty, Baishakhi Ray, and Kai-Wei Chang. Retrieval augmented code generation and summarization. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 2719–2734, 2021.
[42] Minh VT Pham, Huy N Phan, Hoang N Phan, Cuong Le Chi, Tien N Nguyen, and Nghi DQ Bui. Swe-synth: Synthesizing verifiable bug-fix data to enable large language models in resolving real-world bugs. In Proceedings of the 48th International Conference on Software Engineering (ICSE 2026). Association for Computing Machinery, 2026.
[43] Nearchos Potamitis, Lars Klein, and Akhil Arora. Reasonbench: Benchmarking the (in) stability of llm reasoning. arXiv preprint arXiv:2512.07795, 2025.
[44] Qwen Team. Qwen3.5, 2026. URL https://huggingface.co/docs/transformers/model_doc/qwen3_5. Accessed: 2026-09-29.
[45] Qwen Team. Qwen3.8-27b model card, 2026. URL https://huggingface.co/Qwen/Qwen3.8-27B. Accessed: 2026-09-28.
[46] Matthew Renze and Erhan Guven. Self-reflection in llm agents: Effects on problem-solving performance. arXiv preprint arXiv:2405.06682, 2024.
[47] Stephen Robertson, Hugo Zaragoza, et al. The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends® in Information Retrieval, 3(4):333–389, 2009.
[48] Paul Röttger, Bertie Vidgen, Dirk Hovy, and Janet Pierrehumbert. Two contrasting data annotation paradigms for subjective nlp tasks. In Proceedings of the 2022 conference of the North American chapter of the association for computational linguistics: human language technologies, pages 175–190, 2022.
[49] Wolfgang Schmeisser-Nieto, Montserrat Nofre, and Mariona Taulé. Criteria for the annotation of implicit stereotypes. In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 753–762, 2022.
[50] Mohammad Sadegh Sheikhaei, Yuan Tian, Shaowei Wang, and Bowen Xu. An empirical study on the effectiveness of large language models for satd identification and classification. Empirical Software Engineering, 29(6):159, 2024.
[51] Clemencia Siro, Pourya Aliannejadi, and Mohammad Aliannejadi. Learning to judge: Llms designing and applying evaluation rubrics. In Findings of the Association for Computational Linguistics: EACL 2026, pages 6371–6389, 2026.
[52] Atharv Sonwane, Isadora White, Hyunji Lee, Matheus Pereira, Lucas Caccia, Minseon Kim, Zhengyan Shi, Chinmay Singh, Alessandro Sordoni, Marc-Alexandre Côté, and Xingdi Yuan. Bugpilot: Complex bug generation for efficient learning of SWE skills. In International Conference on Learning Representations (ICLR), 2026. URL https://openreview.net/forum?id=1TbBFAoPSA.
[53] Chaofan Tao, Jierun Chen, Yuxin Jiang, Kaiqi Kou, Shaowei Wang, Ruoyu Wang, Xiaohui Li, Sidi Yang, Yiming Du, Jianbo Dai, et al. Swe-lego: Pushing the limits of supervised fine-tuning for software issue resolving. arXiv preprint arXiv:2601.01426, 2026.
[54] Junhao Wang, Daoguang Zan, Shulin Xin, Siyao Liu, Yurong Wu, and Kai Shen. Swe-mirror: Scaling issue-resolving datasets by mirroring issues across repositories. arXiv preprint arXiv:2509.08724, 2025.
[55] Xingyao Wang, Boxuan Li, Yufan Song, Frank F Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, et al. Openhands: An open platform for ai software developers as generalist agents. In The Thirteenth International Conference on Learning Representations.
[56] You Wang, Michael Pradel, and Zhongxin Liu. Are "solved issues" in SWE-bench really solved correctly? an empirical study. In 2026 IEEE/ACM 48th International Conference on Software Engineering (ICSE '26), pages 1–13. Association for Computing Machinery, 2026. doi: 10.1145/3744916.3764576.
[57] John Yang, Carlos E. Jimenez, Alex L. Zhang, Kilian Lieret, Joyce Yang, Xindi Wu, Ori Press, Niklas Muennighoff, Gabriel Synnaeve, Karthik R. Narasimhan, Diyi Yang, Sida Wang, and Ofir Press. SWE-bench multimodal: Do AI systems generalize to visual software domains? In International Conference on Learning Representations (ICLR), 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/07d6332ae36730707fdddba736d7b6c-Abstract-Conference.html.
[58] John Yang, Kilian Lieret, Carlos E. Jimenez, Alexander Wettig, Kabir Khandpur, Yanzhe Zhang, Binyuan Hui, Ofir Press, Ludwig Schmidt, and Diyi Yang. SWE-smith: Scaling data for software engineering agents. In Advances in Neural Information Processing Systems 38, Datasets and Benchmarks Track, volume 38, pages 107402–107452. Neural Information Processing Systems Foundation, 2025. doi:10.52202/085713-3239. URL https://papers.nips.cc/paper_files/paper/2025/hash/8b86cf5ace600c48fd188efbb8dedec8-Abstract-Datasets_and_Benchmarks_Track.html.
[59] Boxi Yu, Yuxuan Zhu, Pinjia He, and Daniel Kang. UTBoost: Rigorous evaluation of coding agents on SWE-bench. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3762–3774. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.acl-long.189. URL https://aclanthology.org/2025.acl-long.189/.
[60] Daoguang Zan, Zhirong Huang, Wei Liu, Hanwu Chen, Shulin Xin, Linhao Zhang, Qi Liu, Aoyan Li, Lu Chen, Xiaojian Zhong, Siyao Liu, Yongsheng Xiao, Liangqiang Chen, Yuyu Zhang, Jing Su, Tianyu Liu, Rui Long, Ming Ding, and Liang Xiang. Multi-SWE-bench: A multilingual benchmark for issue resolving. In Advances in Neural Information Processing Systems 38, Datasets and Benchmarks Track, volume 38, pages 70112–70144. Neural Information Processing Systems Foundation, 2025. doi: 10.52202/085713-2111. URL https://proceedings.nips.cc/paper_files/paper/2025/hash/5afa9cble917b898ad418216dc726fbd-Abstract-Datasets_and_Benchmarks_Track.html.
[61] Linghao Zhang, Shilin He, Chaoyun Zhang, Yu Kang, Bowen Li, Chengxing Xie, Junhao Wang, Maoquan Wang, Yufan Huang, Shengyu Fu, Elsie Nallipogu, Qingwei Lin, Yingnong Dang, Saravan Rajmohan, and Dongmei Zhang. Swe-bench goes live! In Advances in Neural Information Processing Systems 38, volume 38, pages 163347–163372. Neural Information Processing Systems Foundation, 2025. doi: 10.52202/085713-4923.
[62] Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, et al. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176, 2025.
[63] Yaowei Zheng, Richong Zhang, Junhao Zhang, Yanhan Ye, Zheyan Luo, Zhangchi Feng, and Yongqiang Ma. LlamaFactory: Unified efficient fine-tuning of 100+ language models. In
Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), pages 400–410, Bangkok, Thailand, 2024. Association for Computational Linguistics.
[64] Xiaowei Zhu, Yubing Ren, Yanan Cao, Xixun Lin, Fang Fang, and Yangxi Li. Reliably bounding false positives: A zero-shot machine-generated text detection framework via multiscaled conformal prediction. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12298–12319. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.acl-long.601. URL https://aclanthology.org/2025.acl-long.601/.
[65] Terry Yue Zhuo, Minh Chien Vu, Jenny Chim, Han Hu, Wenhao Yu, Ratnadira Widyasari, Imam Nur Bani Yusuf, Haolan Zhan, Junda He, Indraneil Paul, et al. BigCodeBench: Benchmarking code generation with diverse function calls and complex instructions. In International Conference on Learning Representations (ICLR), 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/a6a90bcc2aa470c3871b2d39a67d26e8-Abstract-Conference.html.
Appendix
A Detailed Results of RQ1
Table 6: Detailed results of RQ1, where P and R denote precision and recall, respectively, Python and Multilingual denote SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, respectively, and all metrics are reported in percentage.
| Method | Qwen3.8-27B | DeepSeek-V4-Flash | GPT-5.6 Luna | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| F1↑ | P↑ | R↑ | FPR↓ | F1↑ | P↑ | R↑ | FPR↓ | F1↑ | P↑ | R↑ | FPR↓ | ||
| Task Clarity | Vanilla | 50.0 | 100.0 | 33.3 | 0.0 | 24.7 | 16.4 | 50.0 | 16.3 | 45.5 | 38.5 | 55.6 | 5.7 |
| SimpleRAG | 43.5 | 100.0 | 27.8 | 0.0 | 19.6 | 11.3 | 72.2 | 36.2 | 48.7 | 47.4 | 50.0 | 3.6 | |
| SPICE | 52.8 | 40.0 | 77.8 | 7.4 | 39.6 | 24.7 | 100.0 | 19.5 | 30.8 | 18.2 | 100.0 | 28.7 | |
| Codex | 20.0 | 100.0 | 11.1 | 0.0 | 30.3 | 33.3 | 27.8 | 3.6 | 52.6 | 50.0 | 55.6 | 3.6 | |
| Claude Code | 20.0 | 100.0 | 11.1 | 0.0 | 37.2 | 32.0 | 44.4 | 6.0 | 47.6 | 41.7 | 55.6 | 5.0 | |
| EXLABEL | 64.7 | 68.8 | 61.1 | 1.8 | 51.9 | 77.8 | 38.9 | 0.7 | 61.1 | 61.1 | 61.1 | 2.5 | |
| Multilingual | Vanilla | 26.7 | 23.5 | 30.8 | 4.8 | 15.0 | 8.7 | 53.9 | 26.9 | 17.3 | 10.5 | 50.0 | 20.3 |
| SimpleRAG | 26.9 | 26.9 | 26.9 | 3.5 | 12.2 | 6.6 | 76.9 | 51.7 | 20.8 | 14.3 | 38.5 | 11.0 | |
| SPICE | 13.9 | 8.3 | 42.3 | 22.1 | 15.4 | 8.7 | 65.4 | 32.5 | 13.2 | 7.3 | 73.1 | 44.4 | |
| Codex | 17.1 | 33.3 | 11.5 | 1.1 | 16.6 | 10.1 | 46.2 | 19.6 | 14.5 | 9.2 | 34.6 | 16.3 | |
| Claude Code | 24.2 | 57.1 | 15.4 | 0.6 | 16.2 | 11.0 | 30.8 | 11.9 | 13.3 | 8.0 | 38.5 | 21.0 | |
| EXLABEL | 37.5 | 40.9 | 34.6 | 2.4 | 25.4 | 20.0 | 34.6 | 6.6 | 26.9 | 22.0 | 34.6 | 5.9 | |
| Test Coverage | Vanilla | 10.0 | 75.0 | 5.4 | 0.9 | 13.3 | 100.0 | 7.1 | 0.0 | 12.7 | 57.1 | 7.1 | 2.8 |
| SimpleRAG | 66.7 | 93.6 | 51.8 | 1.8 | 31.9 | 84.6 | 19.6 | 1.8 | 20.9 | 63.6 | 12.5 | 3.7 | |
| SPICE | 71.3 | 63.0 | 82.1 | 24.8 | 37.5 | 62.5 | 26.8 | 8.3 | 75.8 | 65.8 | 89.3 | 23.9 | |
| Codex | 10.0 | 75.0 | 5.4 | 0.9 | 16.9 | 40.0 | 10.7 | 8.3 | 43.6 | 77.3 | 30.4 | 4.6 | |
| Claude Code | 0.0 | 0.0 | 0.0 | 0.0 | 9.2 | 33.3 | 5.4 | 5.5 | 30.6 | 68.8 | 19.6 | 4.6 | |
| EXLABEL | 76.5 | 84.8 | 69.6 | 6.4 | 73.0 | 71.2 | 75.0 | 15.6 | 79.4 | 69.3 | 92.9 | 21.1 | |
| Multilingual | Vanilla | 24.4 | 50.0 | 16.1 | 3.5 | 33.7 | 43.6 | 27.4 | 7.7 | 20.3 | 47.1 | 12.9 | 3.2 |
| SimpleRAG | 26.2 | 26.7 | 25.8 | 15.4 | 13.3 | 38.5 | 8.1 | 2.8 | 36.0 | 47.4 | 29.0 | 7.0 | |
| SPICE | 31.7 | 22.9 | 51.6 | 37.8 | 27.0 | 24.1 | 30.7 | 21.0 | 35.7 | 24.0 | 69.4 | 47.6 | |
| Codex | 14.1 | 55.6 | 8.1 | 1.4 | 19.1 | 23.3 | 16.1 | 11.5 | 38.9 | 45.7 | 33.9 | 8.7 | |
| Claude Code | 16.7 | 60.0 | 9.7 | 1.4 | 8.9 | 14.3 | 6.5 | 8.4 | 35.2 | 41.3 | 30.7 | 9.4 | |
| EXLABEL | 36.9 | 46.3 | 30.7 | 7.7 | 34.9 | 40.4 | 30.7 | 9.8 | 40.0 | 30.1 | 59.7 | 30.1 | |
In addition to F1 and FPR, Table 6 reports the precision and recall of all techniques in RQ1.
Table 6 further reveals different precision-recall trade-offs among the techniques. Vanilla, SimpleRAG, Codex, and Claude Code tend to be conservative, and their average recall is only 22.3%–36.6% across the 12 combinations of tasks, subsets, and backbone models. In all 17 cases where one of these baselines achieves a precision no lower than that of EXLABEL, its recall is lower than that of EXLABEL, such as the precision of 100.0% with a recall of only 11.1%–33.3% on task clarity assessment in SWE-TQ-PYTHON with Qwen3.8-27B. Such conservative predictions leave most low-quality instances in the dataset. In contrast, SPICE achieves the highest recall in 9 of the 12 combinations with an average recall of 67.4%, but its average precision is only 30.8%, which is the lowest among all techniques. For example, SPICE achieves a recall of 73.1% but a precision of only 7.3% on task clarity assessment in SWE-TQ-MULTILINGUAL with GPT-5.6 Luna, indicating that most of the instances it flags are valid ones. EXLABEL strikes a better balance between the two, achieving the highest average precision of 52.7% and an average recall of 52.0%, which is second only to SPICE. The average gap between the precision and recall of EXLABEL is 14.8 percentage points, compared with 29.4–42.5 percentage points for the baselines. Meanwhile, the trade-off of EXLABEL varies with the backbone model. With GPT-5.6 Luna, EXLABEL favors recall on test coverage assessment, achieving recalls of 92.9% and 59.7% with precisions of 69.3% and 30.1% in SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, respectively, which explains its relatively high FPR in RQ1. Overall, this balance enables EXLABEL to remove more low-quality instances than the conservative techniques while discarding fewer valid instances than SPICE, which is consistent with its downstream benefits in RQ3.
Table 7: F1 of EXLABEL with GPT-5.6 Luna using different proportions of the historical data for experience accumulation.
| Task | Subset | 0% | 20% | 40% | 60% | 80% | 100% |
|---|---|---|---|---|---|---|---|
| Task Clarity | Python | 45.5 | 66.7 | 64.7 | 56.3 | 57.1 | 61.1 |
| Multilingual | 17.3 | 20.0 | 23.2 | 15.9 | 22.0 | 26.9 | |
| Test Coverage | Python | 12.7 | 80.0 | 77.5 | 77.9 | 79.7 | 79.4 |
| Multilingual | 20.3 | 38.9 | 37.3 | 39.1 | 39.1 | 40.0 |
B Impact of Historical Data Size
To investigate how much annotated data is required for the experience bank to become effective, we accumulate experience on 20%, 40%, 60%, and 80% of the historical data for each task and evaluate EXLABEL with GPT-5.6 Luna on the same test data as RQ1. As shown in Table 7, accumulating experience on 20% of the historical data, i.e., about 400 annotated instances, improves F1 by 2.7–67.3 percentage points over w/o Experience Bank in all four combinations of tasks and subsets. On task clarity assessment, the performance of EXLABEL tends to stabilize early, as F1 shows no clear increase beyond 20% of the historical data. This is likely because underspecified instances account for only 4.9% of the historical data, and their typical causes, such as missing key information in the task description, mainly concern the description itself, so the experience bank can capture them from a small amount of data while additional data may contribute limited new experience. On test coverage assessment, F1 shows an increasing trend from 40% to 100% of the historical data, rising from 77.5% to 79.4% and from 37.3% to 40.0% in SWE-TQ-PYTHON and SWE-TQ-MULTILINGUAL, respectively. This is likely because inadequate instances account for 32.1% of the historical data, and their causes, such as test patches relying on specific error messages or implementation details, depend on the golden patch, the test patch, and the evolving state of the codebase, which tend to vary across repositories, so additional data may still contribute new experience.

| Method | Predicted Notes | Retrieved Context |
|---|---|---|
| w/o Reranking | The test patch directly replicates the failing scenario from the problem statement (frame == coord) and checks both equality and inequality with correct and mismatched data, ensuring the fix resolves the TypeError. | Assert equivalence between the problematic method and a known-working alternative to ensure correctness without over-specifying implementation. |
| w/o Mistakes | Test patch validates core requirement by checking equality between Frame and SkyCoord with same data, inequality with different data, and proper error handling for incompatible frames or missing data, without relying on implementation details. | Evaluate test patches by checking if they validate the core behavioral requirements specified in the problem statement, such as inequality, distinct hashes, and ordering, without depending on implementation specifics. |
| w/o Successes | Test patch checks core equality behavior between Frame and SkyCoord instances with same/different data, aligns with golden patch's handling of NotImplemented and error conditions, and does not rely on hidden implementation details. | This judgment understood the issue as a fundamental problem with how mock arguments are compared during test collection, specifically recognizing that the equality-based comparison approach fails for objects with complex comparison semantics that don't work in boolean contexts. |
| w/o Successes Mistakes | Test patch checks core requirement: Frame vs SkyCoord comparison with same/different data, including error cases, without relying on hidden implementation details. | same as w/o Successes. |
| ExLabel | The test patch includes overly specific checks on exact error message strings, which are implementation details not guaranteed by the problem statement. | The previous judgment overlooked how specific implementation dependencies in error message validation and internal utf8c access could cause correct solutions to fail the tests. |
Figure 7: A test coverage assessment case of astropy-13477 to reveal the effectiveness of each component in EXLABEL.
C Training Recipe of RQ3
In RQ3, we perform full-parameter fine-tuning on Qwen3.5-9B-Base [44] using the LLaMA-Factory [63] framework on 4 H100 GPUs. Following prior work [40, 53, 58], we set the batch size to 8, the learning rate to , the maximum number of epochs to 3, and the maximum context length to 131,072 tokens, use a cosine learning-rate scheduler, and set the warmup ratio to 0.1.
D Case Study for Ablation
We present an additional representative case for test coverage assessment in RQ2, as shown in Figure 7. In this case, the test patch depends on a specific error string implemented in the golden patch, namely "Can only compare SkyCoord to Frame with data", which is not explicitly stated in the task description. For w/o Reranking, the retrieved experience emphasizes the equivalence between the problematic method and a known-working alternative. This shifts the LLM's focus away from dependence on a specific implementation toward verifying behavioral consistency and semantic correctness. For w/o Field (Mistakes), the retrieved experience focuses on the core behavior requirement. Although the experience mentions implementation details, it lacks further elaboration. As a result, the LLM directly concludes that there is no dependency on implementation details after checking the core requirement. For w/o Field (Successes) and w/o Field (Successes, Mistakes), both settings retrieve identical experience content, which is an understanding of an unrelated issue about how mock arguments are compared during test collection. This content lacks direct guidance for the current instance. Consequently, the LLM fails to identify the dependency on a specific error message and instead makes a judgment solely based on core behavior. In contrast, EXLABEL retrieves experience whose Mistakes field explains that a previous judgment overlooked how implementation dependencies in error message validation could cause correct solutions to fail the tests. This experience enables the model to identify the hidden dependency and generate the correct prediction successfully.