DiscoGen: Procedural Generation of Algorithm Discovery Tasks in Machine Learning

Alexander D. Goldie, Zilin Wang, Adrian Hayler, Deepak Nathani, Edan Toledo, Ken Thampiratwong, Aleksandra Kalisz, Michael Beukman, Hannah Erlebach, Alistair Letcher, Shashank Reddy, Clarisse Wibault, Theo Wolf, Charles O'Neill, Uljad Berdica, Nicholas Roberts, Saeed Rahmani, Roberta Raileanu, Shimon Whiteson, Jakob N. FoersterarXiv 2026

TL;DR

DiscoGen is a procedural generator that creates billions of unique machine learning algorithm discovery tasks to train and evaluate AI research agents. By automating task creation across diverse domains—from reinforcement learning to language modeling—it provides a scalable, contamination-resistant framework for developing agents that can autonomously design novel optimizers, loss functions, and architectures.

What Problem Does This Paper Address?

The field of "Algorithm Discovery" aims to create AI agents (Algorithm Discovery Agents, or ADAs) capable of doing what human researchers do: ideating, implementing, and testing new machine learning algorithms. However, progress is currently bottlenecked by the benchmarks used to evaluate these agents.

Existing suites like MLE-Bench or MLGym-Bench suffer from three major flaws:

  1. Small Scale: They rely on manual task creation, resulting in only a few dozen problems. This makes it easy for agents to overfit to specific tasks.
  2. Data Contamination: Because these benchmarks are fixed and public, the Large Language Models (LLMs) powering ADAs may have already seen the solutions during their pre-training.
  3. Poor Evaluation Logic: Many benchmarks evaluate an agent on the same datasets it used during the discovery phase, failing to measure how well a discovered algorithm generalizes to truly unseen problems.

Methods

DiscoGen solves these issues by applying Procedural Content Generation (PCG)—a technique common in video games and reinforcement learning—to the world of algorithm research.

Instead of a fixed list of tasks, DiscoGen uses a modular framework to generate them. A task is defined by seven components:

  • Task Domain: The field (e.g., Image Classification).
  • Editable Modules: Which parts of the code the agent can change (e.g., the agent might be allowed to rewrite the loss function but must use a fixed optimizer).
  • Meta-Training/Test Datasets: A clear split where the agent "researches" on one set of data but is evaluated on a hidden "meta-test" set.
  • Initialisation: Whether the agent starts with a "baseline" human algorithm to improve or an "empty" template to build from scratch.

This setup enables a "Meta-Meta-Loop" (as seen in Figure 1), where researchers can optimize the ADA itself across thousands of different generated tasks before finally testing it on a fixed evaluation set called DiscoBench.

Figure 1. A typical DiscoGen setup. DiscoGen procedurally generates new algorithm discovery tasks. For every generated task, an algorithm discovery agent iteratively develops new algorithms (the meta-loop) for training in the task’s meta-train datasets (the inner-loops). The developed algorithm is evaluated on meta-test datasets, with the evaluation score used to optimise the agent (the ADA optimisation-loop). Datasets that are available in a task domain can also be excluded from the task. After each step, DiscoGen can be sampled for a new task. After ADA optimisation has completed, the agent is evaluated on DiscoBench, a set of ADA test tasks.

Datasets

DiscoGen is a generator rather than a static dataset, but it currently supports 14 diverse domains including Bayesian Optimisation, Computer Vision, Language Modelling, and various forms of Reinforcement Learning (RL).

Table 2. Overview of domains and their number of supported tasks.

By combining different modules, datasets, and backends, DiscoGen can generate approximately 100 billion unique tasks. For standardized evaluation, the authors introduced DiscoBench, a curated subset of these tasks that ensures agents are tested across all 14 domains in a controlled manner.

Key Insights and Ideas

  • Diversity is Quantifiable: The authors used rank correlation analysis to prove that their generated tasks aren't just "more of the same." An algorithm that performs well in one DiscoGen task often performs poorly in another, confirming that the task space is semantically diverse.
  • The Generalization Gap: Agents frequently "overfit" their algorithm designs to the meta-training data. The authors found that performance often drops significantly when moving to the meta-test set, highlighting why the meta-train/meta-test split is essential for honest evaluation.
  • Difficulty is a Slider: By increasing the number of "editable modules" (e.g., asking an agent to design the network architecture and the optimizer simultaneously), researchers can smoothly scale the difficulty of the tasks.

Key Results

The researchers evaluated several frontier open-source models (DeepSeek-v3.2, Devstral2, and GPT-OSS 120B) as ADAs.

  • Current LLM Performance: DeepSeek-v3.2 emerged as the strongest agent, but a significant gap remains. As shown in Table 3, human-designed "All Fixed" baselines still generally outperform algorithms discovered by AI, especially as tasks become more complex ("All Edit").
  • Scaling Laws for Agents: In a key experiment, the authors optimized an ADA's system prompt using DiscoGen. They found that an agent whose prompt was tuned over 30 different tasks significantly outperformed an agent tuned on only one task. Crucially, this improvement generalized to "held-out" domains that the agent had never seen during tuning.
Table 3. ADA evaluation performance in DiscoBench (Elo Scores with 95% CIs). Bold indicates best mean performance.

Limitations and Future Work

While DiscoGen is a massive step forward, the authors note that it still relies on existing public datasets, which carries a residual risk of LLM contamination. To combat this, they plan to release a private "API-only" version of DiscoBench with unpublished datasets.

Additionally, the computational cost of running these agents is high—the experiments for this paper required roughly 35,000 GPU hours. Future work will focus on making ADAs more efficient and moving beyond prompt tuning to actual weight-based fine-tuning of research agents using the billions of tasks DiscoGen provides.

Summary updated

BibTeX
@misc{goldie2026discogen,
  author = {Alexander D. Goldie and Zilin Wang and Adrian Hayler and Deepak Nathani and Edan Toledo and Ken Thampiratwong and Aleksandra Kalisz and Michael Beukman and Hannah Erlebach and Alistair Letcher and Shashank Reddy and Clarisse Wibault and Theo Wolf and Charles O'Neill and Uljad Berdica and Nicholas Roberts and Saeed Rahmani and Roberta Raileanu and Shimon Whiteson and Jakob N. Foerster},
  title = {{DiscoGen: Procedural Generation of Algorithm Discovery Tasks in Machine Learning}},
  year = {2026},
  eprint = {2603.17863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.17863},
}
Figure