Synthetic Petri Dish: A Novel Surrogate Model for Rapid Architecture Search

Aditya Rawal, Joel Lehman, Felipe Petroski Such, Jeff Clune, Kenneth O. Stanley

TL;DR

Researchers from Uber AI and OpenAI have introduced the Synthetic Petri Dish, a novel surrogate model that drastically accelerates Neural Architecture Search (NAS). By instantiating architectural "motifs" in tiny networks and evaluating them on a few learned synthetic data samples, they can predict full-scale performance with high accuracy at a fraction of the computational cost.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) is the process of automating the design of neural networks. While powerful, it is notoriously "compute-intensive." To know if a specific design (a "motif," like a new activation function or a recurrent cell) is good, you typically have to plug it into a large network and train it to convergence on a massive dataset. This can take thousands of GPU hours.

Existing shortcuts have significant drawbacks:

  • Lower-fidelity surrogates: Training for fewer epochs or using smaller models often fails to maintain a high correlation with true performance.
  • Weight sharing: While fast, it constrains the search space and can be difficult to implement.
  • Black-box predictors: Models that predict performance based solely on an architecture's description (like a string of numbers) often fail to generalize to novel designs they haven't seen during their own training.

Methods

The authors take inspiration from biology, where complex systems are studied "in vitro" (in a Petri dish) to isolate key variables. Their method involves a nested optimization process:

  1. Motif Extraction: A candidate architectural motif is instantiated in a "motif-network"—a miniaturized version of the target network (e.g., reducing a 100-neuron wide layer to just 1 neuron).
  2. Inner-Loop Training: These tiny motif-networks are trained using Stochastic Gradient Descent (SGD) on a very small set of synthetic data samples.
  3. Outer-Loop Optimization: The synthetic data itself is learned. The goal is to optimize the synthetic pixels/values so that the performance ranking of different motifs in the "Petri dish" matches their ranking in the full-scale, ground-truth environment.
Figure 2. (a) Synthetic Petri Dish Training. The left figure illustrates the inner-loop and outer-loop training procedure. The motifs (in this example, activation functions) are extracted from the full network (e.g a 2-layer, 100 wide MLP) and instantiated in separate, much smaller motif-networks (e.g. a two-layer, single-neuron MLP). The motif-networks are trained in the inner-loop with the synthetic training data and evaluated using synthetic validation data. In the outer-loop, an average mean squared error loss is computed between the normalized Petri dish validation losses and the corresponding normalized ground-truth losses. Synthetic training and validation data are optimized by taking gradient steps w.r.t the outer-loop loss. (b) Combining Architecture Search with the Petri Dish. Functions are depicted inside rectangles and function outputs are depicted as arrows with their descriptions adjacent to them. At step b.0, an initial motif-set is trained and evaluated. The ground-truth performance for this initial set is used for Petri dish model training (step b.1a) and also to generate a set of new motifs through an NAS method like a GA or NAO (step b.1b). The trained Petri dish (step b.2a) model predicts the relative performance of the newly generated motifs (step b.2b) by running Petri dish model inference. A small subset of motifs, with the best predicted performance, are selected for ground-truth evaluation (a repetition of step b.0). These steps are repeated for several iterations and the architecture with the best ground-truth performance is obtained.

Once the Petri dish is "trained" (i.e., the synthetic data is optimized), evaluating a new, unseen motif is nearly instantaneous: you just train a tiny network on the synthetic data and see how it performs.

Datasets

  • MNIST: Used for a proof-of-concept experiment involving the optimal slope of a sigmoid activation function.
  • Penn Tree Bank (PTB): A standard language modeling benchmark used to evaluate the search for complex recurrent cells.

Key Insights and Ideas

  • The "Intrinsic Prior": Unlike black-box models that just "look" at an architecture, the Synthetic Petri Dish actually runs it. Because the motif is part of the evaluation loop, the system captures the motif's intrinsic response to gradients and learning dynamics.
  • Superior Generalization: Because it leverages these intrinsic properties, the Petri dish generalizes far better to "out-of-distribution" motifs. In the sigmoid slope experiment, the Petri dish correctly predicted a performance peak in a region it was never trained on, whereas a standard neural network predictor failed entirely.
Figure 1. Predicting the Optimal Slope of the Sigmoid Activa- tion. Each blue diamond depicts the normalized validation accu- racy (ground-truth) of a 2-layer, 100-wide feed-forward network with a unique sigmoid slope value (mean of 20 runs). The valida- tion accuracy peaks at a slope of 0.23. Both the Synthetic Petri Dish and a neural network surrogate model that predicts perfor- mance as a function of sigmoid slope are trained on a limited set of ground-truth points (in total 15), restricted to the blue-shaded region to the right of the peak. The normalized performance pre- dictions for Synthetic Petri Dish are shown with green diamonds and those for the NN surrogate model are shown as red diamonds. The plot shows that for test points on the left of the training data, the NN model is unable to infer that a peak exists with a dramatic falloff to the left of it. In contrast, because the Synthetic Petri Dish conducts experiments with small neural networks with these sigmoid slope values it is more more accurate at inferring both that there is a peak with a falloff to the left and its approximate location.

Key Results

  • Efficiency Gains: In the Penn Tree Bank recurrent cell search, the Synthetic Petri Dish combined with Neural Architecture Optimization (NAO) achieved a test perplexity of 57.1 using only 100 ground-truth evaluations.
  • Compute Reduction: For comparison, the original NAO method required 1,000 ground-truth evaluations (roughly 300 GPU days) to reach a perplexity of 56.0. The Petri dish approach achieved highly competitive results using only 1/10th of the compute.
Figure 3. RNN Cell Search for PTB: This graph plots the test perplexity (mean of five runs) of the best found cell for three NAS methods across variable numbers of NAS iterations. All three methods are warmed up at the beginning (Step 0 in Figure 2b) with 40 ground-truth evaluations – notice the top-left point with best test perplexity of 63.1. For Synthetic Petri Dish with GA (blue curve) and Synthetic Petri Dish with NAO (green curve), the top 20 motifs with the best predicted performance are se- lected for ground-truth evaluations in each NAS iteration. Original NAO (Luo et al., 2018) (not shown here) requires 1,000 ground- truth evaluations to achieve a test perplexity of 56.0. NAO with Reduced Data (red-curve) shows the results obtained by running original NAO, but with fewer ground-truth evaluations (the same number the Synthetic Petri Dish variants get). With such limited data, Synthetic Petri Dish with NAO outperforms other NAS methods and achieves a test perplexity of 57.1 after 100 ground- truth evaluations.

Limitations and Future Work

  • Complexity of Motifs: The current work focuses on relatively simple motifs like activation slopes and recurrent cells. Scaling this to more complex, multi-component architectural motifs remains a challenge.
  • Hyperparameter Sensitivity: The Petri dish itself requires hyperparameter tuning (e.g., the size of synthetic data, learning rates for the outer loop), which adds a layer of meta-complexity.
  • Future Directions: The authors suggest that this "in vitro" approach could be extended to other areas of machine learning, potentially helping researchers isolate the specific causal factors that make certain architectures succeed where others fail.

Summary updated

BibTeX
@misc{rawal2020synthetic,
  author = {Aditya Rawal and Joel Lehman and Felipe Petroski Such and Jeff Clune and Kenneth O. Stanley},
  title = {{Synthetic Petri Dish: A Novel Surrogate Model for Rapid Architecture Search}},
  year = {2020},
  eprint = {2005.13092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.13092},
}
Figure