Xu Yang, Xiao Yang, Shikai Fang, Yifei Zhang, Jian Wang, Bowen Xian, Qizheng Li, Jingyuan Li, Minrui Xu, Yuante Li, Haoran Pan, Yuge Zhang, Weiqing Liu, Yelong Shen, Weizhu Chen, Jiang Bian
7 min
How can we transform the labor-intensive, ad-hoc process of machine learning engineering (MLE) into a principled, autonomous workflow? While LLMs have advanced significantly, existing autonomous agents often rely on monolithic, rigid pipelines that struggle to navigate the vast configuration spaces required for high-performing data science models.
The authors introduce R&D-Agent, an extensible, modular framework that formalizes MLE into two distinct phases with six specialized components:
This decoupled architecture allows researchers to substitute, compare, and optimize individual components independently, shifting agent design from craftsmanship to modular composition.
Evaluated on MLE-Bench, a collection of authentic Kaggle competitions, R&D-Agent sets a new state-of-the-art with a 35.1% any-medal rate, significantly outperforming existing frameworks like ML-Master and AIDE. Extensive ablation studies confirm that the framework's modular architecture is the primary driver of these gains rather than just model selection. The findings also highlight that efficient debugging and path structuring are critical to success within limited time budgets.
The R&D-Agent framework provides a reusable foundation for autonomous data science, moving away from ad-hoc agent construction. By enabling systematic experimentation and component-level evaluation, the framework helps the machine learning community understand which strategies—such as parallel exploration or iterative debugging—most reliably boost model performance, ultimately accelerating innovation in AI-driven data science.
Recent advances in AI and ML have transformed data science, yet increasing complexity and expertise requirements continue to hinder progress. Although crowd-sourcing platforms alleviate some challenges, high-level machine learning engineering (MLE) tasks remain labor-intensive and iterative. We introduce R&D-Agent, a comprehensive, decoupled, and extensible framework that formalizes the MLE process. R&D-Agent defines the MLE workflow into two phases and six components, turning agent design for MLE from ad-hoc craftsmanship into a principled, testable process. Although several existing agents report promising gains on their chosen components, they can mostly be summarized as a partial optimization from our framework's simple baseline. Inspired by human experts, we designed efficient and effective agents within this framework that achieve state-of-the-art performance. Evaluated on MLE-Bench, the agent built on R&D-Agent ranks as the top-performing machine learning engineering agent, achieving 35.1% any medal rate, demonstrating the ability of the framework to speed up innovation and improve accuracy across a wide range of data science applications. We have open-sourced R&D-Agent on GitHub: https://github.com/microsoft/RD-Agent.
Sam: Independent branches preserve different approaches, but they could repeat each other’s mistakes. Do they share what they learn?
Alex: They do, through controlled memory sharing. A branch can consult strong ideas from elsewhere and a sample of other past ideas. Selection favors similarity and performance, while accounting for recency. The intention is to transfer useful knowledge without making every branch follow the same path.
Sam: And how does the research agent avoid producing a long stream of plausible but unhelpful suggestions?
Alex: It first identifies a concrete problem in the current solution or dataset. Then it proposes a hypothesis explaining why a specific change should help. It generates several ideas, assesses them with a language model, and sends only the most promising to development.
Sam: That assessment is still a prediction, though. A persuasive explanation isn’t evidence that the change improves performance.
Alex: The paper treats that as a preliminary filter, not the final test. The development agent must implement the idea and obtain feedback from data. To save time, it first debugs on a small, representative sample before running the full evaluation.
Sam: So the system spends less time discovering, through an expensive training run, that its code doesn’t work. What stops it from comparing incompatible scores afterward?
Alex: The evaluation component standardizes data splits and metrics. It also gathers leading candidates from different branches and re-evaluates them consistently on held-aside development data. That data supports solution selection; the final benchmark test remains inaccessible.
Sam: Can you give an example where this process produced something more specific than better search?
Alex: The paper compares solutions for classifying toxic comments, where some labels are much rarer than others. R&D-Agent produced a custom training loss addressing that imbalance, adaptive batch sizing when memory ran short, and integrated fast debugging. It earned bronze; ML-Master finished above the median under matched conditions.
Sam: That example makes the output tangible, but it bundles several changes. What’s the broader evidence that the framework helps?
Alex: They use Machine Learning Engineering Bench, usually called MLE-Bench, which draws tasks from real Kaggle competitions. It contains seventy-five competitions spanning different data types and difficulty levels. The main outcome is any-medal rate: the share reaching a bronze, silver, or gold performance threshold.
Sam: So a medal rate measures competitive solutions, not simply whether the agent generated a valid submission. What happened in the comparison that holds the language model fixed?
Alex: With GPT-5, R&D-Agent reached about thirty-five percent, versus about seventeen percent for their re-evaluation of ML-Master. Both ran under the same twelve-hour limit, using the same language model and hardware. That’s stronger evidence for a system-design advantage than comparing agents with different underlying models.
Sam: Is that a repeatable result, or could we be hearing about one fortunate run?
Alex: The new main results average three runs with different random seeds, and R&D-Agent’s reported variation is small. The authors also tested a configuration using different language models for research and development, which performed strongly. But that supports these tested configurations, not independence from model choice.
Sam: Which component looks most important? Otherwise, a modular framework could still leave builders unsure what to prioritize.
Alex: In the research-phase ablations—tests simplifying one component at a time—replacing adaptive branching with a sequential chain caused the largest decline. The reported medal rate fell to about twenty-five percent. Removing structured reasoning also reduced how often an experiment improved performance, despite generating more experiments.
Sam: That suggests quantity alone isn’t enough. But how firmly can we rank the components from those tests?
Alex: Less firmly than we can judge the main comparison. The ablations used forty selected competitions, chosen to include tasks where this agent or its baselines achieved medals. Each ablation had only a single representative run, so the ranking is suggestive, not a settled ordering across all tasks.
Sam: There’s also a broader claim in the paper about state-of-the-art performance. Does that include every system they discuss?
Alex: No. Their appendix reports a closed-source system, InternAgent, with a higher overall score. R&D-Agent leads the open-source comparisons they emphasize, and comparisons across published systems use different resources. Also, success on timed competition tasks doesn’t establish performance across unrestricted scientific research.
Sam: Given those limits, who should read the full document, and where should they start?
Alex: Researchers building autonomous data-science agents should start with the human-expert-inspired agent design section. Then read the ablation study, keeping its selected tasks and single-run comparisons in view. The matched ML-Master experiment is the clearest evidence that the gains aren’t merely from choosing a stronger language model.
Sam: And for researchers who only need the result to carry back to their own field?
Alex: This study found that organizing experimentation improved an agent’s competitive machine learning performance under a fixed budget. It doesn’t establish a general autonomous scientist. The line to remember is: better automated research needs a better experiment loop, not just a better model.
Sam: That’s a distinction to keep in mind.