Manuscript Offprint

arXiv:2610.23134

MetaCurate: Evolving Curation Filters for High-Quality Agentic Coding Data

Donghoon Kim, Seunghyuk Oh, Kevin Galim, Minseo Kim, Minjae Lee, Younghyun Kim, Wooseok Seo, Hyung Il Koo, Wonjun Kang

ABSTRACT

Supervised fine-tuning (SFT) on agent trajectories is an effective way to improve coding agents, but selecting useful training examples requires more than identifying successful runs. A resolved patch may follow inefficient reasoning or unnecessary tool use, while a failed run may still contain useful intermediate steps. Training pipelines therefore rely on rules and qualitative assessments to filter trajectories, yet designing these filters typically requires substantial human expertise, and validating improvements through repeated training and evaluation is expensive. We introduce METACURATE, a training-free framework that evolves executable trajectory curation filters using pairwise LLM judgments. Disagreements between the filter's rankings and the judge's preferences provide targeted feedback for jointly revising its rules, rubric, and aggregation policy. The resulting filter scores trajectories independently, so pairwise comparisons are required only during search. Starting from a blank filter, METACURATE autonomously discovers a curation strategy that achieves competitive downstream performance without task-specific handwritten criteria. We validate downstream utility through controlled SFT experiments on our uncurated trajectory pool and the Nemotron v3 SWE dataset, with random selection and hand-authored filtering as baselines. In our experiments, METACURATE achieves the highest mean SWE-bench Verified score among the compared methods, including hand-authored rule-based filtering and a training-loop baseline whose search costs 3.5×3.5 \times as much.

1 INTRODUCTION

Large language models (LLMs) have made rapid progress in coding, surpassing top human experts on some competitive programming benchmarks (Li et al., 2022). While early work focused mainly on generating code from a task description in a single response (Chen et al., 2021), coding agents now solve tasks through repeated interaction with an environment (Shen et al., 2026; Ludwig et al., 2026). Approaches such as ReAct (Yao et al., 2023) interleave reasoning with action, providing a framework for the repository exploration, code editing, and test-driven revision involved in agentic software engineering (Jimenez et al., 2024; Yang et al., 2024). Recent work has extended this iterative problem-solving capability to the model-training process itself, so that agents construct training data, launch training runs, and use evaluation results to design the next experiment, taking on research tasks previously carried out by humans (Rank et al., 2026; Yu et al., 2026; Yano et al., 2025; Karpathy, 2026).

Improving a model for agentic coding involves two separate steps: obtaining trajectories and choosing which of them to learn from (Zeng et al., 2026; Liu et al., 2026). Supervised fine-tuning (SFT) provides a practical route to transferring capable agent behavior without repeated on-policy environment interactions during optimization (Shen et al., 2026; Pan et al., 2025; Peng et al., 2026). The most common selection rule keeps only the trajectories whose final patch passes the tests (i.e., rejection sampling; see Fig. 1, Outcome-only) (Yang et al., 2025; Blakeman et al., 2026). Yet a trajectory that resolves a repository-level issue may still contain redundant exploration, malformed

*Equal Contribution. Emails: {dhkim, seunghyukoh}@furiosa.ai.

Figure

Figure 1: Comparison of four approaches to selecting agent trajectories for SFT. Outcome-only filtering can retain poor reasoning that leads to a correct patch and discard useful reasoning that ends in failure. No-Loop curation applies a fixed rule-based or LLM-based filter without feedback on the selected data. Train-and-Validate uses downstream training and evaluation to revise the selection, requiring a training run for each candidate. METACURATE iteratively revises the curation filter using pairwise judge feedback, without model training during search.

tool calls, or unproductive edit-and-test loops (Liu et al., 2025; Zhao et al., 2026), and a failed one may still contain a sound diagnosis or a useful test (Lv et al., 2026; Slinko et al., 2026). Deciding what to keep as training data requires judging the quality of the problem-solving process together with its outcome (Han, 2026; Raoof et al., 2026).

In practice, agentic SFT curation supplements outcome labels with deterministic rules and LLM-based filtering (Blakeman et al., 2026; Team et al., 2026; Lab et al., 2026). Hand-authored rule-based filters (i.e., code-based filters) can flag recognizable failure patterns, but they are limited to behaviors specified in advance (Blakeman et al., 2026). LLM-based filters can assess qualitative aspects of a trajectory, but the quality of their judgments depends on the prompt and rubric (see Fig. 1, No-Loop) (Pang et al., 2025; Kwok et al., 2026). These choices need to be validated on the target pool, yet filters are often written once and applied without such a check.

Recent work improves the curation strategy itself automatically (Wang et al., 2026a; Khan et al., 2025; Huang et al., 2026b; Yang et al., 2026a). A common approach in this line of work trains a model on the selected data and uses its failures or scores to guide the next revision (see Fig. 1, Train-and-Validate) (Wang et al., 2026a; Meng et al., 2026). These downstream results provide direct feedback on the selected data's utility, but obtaining them for each candidate requires another training run (Lim et al., 2026; Kang et al., 2026). This raises a complementary question: can we iteratively improve a filter from diagnostics and comparative feedback on real trajectories without training a model inside the search loop?

We propose METACURATE, a training-free framework that iteratively improves an SFT data-curation filter (see Fig. 1, MetaCurate). METACURATE evaluates candidate filters by comparing their rankings of trajectory pairs with an LLM judge's preferences for SFT usefulness. Each pair gives the judge a reference for relative quality, which can be more discriminating than rating either trajectory on an absolute scale (Zhang et al., 2026; Yang et al., 2026c). Because judging pairs is much cheaper than training a model for each candidate (Wang et al., 2026a; Kang et al., 2026), the search can gather many comparisons per iteration. Judgments on exploration pairs also guide revision: each disagreement identifies a pair the candidate orders differently from the judge and comes with a rationale. To make selection scalable to larger datasets, we use pairwise judgments to evolve a pointwise filter.

Using this feedback, METACURATE runs an agentic search over the filter itself. At each iteration, a proposer (i.e., LLM coding agent with access to the run directory) reads the current filter, its mis-ranked trajectory pairs and judge rationales, and diagnostics of criterion health, and proposes revised candidates. A solver executes each candidate on sampled trajectories, while pairwise judgments ac-cumulated during exploration provide feedback for subsequent revisions. A revision is adopted only when its ranking improves agreement with the judge on fixed selection pairs by more than expected scoring noise. Crucially, no target model is trained during this search: pairwise comparisons supervise only the optimization of the filter. Once search is complete, the final filter independently scores every trajectory in the full pool, requiring neither a comparison partner nor an LLM pairwise judgment at deployment time.

We evaluate whether the improvements in concordance achieved by this search translate into better training-data selection. To this end, we generate and release a corpus of 4,286 coding-agent trajectories with DeepSeek V4 Pro (Xu et al., 2026) from 1,415 distinct GitHub issue IDs (Badertdinov et al., 2025; 2026; Pan et al., 2025). On this corpus and the 17,220-trajectory Nemotron v3 SWE-SFT pool (Blakeman et al., 2026), we conduct controlled SFT experiments with random selection as a control. On both pools, data selected by the evolved filter yields the best observed mean SWE-bench Verified scores among the compared methods: 64.0% and 56.5%, respectively. These results support improving the scoring instruction itself as a way to select effective training data without placing model training inside the search loop.

References (62)