arXiv:2610.28798cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.28798

An Explicit Feedback Contract for Iterative ML-Agent Harnesses

Kehui Yao, Chuanbo Hu, Jiao Chen, Ramin Giahi, Reza Yousefi Maragheh, Lalitesh Morishetti, Ziwei Hong, Yiyun Su, Jianpeng Xu, Evren Korpeoglu, Kannan Achan

Abstract

Iterative ML agents develop models by editing code, running experiments, reading a validation score, and choosing what to try next. In current harnesses this loop is served by an exact validation score returned after every attempt, which leaves the validation split open to adaptive selection. In this work, we introduce an explicit feedback contract for ML-agent harnesses, which specifies what an agent may observe, when iteration should stop, and when the test split may be touched. The contract releases a validation score only when a submission clears a noise threshold computed from the paired standard error, so no margin has to be tuned. We ran experiments on click-through-rate prediction, learning to rank, and a control task with no signal to find. The control is the sharpest case, because the true gain there is zero by construction: an agent reading exact scores ended by reporting a gain of 0.0157, while under the contract it reported 0.0033. On both real tasks the contract narrows the validation-test gap, and test performance is slightly higher rather than lower. The largest difference is in when the agents stop. Exact feedback used its entire budget of thirty submissions on two of the three tasks, including the one where nothing can be learned, while the contract halted after four to twelve. A run that exhausts its budget is usually read as diligence. It is better read as a symptom: when the feedback channel is unbounded, noise keeps supplying improvements to chase.

1 Introduction

Language-model agents are no longer only writing code. They now run experiments: editing code, launching training runs, reading a validation score, and choosing the next edit. A growing body of systems and benchmarks evaluate this loop (Romera-Paredes et al., 2024; Jiang et al., 2025; Lu et al., 2024; Wang et al., 2026; Chan et al., 2024; Huang et al., 2024; Pinchuk, 2026). They differ in what the agent proposes but not in what it observes: an exact validation score after every attempt.

The feedback interface matters more than it appears. Each validation score is an ordinary held-out estimate, but the sequence produced by iteratively keeping score-improving edits is not (Dwork et al., 2015b). Validation scores are computed on a finite sample and carry noise. From inside the loop, a real improvement and a fluctuation of the same size look identical, and the agent keeps the edit in both cases. After enough rounds, the score it reports describes one particular split rather than the population. Figure 1 shows the effect on data where the truth is known.

This is not a hypothetical worry. Held-out accuracy inflates measurably when a benchmark is reused across a research community (Recht et al., 2019). A meta-analysis of Kaggle competitions

Figure

Figure 1: An agent iterating against a validation split whose labels have been permuted: nothing can beat the base rate, so the true gain is zero and a flat line is correct. Plotted is the gain the agent is shown after each submission, over five seeds with standard-error bands. An exact score after every attempt, as current harnesses give, produces the red curve; the contract produces the blue one. Dashed lines mark the one-shot final test gain, never visible during iteration, and dotted lines mark the mean stopping round. The blue trajectory and its final-test marker end at the mean stopping round, 10.4±4.410.4 \pm 4.4, whereas Exact continues to the 30.0±0.030.0 \pm 0.0 submission cap.

finds adaptive overfitting where submission counts are large relative to holdout size (Roelofs et al., 2019). Agents change that ratio. A competition may collect a few thousand submissions from hundreds of teams over several months. A single agent can issue as many against one validation split in an afternoon. There is no rate limit, and no one is watching for the moment the gains stop being real.

The statistical problem is well understood. Adaptive data analysis shows that a holdout can be reused when the released answers are stable, and differential privacy is one way to achieve this (Dwork et al., 2015b,a,c). There is also a matching hardness result: no efficient estimator can answer every adaptively chosen query accurately (Hardt and Ullman, 2014). Practical mechanisms therefore aim at something weaker. For leaderboards, Blum and Hardt (2015) aim at the best score so far, and reach it with a simple rule. Release a new score only when a submission beats the previous best by a margin. Otherwise repeat the old score.

An agent is different from a competition submitter in three ways that a threshold alone does not address. First, an agent can retrain and inspect intermediate files, so a contract must say which files are readable. Second, there is no closing date, so the protocol needs a stopping rule. Third, the agent works inside the repository, so anything the harness does not actively withhold—including validation predictions—can leak. These three gaps turn a single-mechanism question into a protocol-design problem.

We propose an explicit feedback contract for iterative ML-agent harnesses, and make three contributions. (1) Agent iteration is identified as a case of adaptive overfitting, and given a precise form. (2) The contract specifies what an agent may see, when it should stop, and when the test set may be used. It needs no parameter tuning, and its stopping rule is guaranteed to fire: the agent halts because no further improvement can be certified, not because a budget ran out. (3) On two real tasks and one control task, an ordinary coding agent overfits the validation data without

Line of workIterative agentBounded feedbackHeld-out reporting
Agentic ML systems
FunSearch Romera-Paredes et al. (2024)✓——
AIDE Jiang et al. (2025)✓——
AI Scientist Lu et al. (2024)✓——
Agentic recommenders Wang et al. (2026); Zhang et al. (2026)✓——
ML-agent benchmarks
MLE-bench Chan et al. (2024)✓—○
MLAgentBench Huang et al. (2024)✓—○
TML-Bench Pinchuk (2026)✓—○
Ours✓✓✓

Table 1: Positioning of this work. Iterative agent: an agent revises code and experiments in response to feedback. Bounded feedback: the information released per submission is restricted, with a stated guarantee. Held-out reporting: reported numbers come from a split never queried during development. ○ marks partial coverage.

trying to. The contract narrows the gap at no cost to final performance, and stops after a fraction of the submissions an unbounded interface uses.