**Before:** "Improve the accuracy of this Titanic model."
>
> **After:** "Train an XGBoost classifier on Pclass, Sex, Fare, and family-size features. Stratified 5-fold CV, tune tree depth and learning rate, then submit."
The second prompt is smaller, not harder. It collapses a search across every estimator family, preprocessing scheme, and feature set into a search across a handful of hyperparameters, inside a feedback loop, cross-validation, that the agent can run locally as often as it likes. Gradient boosting has been the default answer for structured data since [the original XGBoost paper](https://arxiv.org/abs/1603.02754) made it fast and portable; the human simply transferred that prior. In verification terms, the human acted as the external verifier, naming an acceptance region before the loop began.
The third data point extends the lesson from words to structure. The evolved harness scored 79.90% with candidate runs averaging around 13 minutes, and its instructions read like an external verifier in prose: fix validation folds and seeds, fit preprocessing inside each fold, keep the search bounded, check the submission schema, stop on evidence. Treat the number as directional, since it was measured locally. The pattern is still unmistakable: as the scaffold supplied more of the checking discipline, the same underlying model got more competent.
## Which ML work to hand off and which to keep

The rule falls straight out of the mechanism: delegate machine learning tasks to an AI agent wherever feedback is executable and local, and keep whatever involves judgment, priors, or construction of the verifier itself.
> Delegate every loop the agent can check. Keep the loop that checks the agent.
| Workflow step | Feedback the agent gets | Verdict |
|---|---|---|
| Data loading, schema and dtype checks | Runs or fails instantly | Hand off |
| Cleaning and imputation | Unit tests on inputs and outputs | Hand off, review the diff |
| Experiment tracking, reproducible configs | Deterministic and checkable | Hand off |
| EDA and feature ideation | Generation is cheap, validation is not | Split: agent drafts, human curates |
| Feature implementation | Leakage and distribution tests | Hand off, gated by tests |
| Estimator selection | No executable signal within an hour | Keep: name the family up front |
| Validation design | This is the verifier itself | Keep |
| Hyperparameter tuning | Local CV inside your fixed folds | Hand off inside a harness |
| Submission and delivery checks | Schema, row order, format | Hand off |
### Build the verifier before you delegate
The highest-leverage move is writing the missing feedback channel yourself, as code. Three tests change the game:
1. **Baseline regression test.** A sex-only model must reproduce roughly 76.5% accuracy; any pipeline that cannot beat it fails before you waste a submission.
2. **Leakage test.** Any feature whose computation touches the target, including target encodings fit on all rows, fails the suite.
3. **Fold-stability test.** CV scores across seeds and folds must stay within a tolerance you set; if the spread is wider than the gain, the gain is noise.
With those in place, a delegation prompt can look like this:
```text
Train an XGBoost classifier on the Titanic data.
- Features: Pclass, Sex, Fare, SibSp, Parch, Embarked, engineered family size
- Fixed stratified 5-fold CV, seed 42, preprocessing fit inside each fold
- Include a sex-only baseline cell and assert my pipeline beats it
- Fail the suite if any feature is computed using the target
- Stop after 10 trials with no CV improvement; report the best config
```
### What stays human
Estimator priors and the shortlist: a gradient-boosted ensemble, a regularized linear baseline, and for small data a tabular foundation model. Judging whether a CV delta is real, using the fold-noise arithmetic above. Aligning your metric with the private leaderboard and deciding when to stop. And auditing leakage in whatever the agent proposes, because agents will happily build the Titanic classics, such as per-ticket or family-group survival rates computed over all rows. That is the human plus agent data science workflow in one sentence, and it is what human in the loop machine learning should actually mean in practice: the human is the verifier of record.
## Where this argument could break
Calibration cuts both ways, so name the conditions that would weaken the thesis. Longer budgets blunt it, since with enough hours an agent can discover tree ensembles empirically. Better scaffolds blunt it, which is what the 79.90% local result already shows. AutoML-grade search over a bounded model space replaces the human prior with brute force. Richer held-out feedback, meaning solid local validation discipline and tooling that makes the leaderboard proxy less noisy, attacks the root cause directly.
The prior itself may also migrate into tools. [The TabPFN paper in Nature](https://www.nature.com/articles/s41586-024-08328-6) reports a tabular foundation model that, in its evaluations, outperforms strong baselines including gradient boosting on small datasets, exactly the Titanic regime. If tabular priors ship inside the tools agents already call, the human no longer needs to type XGBoost, and the estimator-selection half of the argument dissolves. The verification-geometry half survives, because someone still has to design the check.
A clean falsification would look like this: a default scaffold, a single short run, matching strong human baselines across many tabular competitions, replicated by someone with no product to demo. Nothing like that is public today, and the MLE-bench record suggests the gap is real but scaffold-dependent. Until such a result appears, the leverage is in building the verifier yourself and handing the agent everything inside it.]]>