TL;DR
AutoML-Zero shifts the paradigm of automated machine learning from searching for neural architectures to evolving entire algorithms from basic mathematical operations. By starting with "empty" programs and using evolutionary search, the system successfully rediscovers fundamental concepts like backpropagation and "invents" modern techniques like gradient normalization and weight averaging with minimal human bias.
What Problem Does This Paper Address?
Most current AutoML research focuses on Neural Architecture Search (NAS). While successful, NAS typically relies on sophisticated, expert-designed building blocks—like convolutions, batch normalization, or specific activation functions. This "human-in-the-loop" design limits the search space to what we already know works, potentially stifling the discovery of entirely new machine learning paradigms.
The authors of AutoML-Zero ask a fundamental question: Can we automate the discovery of machine learning algorithms starting from almost nothing? By reducing the reliance on human-designed components, can we find more efficient or specialized algorithms that a human researcher might never consider?
Methods
The researchers propose a framework that represents a machine learning algorithm as a computer program composed of three component functions: Setup (initialization), Predict (inference), and Learn (optimization).
- The Search Space: Instead of layers, the building blocks are basic mathematical operations (addition, subtraction, multiplication, division, dot products, etc.) acting on a small virtual memory of scalars, vectors, and matrices.
- Evolutionary Search: They use Regularized Evolution. The process starts with a population of "empty" programs. In each cycle, a random subset is chosen, and the best performer (the "parent") is copied and mutated to create a "child." Mutations include inserting/removing instructions, randomizing a function, or modifying an argument.
- Efficiency Upgrades: To handle the massive and sparse search space, they implemented:
- Functional Equivalence Checking (FEC): Hashing the outputs of algorithms to avoid re-evaluating different code that produces the same results.
- Hurdles: Early-exit strategies that stop evaluating poorly performing algorithms.
- Parallelism: Distributing the search across thousands of processes that periodically exchange their best models (migration).
Datasets
The system was evaluated primarily on binary classification tasks derived from:
- CIFAR-10: Small images of objects.
- MNIST: Handwritten digits (used for diversity during search).
- Generalization Tests: To ensure the evolved algorithms weren't just overfit to one dataset, they were tested on SVHN (street view house numbers), ImageNet (downsampled), and Fashion MNIST.
Key Insights and Ideas
- Rediscovering the Classics: One of the most striking "aha" moments was seeing the system independently rediscover backpropagation by gradient descent. Starting from scratch, evolution "invented" the chain rule to update weights.
- Automatic Adaptation: The algorithms evolved differently based on the constraints of the task. When given very little data, the system evolved a "noisy ReLU" (adding noise to activations), which acts as a form of data augmentation/regularization. When training time was limited, it evolved learning rate decay.
- Emergent Complexity: Top-performing evolved algorithms didn't just replicate simple neural nets; they incorporated modern techniques like bilinear interactions, normalized gradients, and weight averaging without any explicit instruction to do so.
- Sparsity vs. Density: The paper highlights that while the search space is vast and "sparse" (good solutions are rare), evolutionary search is significantly more efficient than random search, which fails as task difficulty increases.
Key Results
- Performance: On CIFAR-10 binary classification, the best evolved algorithm achieved 84.06% accuracy, significantly outperforming both a linear baseline (77.65%) and a hand-designed 2-layer neural network (82.22%).
- Generalization: The evolved algorithms maintained their lead on unseen datasets, such as SVHN (88.12% vs. 85.14% for the 2-layer NN).
- Speed: Through optimization, the framework reached a throughput of 2,000 to 10,000 algorithms evaluated per second per CPU core.
Limitations and Future Work
- Structural Constraints: The current search space processes one example at a time. This prevents the discovery of techniques that require batches, such as Batch Normalization.
- Complexity Limits: Because the system searches for each layer independently, it struggles to evolve very deep architectures. The authors suggest that adding loops or function calls could unlock deeper structures.
- Interpretability: Evolved code is often "messy." While the authors used static analysis to simplify the code, understanding why a specific evolved sequence of math ops works remains a challenge.
- Compute Intensity: While more efficient than random search, evolving from scratch still requires substantial computational resources compared to standard NAS.
The work serves as a powerful proof-of-concept that the "Zero" approach—starting from basic primitives—is a viable and exciting new direction for the future of AutoML.
Summary updated