betaFeedback

WorksComputer Science

What Makes Good Data for Training Coding Agents? A Systematic Study on SWE-Gym

Abstract

Reinforcement learning (RL) trains coding agents on software tasks whose hidden tests decide the reward, yet task collections check these tests only against the reference fix. We ask what makes a task good training data, focusing on the correctness of its reward labels. We audit SWE-Gym with two LLM families, and a suspected error counts only if execution reproduces it. We find that unsolved often means mislabelled: 74% of the tasks that a 9B base model never solves have a test that rejects correct fixes (a false negative), versus 20% of those it sometimes solves. We repair or remove such tasks, and the audited tasks that remain train better policies. At equal size and matched difficulty, models trained on them score 2.4 and 2.7 points higher on held-out tasks from SWE-bench Verified and SWE-bench Pro than models trained on the original tasks, whereas simply dropping the never-solved tasks shows no such gain. We further find that wrong patches that pass (false positives) make up about a quarter of all passing patches, and that new tests that catch a quarter of them do not change held-out scores detectably. A pass rate shows whether a task yields reward, not whether that reward is right, so the reward labels themselves must be checked. To this end, we release SWE-Gym-Verified with its 1,087 audited tasks, every verdict with its executed evidence, our training sets, and the full audit pipeline.

Introduction

Reinforcement learning (RL) has become a standard way to train coding agents ([15, 33]), and task collections such as SWE-Gym, R2E-Gym, SWE-smith, and SWE-rebench supply the training tasks ([20, 9, 32, 2]). In collections mined from GitHub, a task pairs a repository and an issue with the tests of the pull request that resolved it ([10]). The agent sees the issue but not the tests, and its patch is rewarded only if the tests pass. The hidden tests are therefore the reward labels. Yet a collection admits a task after checking only that the reference fix passes the tests and the original code fails them. This check shows that the reward is attainable. It does not show that every correct fix obtains it, or that only correct fixes do so.

Tests can mislabel a patch in two ways (Fig. 1a,b). A false negative (FN) is a correct fix that the tests reject, for example because a test calls a private helper that the issue never mentions. A false positive (FP) is a wrong patch that the tests accept, for example one that handles the reported case but breaks a nearby code path that no test covers. Both are well documented in evaluation benchmarks, where even human screening misses many of them ([4, 19, 28]). Training data receives coarser checks. RL recipes drop the tasks that the model never solves ([33]) or the groups of samples without reward variance (Yu et al., 2025b), without looking at the tests. A pass rate tells whether a task yields reward, not whether that reward is right. LLM judges label each task’s issue and tests only as a whole ([17, 2, 3]). What is missing is an execution-backed measurement of both error types in a real training set and a controlled test of their effect on RL.

We ask what makes a task good training data for a coding agent, and answer in two steps (Figure 2). First, we audit SWE-Gym ([20]) one fail-to-pass assertion at a time. Claude Opus 5.5 and GPT-6.1 Sol judge each assertion against the issue. A flagged assertion counts as an error only if the tests reject an executed alternative fix that follows the issue, and a passing patch counts as a false positive only if an executed counterexample exposes it. Tasks with a false negative are repaired by adding the missing requirement to the issue, or removed. The 1,087 remaining tasks form SWE-Gym-Verified. Second, we train a 9B base model with GRPO on three sets of 512 tasks with matched difficulty: original tasks (Orig), audited tasks (Clean), and audited tasks with added tests against false positives (Clean+FP). A fourth set, Orig+Filter, applies a pass-rate filter to the original tasks, dropping the never-solved ones. We evaluate every run on held-out tasks from SWE-bench Verified and SWE-bench Pro [6]. We organize the study around four research questions:

Figure 2. From SWE-Gym to SWE-Gym-Verified and three matched training sets. (a) The audit reproduces every suspected label error by execution: a flagged assertion must reject an executed witness fix, and a suspected wrong patch must fail an executed counterexample. (b) Outcomes of the 2,265 tasks that enter the audit, in pipeline order (two unfinished audits are omitted). (c) Orig is sampled from screened original tasks. Clean and Clean+FP are drawn from SWE-Gym-Verified with Orig’s difficulty quotas (§ 5.1).

Figure 1. Hidden tests mislabel patches in two ways, and the two error types occur in different places. (a) A false negative in iterative/dvc-3490: the test relies on a private method and a private flag that the issue never names. (b) A false positive in pandas-dev/pandas-50796: a base-model patch passes every original test but ignores into=, which a counterexample exposes. (c) Share of Orig tasks that are FN-flawed and share of passing patches on Clean tasks that are false positives, by the number kk of eight base-model samples that pass. For false positives, kk counts passes among the eight samples drawn for that measurement.

  • RQ1: Where do label errors occur? Unsolved often means mislabelled (§5.2). In Orig, 74% of the never-solved tasks have a test that rejects correct fixes, versus 20% of the sometimes-solved ones. False positives make up about a quarter of all passing patches and are common at every difficulty level (Fig. 1c).

  • RQ2: Which label errors reach the training signal? Pass-rate filters keep the label errors that train the policy (§5.3). GRPO learns from a task only if its samples’ rewards differ. Never-solved flawed tasks almost never carry gradient, so dropping them changes little. Sometimes-solved flawed tasks contribute a fifth of the gradient-carrying groups, with or without the filter.

  • RQ3: Do audited tasks train better policies? Yes, and a pass-rate filter does not substitute for the audit (§ 5.4). At equal size and matched difficulty, Clean scores 2.4 points above Orig on SWE-bench Verified and 2.7 on SWE-bench Pro over three seeds. Averaged over both benchmarks, Orig+Filter scores no higher than Orig.

  • RQ4: Does hardening against false positives change the policy? Not detectably (§ 5.5). New tests that catch a quarter of the false positives lower the training reward on the hardened tasks by 13 points, but re-grading Clean’s own patches with the same tests lowers its reward by about as much. Held-out pass@1 does not change detectably.

These answers indicate that a good training task is one whose tests reward exactly the correct fixes. Neither pass rate nor training reward can certify this. Of the factors that make data good, we study only the correctness of the reward labels, and control for size and difficulty. We release SWE-Gym-Verified, every audit verdict with its evidence, the training sets, and the full audit pipeline (Appendix § 10).

Related Work

