Blog · Guide · 27 November 2026

ML Experiments in Parallel: One Agent per Ablation

AI agents for ML experiments work best as a fan-out: one agent per ablation or model variant, all working against the same fixed evaluation harness, with the held-out data kept where no agent can read it, each agent writing one results file tied to its own commit. The variants are independent, so they run in parallel without colliding, and the harness makes their results comparable. Where this breaks down is long GPU training and shared compute queues, which a coordination tool does not schedule. This article covers the harness, keeping the test set away from agents, the setup as a Forkit factory, and a recorded run of twelve models on the Mauna Loa CO2 record.

Why AI agents for ML experiments suit a fan-out, and where not

An ablation study or a model comparison is a list of variants that share everything else: the data, the split, the metric. Each variant is a separate piece of work with a separate result. That is the shape fan-outs handle well. Anthropic's write-up of its multi-agent research system (13 Jun 2025) reports that the system "outperformed single-agent Claude Opus 4 by 90.2% on our internal research eval," and also warns that tasks which "involve many dependencies between agents are not a good fit for multi-agent systems today." Independent variants have almost no dependencies between them.

Good fits:

  • Ablations: remove or change one component per agent
  • Model comparisons: one model family or feature set per agent
  • Hyperparameter regions, when each run is minutes on a CPU or one shared GPU
  • Data-cleaning variants scored by one downstream metric

Poor fits:

  • Training runs measured in hours or days on dedicated GPUs
  • Studies where each step depends on the last result (sequential search)
  • Anything that needs a shared GPU queue to be scheduled fairly

The same Anthropic post notes that "multi-agent systems use about 15× more tokens than chats." Cursor's Wilson Lin (20 Jul 2026), comparing planner-and-worker swarms, found "workers carrying at least 69% of the tokens, and over 90% in most." In a fan-out of variants, nearly all the spend is the agents doing the work, so the budget scales with the number of variants. Budget for it.

The harness: fixed split, one score script, a file per agent

The harness is the part agents must not change. Put it in the repository before the run:

  • A fixed train/test split, created once, with the test portion not in the repository
  • One script that fits a variant on training data and writes predictions
  • One score script, owned by the harness, that compares predictions with the held-out truth
  • One results file per agent, named by the variant (results/m07.json), so no two agents write the same file
  • A ranking script that reads every results file

Each agent's job is then narrow: write its variant, run the harness, commit its results file. Because the file names differ, the merge at the end has nothing to conflict on.

Keeping the test set away from agents

An agent asked to get the best score will find the test labels if they are in reach, and use them, often without saying so. Keep the held-out data out of the agents' repository and environment: the harness scores against it, the agents never read it. In the CO2 run below, the harness fitted each model on the months up to 2015 and scored it on the 130 months after, which the model was never given. Held-out data for research agents covers the reasoning and the ways agents get around a weak split.

A Forkit factory per study

A Forkit factory is a saved fan-out: a prompt template, how many agents, a repository, budgets and a time limit. (The company Factory is unrelated.) One study is one factory; one item is one variant.

forkit factory create --name co2 --prompt-file model.md --push --max-cost 10

The template is filled once per agent from the run's items, for example {{item.id}} and {{item.model}}. A run is asked for with the items, from the CLI or by a POST to the factory's webhook address; a runner your team operates starts the agents:

forkit factory work co2 --once --repo-from ./co2-study --exec "$PWD/agent.sh"

Use the script's full path: the runner starts each agent in its own empty folder. Every agent clones its own fork of the study repository, and its pushes are recorded by Forkit as verified commits.

Every agent will ask to run the same harness command. Identical requests from one fan-out are one question, answered once for all. Or write an allow rule for the command first.

Worked example: twelve models of the CO2 record

On 21 Nov 2026, on staging, Forkit recorded this run (one run). NOAA's Global Monitoring Laboratory publishes the "monthly mean carbon dioxide measured at Mauna Loa Observatory, Hawaii," a record that began in March 1958. The study repository held that record from March 1958 to October 2026 and the harness described above.

  • One POST to the factory's webhook address with twelve items asked for the run.
  • The runner started twelve Claude Code agents (Sonnet), one model each.
  • All twelve asked to run node run.js within 13 seconds of each other and were one question; one "Allow once" answered all twelve.
  • The run finished 63 seconds after it started, at about $1.25 by Forkit's estimate.
  • forkit fanout collect --merge merged twelve branches with no conflict, and all twelve results files matched, byte for byte, what a reference written beforehand gives.
  • node rank.js: quadratic trends with a yearly cycle forecast best, at 2.19 to 2.29 ppm error over the held-out years; a straight line was worst at 13.75. Every model except the two built on "exponential above 280 ppm" forecast too low.

A day earlier (20 Nov 2026, staging, one run), twelve agents each tested one hypothesis about the Palmer Penguins dataset in the same way: all twelve asked to run within 48 seconds and were one question, all had pushed 69 seconds after starting, and the fan-out showed about $1.24 of its $10 budget. See research hypotheses with a fan-out.

These are small, CPU-only studies. They show the coordination works end to end; they say nothing about long training runs.

Ranking, merging, marking the run good

After the run:

  1. forkit fanout collect ID ./study --merge brings each agent's branch in and merges them. With one results file per agent, there should be nothing to conflict on. A conflict means two agents wrote the same file, which is worth finding out about.
  2. Run the ranking script on the merged results. Each result is tied to the commit that produced it, so a surprising number can be traced to the exact code.
  3. Mark the run good or bad with forkit factory verdict RUN_ID good|bad --note "…". A run where agents changed the harness, or results did not match the reference, is a bad run.
  4. forkit factory show co2 gives runs, the share judged good, cost per run and seconds per run. After the CO2 run it showed 1 run, 100% good, $1.25 and 63 seconds a run.

To build a factory from scratch, see build a software factory.

Limits

  • No GPU scheduling. Forkit coordinates agents; it does not queue jobs on accelerators or share a GPU fairly. Agents run wherever your runner starts them.
  • Forkit never runs agents. The runner and the machines are yours.
  • Costs are estimates from reported tokens at list price, not your provider's bill. Agents that report nothing are invisible to the dollar budget; set a tool-call cap too.
  • Small recorded runs. The recorded studies had twelve agents each, on staging, one run each.
  • Agents can still cheat within reach. Keeping held-out data out of the repository is your job; Forkit does not detect leakage.

Sources