AI Agents for ML Experiment Orchestration: Reducing Friction in Machine Learning Workflows

teads · Media & Entertainment · 2026 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.2 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: ML experimentation orchestration

Teads had a mature experiment orchestrator, but configuring features, hyperparameters, and runs still created friction and human errors.

Constraints:

Architecture

Teads wrapped its existing Datakinator ML-experiment orchestrator with MCP routes for coding agents, then learned that API exposure alone was insufficient. The second iteration added dataset probing, run-error retrieval, feature-context tools, failed-run archiving/correction/restart loops, and a cost-estimation permission gate. Agents can now configure and launch experiments over Datakinator’s cloud-backed processing/training/evaluation pipeline while cost guardrails prevent unconstrained GPU spending.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  data-scientist-request["data-scientist-request"]
  coding-agent["coding-agent"]
  mcp-routes["mcp-routes"]
  context-tools["context-tools"]
  datakinator-orchestrator["datakinator-orchestrator"]
  cloud-gpu-backbone["cloud-gpu-backbone"]
  cost-guardrail["cost-guardrail"]
  experiment-results["experiment-results"]
  data-scientist-request --> coding-agent
  coding-agent --> mcp-routes
  coding-agent --> context-tools
  mcp-routes --> datakinator-orchestrator
  context-tools --> datakinator-orchestrator
  datakinator-orchestrator --> cloud-gpu-backbone
  cloud-gpu-backbone --> cost-guardrail
  datakinator-orchestrator --> experiment-results
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
data-scientist-request Natural-language or agent-mediated request to configure features, hyperparameters, or experiments. coding-agent
coding-agent Agent that calls Datakinator MCP tools to configure, launch, repair, and relaunch experiments. data-scientist-request, mcp-routes, context-tools, cost-guardrail
mcp-routes MCP exposure of relevant Datakinator API routes. coding-agent, datakinator-orchestrator
context-tools Dataset probing, exact error retrieval, and feature-context tools that make the API usable by agents. coding-agent, datakinator-orchestrator
datakinator-orchestrator ML experiment orchestrator for processing data, training, evaluation, hyperparameter tuning, feature selection, and result analysis. mcp-routes, context-tools, cloud-gpu-backbone, experiment-results
cloud-gpu-backbone Cloud infrastructure capable of starting hundreds of deep-learning training sessions with GPUs. datakinator-orchestrator, cost-guardrail
cost-guardrail Price-estimation and permission/forbid tool for expensive experiments. coding-agent, cloud-gpu-backbone
experiment-results Offline metrics and result analysis from completed experiments. datakinator-orchestrator

Data flow

A data scientist asks a coding agent to configure or run an experiment. The agent calls MCP routes into Datakinator, probes datasets/features, starts a processing/training/evaluation workflow, retrieves exact run errors if it fails, archives failed runs, corrects the setup, and restarts. Before expensive work, it estimates price and asks permission or forbids the run if it is too costly.

4 supporting quotes
“We just embedded the API into an MCP on all the relevant routes. Using a coding agent, it was done in less than an hour.”article, stated
“we enriched the MCP with context tools, making it capable of probing the datasets, retrieving the exact error of a run, and gathering more context about the features.”article, stated
“even if it sometimes made mistakes, it was capable of archiving failed runs, correcting them, and starting them again.”article, stated
“I just added a tool for the agent to estimate the price and ask permission before starting something expensive; if it is too expensive, it is forbidden.”article, stated

Why this architecture

Teads already had a mature experiment orchestrator, so the AI layer’s job was not to invent ML infrastructure but to remove configuration friction. The first MCP wrapper proved that agents need more context than humans do: wrong dates and nonexistent features showed that raw API routes were underspecified for autonomous use. Context tools plus feedback loops made the agent self-correcting, while cost permissioning handled the predictable GPU-spend spike from lower experimentation friction.

3 supporting quotes
“For a capable human being who has some context, it worked well, but for an agent, it didn’t.”article, stated
“Then, the results were astonishing: even if it sometimes made mistakes, it was capable of archiving failed runs, correcting them, and starting them again.”article, stated
“In just 48 hours, more than 200 experiments were started. And as you can guess, cloud costs spiked.”article, stated

Models used: AI coding agents

Scale

Alternatives considered (roads not taken)

Expose existing Datakinator API routes only

Rejected because: Agents lacked human context and made mistakes with dates/features, so additional context and error-retrieval tools were required.

“it also had some failures (using the wrong date, using a feature that did not really exist in a specific dataset). That’s when I realized that simply using the existing routes wasn’t enough.”article, stated

Let agents launch arbitrary cloud experiments without cost approval

Rejected because: Lowered friction immediately spiked cloud costs, so a price-estimation permission gate was added.

“In just 48 hours, more than 200 experiments were started. And as you can guess, cloud costs spiked. Finally, I just added a tool for the agent to estimate the price and ask permission”article, stated

Patterns

tool-use-orchestration (mlops)

Agents call Datakinator APIs through MCP to configure and launch ML experiments.

“We just embedded the API into an MCP on all the relevant routes.”article, stated

cost-aware-routing (operations)

The team added cost estimation and guardrails after cloud spend spiked from increased experimentation.

“## Cloud costs spiked in 48 hours, but the $1M ROI was worth it.”article, stated

Tradeoffs

How much experimentation freedom to give agents.

Chose autonomous experiment launch with guardrails over manual configuration only.

Rationale: The agents increased throughput and ROI but temporarily increased cloud cost.

“n offline metrics across multiple models and approximately $1M in direct margin gains, despite temporary cloud cost spikes that were subsequently managed with cost estimation controls.”summary, implied

How to expose experiment-launching power to agents without runaway GPU spend.

Chose Add price estimation and permission/forbid controls before expensive experiments. over Letting the agent freely launch every experiment made easy by the MCP wrapper..

Rationale: The release drove more than 200 experiments in 48 hours and spiked cloud cost, so cost estimation became part of the agent tool layer.

“In just 48 hours, more than 200 experiments were started. And as you can guess, cloud costs spiked.”article, stated
“I just added a tool for the agent to estimate the price and ask permission before starting something expensive; if it is too expensive, it is forbidden.”article, stated

Gotchas (what bit them)

A bare API exposure worked for humans but not for agents.

Root cause: Agents lacked dataset context and made errors such as wrong dates or nonexistent features.

Resolution: Add context-probing and error-retrieval tools so agents can correct failed experiments.

“But it also had some failures (using the wrong date, using a feature that did not really exist in a specific dataset).”article, stated

Evaluation

Teads measured launched experiments, offline metric uplift, and business margin.

Metrics: 200+ experiments in 48 hours · 5-10% offline metric uplift · $1M direct margin gains

“Within 48 hours of release, over 200 experiments were launched, leading to 5-10% uplift in offline metrics across multiple models and approximately $1M in direct margin gains, despite temporary cloud cost spikes that”summary, stated

Outcomes

Medium engineering post; ROI attribution should be treated cautiously.

“It worked out of the box; it was able to do all the boring tasks and start experiments. But it also had some failures (using the wrong date, using a feature that did not really exist in a specific dataset).”article, stated