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:
- 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.
- 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.
- 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.
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).
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.
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