Label errors in software tasks. Label errors are pervasive even in the test sets of standard benchmarks ([16]. In supervised learning, the examples that a model finds hard to learn are often the mislabelled ones ([25]). We find the same pattern in the reward labels of RL tasks. SWE-bench ([10]) accepts a task if the reference fix passes its tests and the original code fails them, and training collections apply the same check to thousands of tasks ([20, 9, 32, 2]). Agentic pipelines now build the environments across languages and operating systems, but they still take tasks from issues and the tests of their pull requests and admit them by the same check ((Li et al., 2026)). This check cannot detect a test that rejects other correct fixes. Human screening has focused on evaluation sets and has proved hard to get right. SWE-bench Verified drops tasks whose tests may reject valid solutions [4], yet a later audit finds such tests in most of the Verified tasks that models often fail [19]. SWE-bench Pro’s issues carry human-written requirements [6], but an audit estimates that about 30% of its tasks are broken [18]. For training sets, PAIChecker’s annotators label SWE-Gym’s tasks for misalignment between the pull request and the issue [27]. LLM judges [17, 2, 3] (Li et al. 2026) label each task’s issue and tests as a whole. Such task-level labels can justify dropping a task, but they do not say which assertion is at fault. Tests that accept wrong programs are a known problem in code generation [13]. Many patches accepted on SWE-bench are wrong [1, 28] (Yu et al. 2025a), and strengthened tests reject a fifth of the patches that pass SWE-bench Verified (Yu et al., 2026). Coding agents also exploit tests that conflict with the task statement [37].

Reward errors in RL. Analyses of noisy verifiers assume that errors are random or of one fixed type. Under random noise, whether GRPO learns depends on the gap between the verifier’s true- and false-positive rates [22]. With systematic errors, false negatives mainly delay learning, while false positives can stall or collapse it [7]. Recovering a verifier’s false negatives improves GRPO on math (Xu et al., 2026). Even random rewards raise the math accuracy of some base models [23], so a gain over the base model does not show that the labels are correct. We therefore compare training sets with each other. In competitive programming, where the statement fully specifies which outputs are correct, tests with fewer errors improve RL [29] (He et al. 2026). In repository-level tasks, false negatives arise from what the issue leaves unsaid, so we repair the statement instead of the tests. SWE-rebench V2 leaves the comparison of filtered and unfiltered training to future work [3].

Closest studies. The Verification Horizon [26] rates whole tasks with an agentic judge, finds that never-solved tasks are more often of low quality, and reports gains from filtering. The concurrent Arctic-SWE [12] curates three collections with executed counterfactual patches, rewrites underspecified issues, and reports gains from curation and from stronger tests, in single runs. Unlike both, we judge individual assertions and release the executed evidence behind every verdict, so that each verdict can be checked. We break the errors down by whether they carry gradient, which shows why a pass-rate filter keeps the errors that train the policy, and we compare sets of equal size and matched difficulty over three seeds.

Hidden Tests as Reward Labels

Tasks and rewards. A task τ\tau consists of a repository snapshot, a statement ss (the issue, plus any requirements we add), hidden tests, and a reference fix (the gold patch). A fix must make the fail-to-pass (F2P) tests pass without breaking the pass-to-pass (P2P) tests, so a patch pp receives reward Rτ(p)=1R_{\tau}(p)=1 if all tests pass after applying it, and 0 otherwise. The agent sees ss and the repository, but not the tests. A task’s difficulty is its pass count kk, the number of passes among eight base-model samples: a task is never solved (k=0k=0), sometimes solved (1≤k≤71 \le k \le7), or always solved (k=8k=8). We call pp correct if it resolves the problem as ss describes it and breaks no existing behaviour. The tests can mislabel pp in two ways. Appendix § 17 lists our terms.

False negatives. A false negative is a correct patch with reward 0. We trace false negatives to individual assertions of the F2P tests: an assert, a pytest.raises block, a call that must not fail, or an expected line of output. An assertion rejects correct patches when passing it requires information that neither ss nor the repository provides, such as an interface that the statement does not specify, an exact string, an arbitrary design choice, or behaviour beyond the issue. A task with such an assertion is either repaired, if adding the missing requirement to ss removes the error, or FN-flawed, if it does not. A test that requires the upstream wording of a message is a fair regression test but a wrong reward label for the task as stated, since it separates patches by information the agent never had. Details inferable from the repository, such as a naming convention, are not errors.

False positives. A false positive is a wrong patch with reward 1. We count a passing patch pp as a false positive only if two LLMs label it incorrect and an executed counterexample confirms the label. A counterexample is a script whose output is the same for the original code and the gold patch but differs for pp, revealing a regression. This rule is conservative, because it misses incomplete fixes and wrong patches without a runnable counterexample.

How label errors reach GRPO. GRPO computes each sample’s advantage relative to the other samples of the same task, so a group of samples carries gradient only if its rewards are not all equal. Label errors can therefore affect training in three ways. (i) If the tests reject every reasonable patch, all samples receive reward 0, and the task consumes compute without yielding gradient (Xu et al., 2026). (ii) If the tests reject only some reasonable patches, the reward separates correct patches by details that the statement never specifies, and the gradient favours the patches that happen to match them. (iii) A false positive rewards a wrong patch, which can stall or derail learning [7].

SWE-Gym-Verified: An Execution-Backed Audit of SWE-Gym

We audit the 2,265 usable, de-duplicated tasks among SWE-Gym’s 2,438 with Claude Opus 5.5 and GPT-6.1 Sol (Figure 2). Each model and its coding agent form a family, Claude or GPT (Appendix § 11). After screening each task’s environment and statement, the audit follows one principle: no error verdict rests on judgment alone. Every suspected error must be reproduced by execution. The tests must reject a concrete alternative fix, or a counterexample must expose a concrete patch. Whether the alternative is reasonable remains an LLM judgment, made by the family that wrote it and, when the two families disagree, by both.

False Negatives: Judge Every Assertion, Then Execute a Witness

Both families rate every F2P assertion against the statement. They see the test code, the gold patch, and the relevant repository code, but never a task’s pass rate or difficulty (Appendix § 11). An assertion is flagged if either family judges that it may reject a correct patch, and unflagged assertions are cleared without execution. For every flagged assertion, each family’s coding agent writes a witness, a patch that follows the statement but differs from the gold patch in the flagged detail. The agent then runs the tests on the witness in the task container. A task receives an FN verdict when one of its flagged assertions rejects a witness that the authoring family considers a reasonable reading of the statement. On 374 tasks, in most cases because the families’ ratings disagree or are unsure, each family reviews the other’s witness and the two debate, which clears 171 of them. Of the 1,091 tasks with an FN verdict, 963 are confirmed by both families and 128 are contested, upheld by only one. In 810 of the confirmed verdicts, witnesses from both families fail the same test (Table 5, Appendix § 12).

TierTasks
Confirmed by full escalation (witnesses, cross-review, debate)85
Witness mode: both families’ witnesses fail a common F2P test810
Other confirmed68
Contested (one family)128
Total with an FN verdict1,091

Table 5. Evidence behind FN verdicts (removed and repaired tasks). Of the 213 verdicts that are confirmed by full escalation or contested, 203 come from the 374 tasks in full escalation, six from witness mode, and four from cleared tasks that were escalated afterwards (a random sample and every cleared never-solved task).

Repair. We repair a task with an FN verdict rather than drop it, unless no change of the statement can repair it or the base model always solves it. As in SWE-bench Pro ([6]), a repair appends a Requirements block that states the missing requirement without revealing the solution. The F2P tests stay unchanged (one task has a relaxed test instead). A repair is accepted only if Claude Opus 5.5 and GPT-5.6 Sol, a second GPT model, find no leak (Appendix § 11) and the repaired task passes the audit again (184 of 588 attempts). Otherwise the task is removed as FN-flawed.

False Positives: Confirm by Counterexample, Then Harden

On Clean’s tasks, we collect the distinct passing patches among eight base-model samples. Both families label each patch without seeing the gold patch or the tests, and we count false positives as defined in § 3. For Clean+FP, we harden the tests by turning the confirming counterexamples into new tests. A test is kept only if it passes with the gold patch and with every patch not labelled a false positive, which leaves 493 tests on 143 tasks (Appendix § 11).

The Release and the Quality of Its Verdicts

SWE-Gym-Verified contains 1,087 tasks, 184 of them with a repaired statement. Verified means that two LLM families rated every F2P assertion and that flagged assertions were tested by execution. Humans checked a sample of the verdicts, not every task as in SWE-bench Verified. Each task records its pass count on its final statement and tests: 138 released tasks are never solved, 570 sometimes solved, and 379 always solved.

Verdict quality. Table 1 summarizes four checks of the verdicts (Appendix § 12).

Table 1. Checks of the audit verdicts. Humans: two of the authors, blind to the verdicts (“3, 1”: one count per annotator). Open: not determined by the statement or the repository. PAIChecker-marked: its annotators mark tests or patches that go beyond the issue ([27]).

CheckItemsResult
Claude and GPT flag the same tasks2,001κ=0.80\kappa= 0.80
Both humans: flagged assertion open4533
never / sometimes solved8 / 378 / 25
Each human: unflagged control open303, 1
Each human: false positive incorrect1510, 12
FN verdict, PAIChecker-marked tasks72682%
FN verdict, other tasks1,14937%
FN in a random sample of cleared tasks792

Table 1.

Experiments

Setup

Training sets. We compare three matched training sets of 512 tasks (Figure 2c). Orig is a sample of screened SWE-Gym tasks with their original statements and tests, stratified by difficulty. Clean is drawn from SWE-Gym-Verified with the same random ranking of tasks as Orig and Orig’s quota of tasks in each difficulty range. Clean and Orig therefore match in size and in base-model pass rate (49.8% and 48.3%). They share 314 tasks. Clean+FP is Clean plus the new tests. Orig is a strong baseline. Its sampling pool already excludes unusable and duplicate tasks, pull requests labelled defective, and statements rated underspecified. In addition, Orig’s share of never-solved tasks is fixed at 15%, versus 54% in the pool. Only 42 Clean tasks have a repaired statement, so comparing Clean with Orig mainly tests the removal and replacement of flawed tasks (Appendix § 13). A fourth set, Orig+Filter, applies a pass-rate filter to Orig: it re-places Orig’s 77 never-solved tasks with further sometimes-solved tasks from the same pool. It is easier than the other sets (base-model pass rate 56.8%), and 97 of its tasks are FN-flawed.

Training and evaluation. We train the base model, Qwen3.5-9B (Qwen Team, 2026), with GRPO (Shao et al., [24]) in the SWE-agent scaffold (Yang et al., [31]). Each run consists of 80 steps of 16 tasks with 8 samples each (2.5 passes over a set), and every set uses the same three seeds (Table 7, Appendix § 14). We report pass@1, the fraction of attempts that resolve a task, on two held-out benchmarks that share no repository with the training tasks. Verified-397 consists of the 397 scored tasks of SWE-bench Verified outside our 100-task development split, dev-100. For SWE-bench Pro, we use the public set of version 2 (Dan et al., [5]), which also differs from training in languages, scaffold, and budget. For each run we report the checkpoint with the best dev-100 pass@1. Results are means over three seeds, with differences in percentage points (pp).

Base modelQwen3.5-9B
ScaffoldSWE-agent
Episode budget80 tool calls, 128K context, temperature 1.0
RL algorithmGRPO with the Dr. GRPO loss [14]; KL penalty to the base model, coefficient 10−310^{-3}
OptimizationAdam, learning rate 2×10−62 \times10^{-6} (constant after 5 warm-up steps), weight decay 0.01, gradient-norm clip 1.0; 16 tasks ×\times 8 samples per step, 80 steps
Seedsseeds 1–3 for every set; Clean+FP seed KK uses the data order of Clean seed KK
Checkpoint selectionhighest dev-100 pass@1 (4 attempts) over steps 10–80, ties to the later step
dev-100100 SWE-bench Verified tasks, fixed before any GRPO run, over-sampling tasks that the base model solves about half the time; pass@1 over 4 attempts, every 10 steps
Verified-397the other 400 SWE-bench Verified tasks, 397 scored (two pass with an empty patch, one exceeds the test time limit); pass@1 over 4 attempts, training scaffold
SWE-bench Propublic set of version 2 [5], 638 of 642 tasks scored (four gold patches fail in our harness); official SWE-agent tool-use scaffold; 150 calls, 256K context; 2 attempts
Statisticsmeans over three seeds ±\pm sample standard deviation; gains over the base model paired by task
Computeone node of 8 GPUs per run; 168–401 GPU-hours per run on the three matched sets (training only)
Training stackMiles with Megatron-LM (full-parameter updates) and SGLang rollouts; AMD Instinct MI355X GPUs
Audit costat least $1.3 per audited task for LLM use (the GPT family’s agent runs are not priced)

Table 7. Training and evaluation settings.

RQ1: Where Do Label Errors Occur?

False negatives are common and concentrate on never-solved tasks. Of the 2,001 audited tasks whose assertions were judged, 1,091 (55%) receive a FN verdict. About half of these verdicts involve behaviour that the issue does not ask for. Interfaces that the statement does not specify, exact strings, and arbitrary design choices each appear in about a fifth (a verdict can have several causes). The errors are far from uniform across difficulty. In Orig, 74% of the never-solved tasks are FN-flawed, versus 20% of the sometimes-solved ones, and the share falls as the pass count rises (Fig. 1c). The contrast does not hinge on the LLM verdicts being exact. It holds with only the verdicts confirmed by both families (68% versus 13%) and under PAIChecker’s human labels of Orig’s pool (61% versus 21%; [27]). It also holds when the tasks that we repair later count as flawed (83% versus 28%), with a larger sampling budget, and among tasks with the same number of F2P tests (Table 4, Appendix § 12). Repairs test the verdicts directly. Once the missing requirement is stated, the base model’s pass count on the repaired tasks rises by 2.1 out of eight on average, versus 0.0 on unchanged tasks that are re-measured. One appended sentence takes getmoto/moto-4846 from zero to seven of eight (Appendix § 16).

Never solvedSometimes solved
FN-flawed, Orig (§5.2)74.019.5
counting repaired tasks as flawed83.128.0
counting only verdicts confirmed by both families67.512.9
tasks with one F2P test61.512.3
tasks with two or three F2P tests77.824.4
tasks with four or more F2P tests83.331.8
FN-flawed, Orig’s pool (1,413 tasks)71.318.2
Marked by PAIChecker’s annotators, Orig’s pool (1,252 labelled tasks)61.020.6

Table 4. The difficulty contrast under other definitions. Share (%) of flawed tasks among the never-solved and among the sometimes-solved tasks of each row.

False positives are common at every difficulty level. Of the 1,854 distinct patches that pass on Clean’s tasks, 26.1% are false positives under our conservative rule, and another 37.3% are undetermined (not labelled correct by both families). At every pass count, false positives are 19–36% of the passing patches (Fig. 1c), and they are spread across tasks: 224 of the 432 tasks with a passing patch have at least one.

Takeaway box

Figure 1. Takeaway 1: Unsolved often means mislabelled. A never-solved task is more likely than not to have a test that rejects correct fixes, so a zero pass rate cannot be read as hardness alone. False positives are common at every difficulty level.

RQ2: Which Label Errors Reach the Training Signal?

We trace Orig’s FN-flawed tasks through its three GRPO runs: 3,840 groups of eight samples, 2,365 of which carry gradient (Figure 3, Appendix § 15).

Figure 3. Never-solved flawed tasks are silent, but the flawed tasks that survive a pass-rate filter train the policy. (a) Training reward on never-solved tasks by audit outcome (mean over seeds). Tasks that the audit finds flawed stay unsolved, while tasks that it keeps receive reward. The five never-solved Orig tasks removed for other reasons are not shown. (b) Orig’s 142 FN-flawed tasks and their 482 gradient-carrying GRPO groups, split by whether a filter that drops never-solved tasks keeps them or removes them (hatched). The flawed tasks that the filter keeps are 16.6% of Orig’s tasks and receive 19.5% of its gradient-carrying groups. (c) One GRPO group of pandas-dev/pandas-53409: the second sentence of the warning that each sample adds. Tinted words differ from the upstream sentence.

Never-solved flawed tasks are silent. The 57 never-solved FN-flawed tasks make up 11.1% of Orig’s groups but only 0.9% of its gradient-carrying groups. Training does not rescue them. Their training reward stays at 0.8%, while the never-solved tasks that the audit keeps do receive reward (7.6% in Clean, Figure 3a). The FN raters never saw a pass rate, yet their verdicts separate the never-solved tasks that receive no reward in training from those that do. The gradient that such a task does carry can point the wrong way. In getmoto/moto-5137, the test also requires a second API that the issue never mentions. Of 40 training samples, 30 do what the issue asks but get no reward, and the only rewarded sample goes beyond the issue (Appendix § 16).

Sometimes-solved flawed tasks train the policy. The 85 sometimes-solved FN-flawed tasks make up 16.6% of Orig’s tasks and contribute 19.5% of its gradient-carrying groups (12.2% counting only verdicts confirmed by both families). To see what the flagged assertions do in these groups, we mask them in the tests and re-run the tests on the zero-reward samples of the two runs with test-level records. On the 20 of these tasks where every flagged assertion can be masked, 30% of the zero-reward samples then pass, and 26 of the 49 gradient-carrying groups contain such a sample (Appendix § 15).

A pass-rate filter removes only the silent errors. Dropping never-solved tasks ([33]) would discard 40% of Orig’s FN-flawed tasks, which looks effective. But it removes none of the sometimes-solved ones, and so only 4% of the gradient-carrying groups on FN-flawed tasks (Figure 3b). Filters on pass rate or on reward variance ((Yu et al., 2025b)) see whether a task is solved, not why it fails. Training on Orig+Filter confirms this. All-zero groups fall from 20.7% to 8.3%, yet sometimes-solved FN-flawed tasks still contribute 19.9% of the gradient-carrying groups.

What the surviving errors reward. Figure 3c shows one sometimes-solved FN-flawed task. The issue asks to deprecate literal JSON input and gives no warning text, but the hidden test requires the upstream text verbatim. In one GRPO group, every sample adds the warning. The two that pass reproduce the upstream sentence, and four others fail only this test, so the GRPO advantage favours reproducing the upstream text over fixing the issue (Appendix § 16).

Takeaway 2: Pass-rate filters keep the errors that train the policy.

Dropping never-solved tasks removes label errors that carry almost no gradient. The flawed tasks that do carry gradient are found only by checking the labels.

Do Audited Tasks Train Better Policies?

Audited data scores higher on both held-out benchmarks. Clean outperforms Orig by 2.4 pp on Verified-397 and by 2.7 pp on SWE-bench Pro (Table 2, Figure 4a). On Pro, Orig does not improve over the base model (−0.2-0.2 pp). The runs of Clean and Orig overlap on each benchmark, but averaged over the two benchmarks every Clean run gains more than every Orig run (Appendix § 15). On each benchmark, Clean − Orig remains at least 1.4 pp when any single run is left out. A pass-rate filter yields no such gain, although Orig+Filter’s tasks are easier. Orig+Filter is 1.1 pp above Orig on Verified-397 and 2.1 pp below it on Pro. On average over both, Orig+Filter gains +0.9 pp over the base model, versus +1.4 pp for Orig and +3.9 pp for Clean.

Figure 4. Audited data scores higher on both held-out benchmarks, whereas a pass-rate filter shows no such gain. (a) Gain in pass@1 over the base model at each run’s selected checkpoint, mean over seeds (+Filter: Orig+Filter). Brackets give Clean − Orig. (b) dev-100 pass@1 at every checkpoint (lines: mean over seeds; shading: ± one standard deviation for Orig and Clean; labels: mean at step 80).

Training setVerified-397SWE-bench ProGain
Base model57.253.8–
Orig60.2 ± 2.153.5 ± 2.1+1.4 ± 0.9
Orig+Filter61.3 ± 2.151.4 ± 3.0+0.9 ± 2.5
Clean62.6 ± 1.156.2 ± 1.3+3.9 ± 1.2
Clean+FP62.6 ± 1.057.3 ± 3.7+4.5 ± 2.2

Table 2. Held-out pass@1 (%) at each run’s selected checkpoint: mean ± standard deviation over three seeds. Gain: each run’s gain over the base model, averaged over the two benchmarks (pp).

The gap emerges late in training. On dev-100, where every run is evaluated at the same steps, the sets stay close through step 40 (Figure 4b). Orig peaks at step 30 (52.5%) and falls to 48.0% by step 80, while Clean ends at 53.0% and Orig+Filter at 49.3%. At step 80, every Clean run scores higher than every Orig run (Appendix § 15). Checkpoint selection therefore picks Orig at steps 20–30, near its peak, and Clean at 60–70 (Table 8).

Runckpt (dev-100)Verified-397Verified-397 Δ\DeltaProPro Δ\Delta
Base– (46.8%)57.2%–53.8%–
Clean s170 (57.5%)63.8%+6.657.4%+3.6
Clean s260 (52.5%)61.7%+4.554.8%+1.0
Clean s370 (54.5%)62.3%+5.256.5%+2.7
Orig s120 (52.2%)60.1%+3.051.6%−2.1
Orig s230 (55.8%)62.3%+5.153.2%−0.5
Orig s320 (50.0%)58.1%+0.955.7%+2.0
Orig+Filter s180 (51.0%)58.9%+1.848.0%−5.7
Orig+Filter s240 (54.8%)62.7%+5.553.6%−0.2
Orig+Filter s350 (53.0%)62.3%+5.152.6%−1.2
Clean+FP s160 (53.5%)63.0%+5.855.6%+1.8
Clean+FP s240 (53.5%)61.4%+4.254.9%+1.1
Clean+FP s380 (53.5%)63.3%+6.161.6%+7.8

Table 8. Table 8. Per-run results. pass@1 in %; Δ\Delta: paired difference from the base model (pp). Pro: two attempts. ckpt: selected step (dev-100 pass@1 at that step, the best of the run’s eight checkpoints). The three Clean+FP runs happen to have the same dev-100 score. Δ\Delta is computed from unrounded values. The Clean+FP runs belong to RQ4.

What explains the gain. The gain does not come from more gradient-carrying groups. Orig+Filter has the most (70.8%, versus 65.9% for Clean and 61.6% for Orig), yet it gains no more than Orig. Among the remaining differences (Table 6), two follow from the audit. First, a fifth of Orig’s and of Orig+Filter’s gradient-carrying groups fall on tasks whose tests reject correct fixes (§5.3). Second, Clean’s never-solved tasks are audited tasks with attainable reward. They contribute 6.9% of its gradient-carrying groups, versus 2.6% for Orig’s never-solved tasks and none in Orig+Filter. Our runs cannot disentangle the two.

CleanOrigOrig+FilterSWE-Gym-Verified (trainable)
Tasks (never / sometimes solved)77 / 43577 / 4350 / 512138 / 570
Repaired statements42 (8.2%)0020.9%
Mean base pass rate49.8%48.3%56.8%
Median statement length (chars) / F2P tests2,353 / 12,040 / 2
Repository mix, Clean vs. Orig (TV distance)5.3%
Training reward (%)57.8 ± 0.752.1 ± 2.060.6 ± 1.8
on the 314 tasks shared by Clean and Orig68.0 ± 1.766.0 ± 2.5
Gradient-carrying groups65.9%61.6%70.8%
Orig only (198): removed by the audit (156); audit unfinished when Clean was sampled (30); 8/8 after repair (11); other (1).
Clean only (198): not in Orig’s pool (53); difficulty changed after repair (14); beyond Orig’s quota in rank order (131).

Table 6. The training sets. Top: composition (release: trainable tasks, 0/8–7/8). Bottom: why a task is in only one of Clean and Orig (the first reason that applies). Training reward: mean ± standard deviation over seeds. TV: total variation.

Takeaway 3: Audited tasks train better policies.

At equal size and matched difficulty, audited tasks score higher on both held-out benchmarks. A pass-rate filter shows no such gain, so in our runs it does not substitute for auditing the labels.

RQ4: Does Hardening Against False Positives Change the Policy?

We train on Clean+FP with Clean’s seeds and task order. The new tests target regressions, cover 143 of the 512 tasks, and catch 25% of the false positives in a sample of passing training patches (Appendix § 15).

The policy barely adapts to the new tests. On the hardened tasks, Clean+FP’s training reward is about 13 pp below Clean’s throughout training, while the reward on other tasks stays close to Clean’s (Figure 5a, Figure 5b). A drop is expected even if the policy does not change, since the new tests reject patches that the old ones accept. We therefore re-grade the passing patches of the Clean runs, which never saw the new tests. Re-grading lowers Clean’s reward by about as much, so averaged over training the Clean+FP policy passes the new tests only 0.4 and 1.8 pp more often than the Clean policy would (two seeds). Nor do false positives fade. The new tests reject about 19% of Clean’s passing patches on the hardened tasks throughout training (Figure 5c).

Figure 5. Hardening lowers the reward where tests were added, about as much as re-grading predicts. (a) Training reward on the 143 hardened tasks in 20-step bins (mean ± one standard deviation over seeds). Re-graded: Clean’s patches under the new tests (two seeds). (b) The same for the 369 other tasks. (c) Share of Clean’s passing patches on the hardened tasks that the new tests reject, by the ten-step bin in which a patch first appears.

Held-out pass@1 does not change detectably, and cannot show fewer false positives. Clean+FP − Clean is −0.1 pp on Verified-397 and +1.1 pp on Pro (Table 2), well within seed-to-seed variation, but three seeds cannot establish that the two sets are equivalent. Held-out pass@1 is graded by the benchmarks’ original tests, which accept false positives, so it cannot reveal whether the policy writes fewer wrong patches that pass. The concurrent Arctic-SWE reports a held-out gain from strengthening tests, in single runs on 4,889 tasks whose tests it had found too loose (Liu et al., [12]), whereas our new tests cover about a quarter of Clean+FP’s tasks.

Takeaway 4: Training reward cannot rank datasets.

New tests that catch a quarter of the false positives lower the training reward, but the Clean+FP policy passes them only 0.4 and 1.8 pp more often than the Clean policy would. Held-out pass@1 does not change detectably. Training reward is computed with the labels under study, so it cannot show which labels are better.

Discussion: What Makes Good Training Data?

For reward labels, the four answers yield three criteria. Every correct fix must obtain the reward. Most tasks that the base model never solves have a test that rejects correct fixes, so filters and curricula that read a zero pass rate as hardness act largely on label errors. The reward must vary for the right reason. The label errors that train the policy lie in tasks whose samples receive different rewards, so filters on pass rate or on reward variance (Yu et al., 2025b) cannot detect them. Quality must be measured on held-out tasks, at matched size and difficulty. Orig+Filter attains the highest training reward of all sets (Table 6) but shows no held-out gain over Orig on average. Clean’s training reward exceeds Orig’s partly because flawed tests cap Orig’s reward. Clean+FP attains a lower training reward than Clean (Figure 5a) but shows no detectable held-out difference.

Two questions stand out. The first is how to remove false positives. Counterexample tests catch a quarter of them, and our 484 false positives with executed counterexamples can serve as a benchmark for verifiers that go beyond tests. The second is how cheap an audit can be. Without execution, Claude’s rating alone matches the final verdict on 91% of the tasks and GPT’s on 95% (Appendix § 12), but whether one such pass suffices for RL is untested.

Limitations. We study one base model, scaffold, RL recipe, and task source, with three seeds per set and an 80-step budget. A task’s difficulty is relative to this model and its sampling budget. Clean and Orig differ in the tasks that the audit removes, repairs, and replaces, so RQ3 measures these effects jointly. The verdicts are LLM judgments backed by execution and checked on 105 items by two of the authors (Appendix § 12). FN detection covers only F2P assertions, and the counts of false positives cover only regressions. The held-out benchmarks can still contain label errors of both kinds ([19, 5]). We assume that these errors affect all training sets alike.

Conclusion

In RL for coding agents, the hidden tests label every patch, and in SWE-Gym these labels are often wrong. Of the tasks that we judged, 55% have a test that rejects correct fixes. The errors that a pass-rate filter keeps are the ones that carry gradient. Models trained on audited tasks score 2.4 and 2.7 points higher on the two held-out benchmarks than models trained on the original tasks, whereas filtering the original tasks by pass rate shows no such gain. It remains open whether these findings hold at larger scale and for other models, whether repair outperforms removal, and how to remove false positives. SWE-Gym-Verified, its audit records, our training sets, and the audit pipeline support work on these questions.

Impact Statement

This work aims to make RL data for coding agents more reliable. Removing FN-flawed tasks avoids spending roll-outs on tasks whose tests reject correct patches, and hardening tests against false positives reduces the reward that a policy can obtain with patches that only look correct, a form of reward hacking. Releasing per-task audit records lets others check and contest individual verdicts instead of trusting aggregate filters. Like other work on training coding agents, ours carries the usual dual-use concerns: more capable agents can write harmful code or automate work with economic consequences for developers. Our tasks come from public open-source repositories and their public issues, as in SWE-Gym, and we add no personal data. The audit relies on LLM judges whose biases we cannot fully characterize, so we release every verdict with its evidence and report contested cases neutrally (Appendix § 16).

AI Disclosure Statement

Generative AI in the method. LLMs are part of the audit that this paper reports, and § 4 and Appendix § 11 describe their use and give the model versions. Models of two families, Claude and GPT, screen statements, rate every F2P assertion, write and run witness patches, review each other’s witnesses, write and check statement repairs, label passing patches, and write the counterexamples that become new tests; a separate LLM reviewer agent audited a sample of the rejections of these tests (Appendix § 11). We do not take these outputs on trust: the audit backs its verdicts with executed witnesses and counterexamples, two of the authors labelled a blind sample of verdicts without AI assistance (§ 4.3, Appendix § 12), and we release the final version of every prompt and every verdict with its executed evidence.

Generative AI in preparing the paper. We conceived the study, chose its research questions, designed the audit and the experiments, and interpreted the results. We used generative AI tools for three tasks: to edit our drafts of the manuscript for wording; to write and restyle the plotting scripts of the figures, which plot numbers from our experimental records; and to review drafts critically, after which we decided what to change.

Appendix

Released Artifacts

We release the data of this study in five parts.

  • (i) SWE-Gym-Verified: every released task with its final statement (repaired statements marked), its graded F2P and P2P tests, its difficulty for this base model and budget, its evidence tier (Table 5), and its audit flags.

  • (ii) Per-task audit records for every task with a finished audit: both families’ verdicts, witness patches with their execution outcomes, removal reasons, and repairs.

  • (iii) The four training sets, with the sampling frames and samplers that reproduce Orig, Clean, and Orig+Filter, and the Clean+FP test patches with their construction records.

  • (iv) The outcome of every held-out attempt of every reported run, with dev-100 at all eight checkpoints.

  • (v) The code of the full audit pipeline with the final version of every prompt, the training and evaluation configurations, and a datasheet.

The dataset is at https://huggingface.co/datasets/Arist12/SWE-Gym-Verified, the code and the experiment files at https://github.com/Arist12/SWE-Gym-Verified, and a blog post with the main results and case studies at https://arist12.github.io/writing/swe-gym-verified/. The release flags 53 tasks whose issue contains the full solution or whose F2P tests appear unrelated to the issue; a strict subset without them has 1,034 tasks, including 495 of Clean’s 512. The data is meant for training and for studying reward errors, not for evaluation. Task records are versioned so that a verdict can be corrected when others dispute it. Our additions and our code are released under the Apache License 2.0; issue text and repository code keep their original terms.

Audit Pipeline Details

Stages. The pre-screen drops duplicates and tasks with unusable images, title-only statements, or execution failures. The environment stage runs the gold and empty patches offline and removes tasks whose gold patch fails, whose tests need the network, or whose F2P tests are flaky; it also truncates each container’s git history to the task’s base commit, so that a fix cannot be read from later history. The screening stage removes empty or link-only statements, pull requests that PAIChecker’s human annotations (Wang et al. [27]) label as defective, and statements that both families find misleading relative to the tests. A further screen flags tasks whose issue contains the full solution, and these tasks stay in the release (Appendix § 10). For the 140 tasks without a PAIChecker label, Claude Opus 5.5 makes this judgment and removes six. FN-flawed tasks that the base model always solves (8/8) are removed without a repair attempt, because always-solved tasks are not used for training; always-solved tasks without an FN verdict stay in the release. Figure 2b gives the removals by stage. FN detection removes 471 tasks that no change of the statement can repair: most of them (310) by both families’ judgment, and nearly all others because the test needs a private name or an internal module, or checks a mock’s calls. Of the 404 tasks removed at repair, 341 failed one of the repair checks or the blind attempt (Repair, below), 32 failed the re-audit, and for 31 no repair could be written.

Models and interfaces. The audit uses Claude Opus 5.5 and GPT-6.1 Sol. The GPT family has a second model, GPT-5.6 Sol. It is one of the two leak judges of the repair checks and rates statement quality for Orig’s pool (Appendix § 13). The API identifiers are claude-opus-5-5, gpt-6.1-sol, and gpt-5.6-sol, without a snapshot date. Table 3 gives the models and the interface of each step. It leaves out the reviewer agent of the hardening step (below), which ran as a separate agent session. The screens, the ratings, the P2P judgments, the repair writer, the mapping and leak checks, and the FP labels are API calls. Claude is called through the Anthropic Messages API with adaptive thinking, and the GPT models through the OpenAI Responses API. Every call asks for reasoning effort high, sets no sampling parameter, and allows 32,000 output tokens (8,000 in the statement-quality filter). Witnesses, cross-reviews, debates, the judgment whether a statement change can repair a task, and the blind attempts at repaired tasks (Repair, below) are agent runs. Claude Opus 5.5 runs in Claude Code 2.1.295 and GPT-6.1 Sol in Codex CLI 0.156.1, both at reasoning effort high. The agent process runs outside the task container. Each of its commands runs in a fresh container of the task image without network access, with two CPUs, 8 GB of memory, and a limit of 900 s. A blind attempt keeps one such container for the whole run. A run that executes a command anywhere else is discarded and repeated once. A witness run may take 90 minutes, a review or a debate 45, and a repair judgment 60, within a time budget per task (two hours for most tasks). All calls and agent runs reach the models through an API gateway of our institution. The statement-quality filter ran on 6 and 7 October 2026, the audit from 13 to 15 October, and the FP labelling from 19 to 21 October (UTC).

StepModelsInterface
Screen for empty or link-only statements; defective-PR check of unlabelled tasksClaude Opus 5.5API
Solution-in-issue and misleading-statement screensbothAPI
FN rating of every F2P assertionbothAPI
Witness, cross-review, debatebothagent
Judgment of a P2P test that rejects a patch passing all F2P testsbothAPI
Judgment whether a statement change can repair a taskbothagent
Repair writerClaude Opus 5.5API
Repair check: requirement mappingbothAPI
Repair check: leak judgesClaude Opus 5.5, GPT-5.6 SolAPI
Blind attempt at a repaired task (only in part of the audit)Claude Opus 5.5agent
FP labels with counterexample scriptsbothAPI
Statement-quality filter of Orig’s pool (Appendix § 13)GPT-5.6 SolAPI

Table 3. Models and interfaces of the audit. Both: Claude Opus 5.5 and GPT-6.1 Sol. Agent: Claude Code or Codex CLI.

FN detection. Both families rate every F2P assertion. They see the statement, the issue discussion (marked as not visible to the task-solving agent), the test source, the gold patch (marked as one possible solution), and a code-evidence pack built mechanically at the base commit. The pack shows the code that the gold patch edits, with its callers, callees, and similar code elsewhere; the repository definitions that the F2P tests use; and, for each identifier in the tests or the gold patch that the issue does not mention, whether it exists in the repository. Witness agents see the statement, the test patch, the F2P and P2P test names, and the gold patch as a reference. The FN raters and the witness agents see no pass rate, difficulty level, or training trajectory. A task’s difficulty is used only later, in the choice between repair and removal, in the repair checks, and in the choice of cleared tasks that are escalated afterwards (Table 5).

Each family scores the task: 0 if no assertion can reject a correct patch, 1 if unsure, and 2 or more if it names a reasonable alternative patch that a listed assertion would reject. If both score 0, the task is cleared without execution. If both score 2 or more (witness mode), each family’s agent writes and runs its own witness. This mode has no cross-review, so each family judges only its own witness; in 810 of the 878 verdicts confirmed in this mode, the two witnesses fail a common F2P test (Table 5). In all other cases (full escalation), each family reviews the other’s executed witness, and they debate once. A flagged assertion that already passes on the original code also sends its task to full escalation. The verdict is then confirmed if both families uphold it and contested if only one does; a task with either verdict is removed or repaired. Outside this rating, both families judge a P2P test when it rejects a patch that passes every F2P test. In three tasks, they find P2P tests that require the old behaviour.

Repair. A flagged task goes to repair unless a mechanical rule or both families’ judgment finds that no change of the statement can repair it; one such rule is that the assertion names a private symbol. The repair writer (Claude Opus 5.5) appends a few public requirements that make every flagged assertion follow from the statement, without file paths, private names, or the solution. A repair must pass four checks. First, a mechanical check confirms that the repair has no paths or private names and that its quotations are verbatim. Second, both families check that each requirement maps to a flagged assertion. Third, two leak judges, Claude Opus 5.5 and GPT-5.6 Sol, read the repair, and a flag from either fails it (GPT-5.6 Sol caught more leaks than GPT-6.1 Sol in a pilot). Fourth, if two or more base-model samples on the repaired task fail the same assertion in the same way, one of them is escalated to cross-review and debate, and the task is removed if both families confirm the error. For part of the audit, Claude Opus 5.5 also attempted the repaired task without seeing the tests (a blind attempt), and two tasks were removed because an attempt still failed a flagged assertion. The repaired task is then re-audited from scratch. On the 154 repaired tasks with a difficulty measurement on both statements, the base model’s pass count rises by 2.1 out of eight; on 92 unchanged tasks that are re-measured, it changes by 0.0. Appendix § 16 shows two repaired tasks.

FP measurement and hardening. Both families label each passing patch correct, incorrect, or uncertain. They see the statement, a code pack, and the patch, but not the gold patch or the tests. An incorrect label comes with counterexample scripts, which we run offline on the original code, the gold patch, and the candidate patch. Patches that are neither false positives nor labelled correct by both families are undetermined; they include the 172 patches that both families label incorrect but that lack an executed counterexample.

Each confirmed counterexample becomes a candidate P2P test. It is kept only if it passes on the original code and the gold patch, fails on its FP patch, and passes on every passing patch of the task that is not a false positive. A task needs at least one such patch besides the gold patch. We then split the patches that pass during Clean’s training in half per task. On the construction half, we delete every test that rejects a patch not labelled incorrect by both families. An LLM reviewer agent audited a seeded sample of the remaining rejections on that half and found 30 of 30 correct. These steps leave 493 tests on 143 tasks; the tests reject 264 of the 484 false positives of §5.2. The other 81 tasks with false positives stay unhardened, most often because all of the task’s passing patches other than the gold patch are false positives, so none of them can certify a test. The other half, the analysis half, is held out for Appendix F.

Verdict Quality

Human validation. Two of the authors labelled 105 items independently, blind to the pipeline’s verdicts and without AI assistance. The items were drawn at random within strata of audit outcome and difficulty, one per task. An FN item shows a task’s statement and one marked F2P assertion, with the repository at the base commit. It asks whether the statement or the repository determines what the assertion checks, or whether this is left open (underdetermined). Of the 75 FN items, 45 are flagged assertions and 30 are controls. Each control is the assertion of a kept task that the base model’s failing patches fail most often. An FP item shows a passing patch and asks whether it is correct. Both annotators judged 33 of the 45 flagged assertions left open: all 8 from never-solved tasks and 25 of the 37 from sometimes-solved ones (68%). The two annotators judged 3 and 1 of the 30 controls left open and 10 and 12 of the 15 false positives incorrect. Each judged 1 of the 15 patches labelled correct to be incorrect. Cohen’s κ\kappa between them is 0.89 on FN items and 0.86 on FP items.

Agreement with PAIChecker. Three of the patterns that PAIChecker’s two annotators label [27] describe tests or patches that go beyond the issue: unspecified literal, scope creep, and incomplete specification. Table 1 compares our verdicts with these labels on the 1,875 tasks that have both. On the sometimes-solved tasks, the verdicts and the labels agree less: the audit gives an FN verdict to 46% of the 123 tasks that the annotators mark and to 25% of the others. PAIChecker labels a task as a whole, whereas we rate individual assertions against the statement and the repository.

The difficulty contrast under other definitions. Table 4 repeats the contrast of §5.2 under other definitions. Among the never-solved tasks of Orig’s pool, 79.2% of those that stay unsolved in 16 further samples with a larger budget are FN-flawed, compared with 34.4% of those solved at least once.

Evidence behind FN verdicts. Table 5 splits the FN verdicts by the evidence behind them; “other confirmed” are verdicts reached in witness mode without two witnesses that fail a common F2P test. The 1,091 verdicts are seven fewer than the tasks that Figure 2b shows as removed or repaired after FN detection; the figure counts eight tasks that went through repair without an FN verdict, and it does not count one task with a verdict that was repaired by relaxing a test. In witness mode, execution shows that the tests are sensitive to the flagged detail, but only the family that wrote a witness judges whether it is a reasonable reading of the statement; only full escalation has both families judge the same executed patch. The executed witnesses differ from a passing fix in little else: 98.3% pass every P2P test, and 92.1% also pass every F2P test that contains no flagged assertion.

Agreement between families. The families agree on which tasks have a flagged assertion at κ=0.80\kappa= 0.80 (0.71 on Orig’s tasks). Claude’s rating alone agrees with the final verdict on 91.0% of the 2,001 tasks and GPT’s on 94.8%. Full escalation clears 171 of its 374 tasks. For false positives, Claude labels 705 and GPT 1,088 of the 1,854 passing patches incorrect (κ=0.50\kappa= 0.50). Both label 656 incorrect, and 484 of these have an executed counterexample. Of 79 cleared tasks escalated at random to witnesses and debate, one receives a confirmed FN verdict and a second a contested one. Neither is a sometimes-solved task.

Training Sets

Orig. The pool holds the SWE-Gym tasks with a complete difficulty measurement (eight samples) under the original statements and tests, excluding the always-solved ones: 1,413 tasks. It is de-duplicated and already excludes pre-screen removals and the pull requests that PAIChecker labels defective. A statement-quality filter also drops statements that GPT-5.6 Sol rated underspecified (2 or more on SWE-bench Verified’s 0–3 scale) or dependent on external resources. Within each difficulty level, tasks are ranked by a fixed hash of their IDs and taken in order: 77 never-solved tasks and 435 sometimes-solved ones, the latter allocated to 1/8–7/8 in proportion to the pool. Orig keeps the original statements and tests.

Clean. Clean is drawn from the 614 released tasks that are at 0/8–7/8 on the final statement and tests and whose audit had finished when Clean was sampled. Tasks are taken in Orig’s rank order, with Orig’s quotas in four difficulty ranges (0/8, 1/8–2/8, 3/8–5/8, 6/8–7/8). Where a range is short of tasks, the next-ranked tasks of the higher ranges fill it (15 tasks at 1/8–2/8). All construction rules were fixed before Clean was sampled, when no Clean training run or held-out result existed. Clean’s difficulty is measured on final statements, Orig’s on the original ones.

Orig+Filter. Orig+Filter applies a pass-rate filter to Orig’s pool: it has no never-solved task. Its 512 tasks are allocated to 1/8–7/8 in proportion to the pool and taken in Orig’s rank order, so it contains Orig’s 435 sometimes-solved tasks and the 77 that follow them. It shares 336 tasks with Clean, and 97 of its tasks are FN-flawed. We train on it with Orig’s seeds, in its own task order.

Training and Evaluation Settings

Table 7 lists the training and evaluation settings; the released configuration files give the remaining hyperparameters.

Additional Results for RQ2–RQ4

Label errors in the training signal. Over the three GRPO runs on Orig, 2,365 of 3,840 groups carry gradient: 461 of them (19.5%) fall on sometimes-solved FN-flawed tasks (12.2% counting only verdicts confirmed by both families) and 21 on never-solved ones. All rewards are zero in 20.7% of Orig’s groups (Clean: 13.9%, Orig+Filter: 8.3%), and 68.8% of Orig’s all-zero groups fall on FN-flawed tasks.

Re-grading Orig’s zero-reward samples. For every zero-reward training sample on Orig’s FN-flawed tasks, we mask the flagged assertions in the hidden tests, re-run the tests on the sample’s patch, and count the samples that now pass (seeds 1 and 3; seed 2 has no test-level records). The subset used in §5.3 consists of the tasks on which every flagged assertion can be masked, the gold patch still passes, the empty patch still fails, and no masked check is repeated unmasked. On its 29 tasks, 268 of 864 samples pass (31.0%); 28 of the 52 gradient-carrying groups and 35 of the 76 all-zero groups contain such a sample. On its 20 sometimes-solved tasks, 153 of 515 samples pass; 26 of the 49 gradient-carrying groups and 16 of the 36 all-zero groups contain one. Seed 3 stored no patch for 65 zero-reward samples of these tasks. They are not counted, and neither are the 11 groups that contain them. Over all 142 FN-flawed tasks, 19.5% of the samples pass (706 of 3,613). This share is a lower bound, because 104 of the 221 flagged assertions cannot be masked mechanically.

Comparisons across seeds. Averaged over the two benchmarks, the three Clean runs gain +5.1, +2.8, and +4.0 pp over the base model and the three Orig runs +0.4, +2.3, and +1.5 pp, so every Clean run gains more than every Orig run. On each benchmark alone, the runs of the two sets overlap, but the difference between the seed means of Clean and Orig remains at least 1.4 pp when any single run is left out. Clean outperforms Orig+Filter by 1.3 pp on Verified-397, by 4.8 pp on Pro, and by 3.1 pp on their mean. Clean’s lead on the mean remains at least 1.6 pp when any single run is left out. Whether Orig+Filter gains more than Orig depends on one run. Without Orig+Filter’s seed 1, which is 5.7 pp below the base model on Pro, Orig+Filter’s average gain is +2.3 pp instead of +0.9 pp, above Orig’s +1.4 pp. On dev-100 at the last checkpoint (step 80), the Clean runs score 54.8, 50.2, and 54.0% and the Orig runs 49.5, 45.2, and 49.2%.

False positives during RL. In a random sample of 300 passing patches from the analysis half (Appendix § 11; Clean seeds 1 and 2), 87 (29.0%) are false positives, 97 are labelled correct by both families, and 116 are undetermined. The new tests reject 25.3% of the sampled false positives; another 51.7% fall on tasks without new tests and therefore cannot be caught. On the hardened tasks, the tests reject 18.9% of the analysis half’s passing patches, and both families judge 96.1% of the rejected patches incorrect.

In each 20-step bin of Figure 5a, the re-graded Clean reward is Clean’s reward times the analysis half’s acceptance rate under the new tests, with each distinct patch weighted by the number of training episodes that produced it. Re-grading lowers Clean’s reward on the hardened tasks by 13.2 and 14.5 pp in seeds 1 and 2. The estimate assumes that the analysis half is representative of all of Clean’s passing patches. With this estimator, the Clean+FP policy passes the new tests 0.4 and 1.8 pp more often than the Clean policy would.

Case Studies

A wording test inside GRPO. pandas-dev/pandas-53409 (confirmed by both families; removed): the issue asks to deprecate literal JSON input to read_json in favour of StringIO and gives no warning text. The F2P test requires a FutureWarning matching “Passing literal json to ‘read_json’ is deprecated and will be removed in a future version. To read from a literal string, wrap it in a ‘StringIO’ object.” Both families’ witnesses word the warning differently and fail at this match; the base model passes in two of eight samples. In the task’s six GRPO visits in the two Orig runs with test-level records, 8 samples are rewarded and 15 others fail only this test; 11 of the 15 pass once the match on the message is removed.

A never-solved flawed task inside GRPO. getmoto/moto-5137 (confirmed by both families; removed): the issue asks for pagination of list_accounts_for_parent. One F2P test also requires pagination of list_organizational_units_for_parent, which the issue never mentions; both families’ witnesses paginate only the first API and fail there, and the base model never solves the task. In its five GRPO visits in the two Orig runs with test-level records, 30 of the 40 samples fail only the test of the second API. The single rewarded sample is the only one whose patch touches the second API: four groups carry no gradient, and the fifth rewards doing more than the issue asks.

A repair. getmoto/moto-4846 (confirmed by both families; a repaired task of Clean): the issue reports that removing a permission that does not exist raises no error, whereas AWS raises ResourceNotFoundException. The F2P test also requires the error message to equal “No policy is associated with the given resource.”, which the issue does not give; both families’ witnesses raise the exception with another message and fail. The repair appends one requirement, which states this message. The base model solves the original task in none of eight samples and the repaired task in seven. In iterative/dvc-4005 the missing requirement is an entry point. The issue concerns metrics and plots, but the F2P test calls DvcTree.open directly, so the repair has to name this entry point, which also tells the agent where the fix belongs. The pass count again rises from 0 to 7 of 8.

A contested verdict. Project-MONAI/MONAI-2454 (contested; removed after a repair attempt): the issue reports that ToTensor() adds a dimension to “a numpy array with 0 dims” and gives the root cause, np.ascontiguousarray, with the example np.ascontiguousarray(2). The F2P test also calls ToTensor() on the Python integer 5. A patch that special-cases zero-dimensional np.ndarray inputs fixes the array case but fails the test on the integer. One family holds that the issue reports arrays only, so the integer goes beyond it; the other holds that the issue names the root cause and shows it on an integer, so a fix that leaves integers wrong does not resolve the issue.

False positives that the new tests miss. pydantic/pydantic-8650 (hardened in Clean+FP): the issue asks that NameEmail validate from JSON. Five of the seven distinct passing patches are false positives. Of the five tests built from their counterexamples, three are discarded because they reject a further passing patch that only one family labels incorrect, and one because it rejects a training patch on which the families disagree. The test that remains rejects one of the five false positives. In the task of Fig. 1b, the new tests reject all five false positives among six passing patches.

Terms

TermMeaningDefined in
F2P / P2P teststests that must start passing / keep passing§ 3
Pass count kkpasses in 8 base-model samples: never (0), sometimes (1–7), always (8) solved§ 3
FN / FPcorrect patch rejected / wrong patch accepted§ 3
FamilyClaude Opus 5.5 with Claude Code, or GPT-6.1 Sol with Codex CLI. GPT-5.6 Sol also counts as GPT§ 4
Flagged assertionan F2P assertion that a family judges may reject a correct patch§ 4.1
Witnessa patch that follows the statement but differs from the gold patch in the flagged detail§ 4.1
FN verdictgiven to a task when a flagged assertion rejects a witness that the authoring family judges reasonable; confirmed (both families) or contested (one)§ 4.1
Repaired / FN-flaweda task with an FN verdict that a statement repair fixes / that is removed§ 3
Gradient-carrying groupa GRPO group whose rewards are not all equal§ 3
Orig / Clean / Clean+FP / Orig+Filteroriginal tasks / audited tasks / audited tasks with the new tests / original tasks, with never-solved tasks replaced by sometimes-solved ones§ 5.1
Verified-397 / dev-100397 held-out SWE-bench Verified tasks / 100 other SWE-bench Verified tasks, used for checkpoint selection§ 5.1

Table 9. Terms.

References

  1. [1]Aleithan, R., Xue, H., Mohajer, M. M., Nnorom, E., Uddin, G., and Wang, S. SWE-Bench+: Enhanced Coding Benchmark for LLMs. arXiv preprint arXiv:2410.06992, 2024.arxiv.org/abs/2410.06992
  2. [2]Badertdinov, I., Golubev, A., Nekrashevich, M., Shevtsov, A., Karasik, S., Andriushchenko, A., Trofimova, M., Litvintseva, D., and Yangel, B. SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents. In Advances in Neural Information Processing Systems (NeurIPS), volume 38, 2025.arxiv.org/abs/2505.20411
  3. [3]Badertdinov, I., Nekrashevich, M., Shevtsov, A., and Golubev, A. SWE-rebench V2: Language-Agnostic SWE Task Collection at Scale. In Proceedings of the 43rd International Conference on Machine Learning (ICML), volume 306 of Proceedings of Machine Learning Research, pp. 4820–4843, 2026.arxiv.org/abs/2602.23866
  4. [4]Chowdhury, N., Aung, J., Chan, J. S., Jaffe, O., Sherburn, D., Starace, G., Mays, E., Dias, R., Aljubeh, M., Glaese, M., Jimenez, C. E., Yang, J., Ho, L., Patwardhan, T., Liu, K., and Madry, A. Introducing SWE-bench Verified. OpenAI blog, 13 August, 2024. URL https://openai.com/index/introducing-swe-bench-verified/. Updated 24 February 2025.
  5. [5]Dan, S., Da, J., Bhutani, S., Calvo, M. R., Guevara, I., Carabedo, F., Bernal, J., Reyna, J., Mendez, L. L. M., Liu, Y., and Zhang, D. Y. SWE-Bench Pro V2: A Cleaner, Harder-to-Game Coding Benchmark. arXiv preprint arXiv:2610.24206, 2026.arxiv.org/abs/2610.24206
  6. [6]Deng, X., Da, J., Pan, E., He, Y. Y., Ide, C., Garg, K., Lauffer, N., Park, A., Rane, C., Sampath, K., Krishnan, M., Kundurthy, S. R., Hendryx, S. M., Wang, Z., Zhang, C. B. C., Jacobson, N., Liu, B., and Kenstler, B. SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? In Proceedings of the 43rd International Conference on Machine Learning (ICML), volume 306 of Proceedings of Machine Learning Research, pp. 23917–23934, 2026.arxiv.org/abs/2509.16941
  7. [7]Egashira, K., Vero, M., Dekoninck, J., Dorner, F. E., Staab, R., and Vechev, M. Delay, Plateau, or Collapse: Evaluating the Impact of Systematic Verification Error on RLVR. In Conference on Language Modeling (COLM), 2026.arxiv.org/abs/2605.02909
  8. [9]Jain, N., Singh, J., Shetty, M., Zhang, T., Zheng, L., Sen, K., and Stoica, I. R2E-Gym: Procedural Environment Generation and Hybrid Verifiers for Scaling Open-Weights SWE Agents. In Conference on Language Modeling (COLM), 2025.arxiv.org/abs/2504.07164
  9. [10]Jimenez, C. E., Yang, J., Wettig, A., Yao, S., Pei, K., Press, O., and Narasimhan, K. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2310.06770
  10. [12]Liu, B., Wang, Y., Lian, X., Shu, F., Li, S., Yan, F., Zhang, M., He, Y., and Yao, Z. Arctic-SWE: Revisiting the Long Horizon Agent Training by Modeling-System Co-Design. arXiv preprint arXiv:2610.24914, 2026.arxiv.org/abs/2610.24914
  11. [13]Liu, J., Xia, C. S., Wang, Y., and Zhang, L. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pp. 21558–21572, 2023.
  12. [14]Liu, Z., Chen, C., Li, W., Qi, P., Pang, T., Du, C., Lee, W. S., and Lin, M. Understanding R1-Zero-Like Training: A Critical Perspective. In Conference on Language Modeling (COLM), 2025.arxiv.org/abs/2503.20783
  13. [15]Luo, M., Jain, N., Singh, J., Tan, S., Patel, A., Wu, Q., Ariyak, A., Cai, C., Venkat, T., Zhu, S., Athivaraktun, B., Roongta, M., Zhang, C., Li, L. E., Popa, R. A., Sen, K., and Stoica, I. DeepSWE: Training a Fully Open-sourced, State-of-the-Art Coding Agent by Scaling RL. Together AI / Agentic blog, 2 July, 2025. URL https://www.together.ai/blog/deepswe.
  14. [16]Northcutt, C. G., Athalye, A., and Mueller, J. Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks (NeurIPS Datasets and Benchmarks), volume 1, 2021.arxiv.org/abs/2103.14749
  15. [17]Oliva, G. A., Rajbahadur, G. K., Bhatia, A., Zhang, H., Chen, Y., Chen, Z., Leung, A., Lin, D., Chen, B., and Hassan, A. E. SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimation. In Proceedings of the 40th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 2325–2337, 2025.arxiv.org/abs/2507.09108
  16. [18]OpenAI. Separating Signal from Noise in Coding Evaluations. OpenAI blog, 8 July, 2026a. URL https://openai.com/index/separating-signal-from-noise-coding-evaluations/.
  17. [19]OpenAI. Why SWE-bench Verified No Longer Measures Frontier Coding Capabilities. OpenAI blog, 23 February, 2026b. URL https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/.
  18. [20]Pan, J., Wang, X., Neubig, G., Jaitly, N., Ji, H., Suhr, A., and Zhang, Y. Training Software Engineering Agents and Verifiers with SWE-Gym. In Proceedings of the 42nd International Conference on Machine Learning (ICML), volume 267 of Proceedings of Machine Learning Research, pp. 47717–47737, 2025.arxiv.org/abs/2412.21139
  19. [22]Rad, A., Filom, K., Keivan, D., Mohajerin Esfahani, P., and Kamalinejad, E. Rate or Fate? RLV∇R: Reinforcement Learning with Verifiable Noisy Rewards. In Proceedings of the 43rd International Conference on Machine Learning (ICML), volume 306 of Proceedings of Machine Learning Research, pp. 102933–102973, 2026.arxiv.org/abs/2601.04411
  20. [23]Shao, R., Li, S. S., Xin, R., Geng, S., Wang, Y., Oh, S., Du, S. S., Lambert, N., Min, S., Krishna, R., Tsvetkov, Y., Hajishirzi, H., Koh, P. W., and Zettlemoyer, L. Spurious Rewards: Rethinking Training Signals in RLVR. In Proceedings of the 43rd International Conference on Machine Learning (ICML), volume 306 of Proceedings of Machine Learning Research, pp. 110167–110207, 2026.arxiv.org/abs/2506.10947
  21. [24]Shao, Z., Wang, P., Zhu, Q., Xu, R., Song, J., Bi, X., Zhang, H., Zhang, M., Li, Y. K., Wu, Y., and Guo, D. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  22. [25]Swayamdipta, S., Schwartz, R., Lourie, N., Wang, Y., Hajishirzi, H., Smith, N. A., and Choi, Y. Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamics. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 9275–9293, 2020.arxiv.org/abs/2009.10795
  23. [26]Wang, B., Zhang, C., Liu, D., Zhang, J., Chen, J., Li, M., Chen, M., Fang, R., Zhang, S., Wang, X., Jing, Y., Ma, Z., and Cui, Z. The Verification Horizon: No Silver Bullet for Coding Agent Rewards. arXiv preprint arXiv:2606.26300, 2026a.arxiv.org/abs/2606.26300
  24. [27]Wang, M., Xu, J., and He, P. PAIChecker: Uncovering and Checking PR-Issue Misalignment in SWE-Bench-Like Benchmarks. In Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 3315–3327, 2026b.arxiv.org/abs/2607.28587
  25. [28]Wang, Y., Pradel, M., and Liu, Z. Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study. In Proceedings of the IEEE/ACM 48th International Conference on Software Engineering (ICSE), pp. 169–181, 2026c.DOI
  26. [29]Wang, Z., Liu, S., Sun, Y., Ding, M., and Li, H. Code-Contests+: High-Quality Test Case Generation for Competitive Programming. In Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 5576–5600, 2025.
  27. [31]Yang, J., Jimenez, C. E., Wettig, A., Lieret, K., Yao, S., Narasimhan, K., and Press, O. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, pp. 50528–50562, 2024.arxiv.org/abs/2405.15793
  28. [32]Yang, J., Lieret, K., Jimenez, C. E., Wettig, A., Khandpur, K., Zhang, Y., Hui, B., Press, O., Schmidt, L., and Yang, D. SWE-smith: Scaling Data for Software Engineering Agents. In Advances in Neural Information Processing Systems (NeurIPS), volume 38, 2025.arxiv.org/abs/2504.21798
  29. [33]Yang, Z., Wang, S., Fu, K., He, W., Xiong, W., Liu, Y., Miao, Y., Gao, B., Wang, Y., Ma, Y., Li, Y., Liu, Y., Hu, Z., Zhang, K., Wang, S., Chen, H., Sung, F., Liu, Y., Gao, Y., Yang, Z., and Liu, T. Kimi-Dev: Agentless Training as Skill Prior for SWE-Agents. In International Conference on Learning Representations (ICLR), 2026.arxiv.org/abs/2509.23045
  30. [37]Zhong, Z., Raghunathan, A., and Carlini, N. ImpossibleBench: Measuring LLMs’ Propensity of Exploiting Test Cases. In International Conference on Learning Representations (ICLR), 2026.arxiv.org/abs/2510.20270

Paper details

vlnc:W_367tq826
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents