Ax: A Platform for Adaptive Experimentation

Miles Olson, Elizabeth Santorella, Louis C. Tiao, Sait Cakmak, Mia Garrard, Samuel Daulton, Zhiyuan Jerry Lin, Sebastian Ament, Bernard Beckerman, Eric Onofrey, Paschal Igusti, Cristian Lara, Benjamin Letham, Cesar Cardoso, Shiyun Sunny Shen, Andy Chenyuan Lin, Matthew Grange, Elena Kashtelyan, David Eriksson, Maximilian Balandat, Eytan BakshyAutoML ABCD Track 2025

TL;DR

This paper introduces Ax, an open-source platform designed to make adaptive experimentation, a powerful technique for optimizing complex systems, more accessible and efficient. Ax streamlines the process of finding optimal configurations for resource-intensive tasks like hyperparameter tuning in machine learning, achieving state-of-the-art performance across a wide range of applications.

What Problem Does This Paper Address?

Optimizing large-scale machine learning systems and other complex engineering processes often involves "black-box optimization." This means we have a system with many adjustable parameters, and we want to find the best combination to achieve a certain goal (e.g., maximize accuracy, minimize latency). However, evaluating each configuration can be incredibly expensive, taking hours or even days. Traditional methods like grid search or random search are inefficient because they don't learn from past evaluations. Adaptive experimentation, which uses intelligent algorithms to decide which configurations to try next based on previous results, offers a much more sample-efficient approach. The challenge is that implementing these advanced adaptive methods can be complex, requiring expertise in Bayesian optimization, experiment design, and robust engineering for deployment. This paper addresses the need for a user-friendly, yet powerful and scalable, platform that democratizes adaptive experimentation.

Methods

Ax is presented as a comprehensive, open-source platform built in Python. Its core innovation lies in its expressive API and flexible architecture, which separates concerns between experiment management and the underlying optimization algorithms.

  • Adaptive Experimentation Core: Ax utilizes Bayesian Optimization (BO), a powerful class of algorithms that build probabilistic models (surrogates) of the objective function. These models are then used to intelligently select the next promising points to evaluate, balancing exploration (trying new areas) and exploitation (refining known good areas).
  • BoTorch Integration: Ax leverages BoTorch, a PyTorch-based library for BO research, providing access to state-of-the-art BO algorithms, surrogate models (like Gaussian Processes), and acquisition functions. This allows Ax to benefit from cutting-edge research in BO.
  • GenerationStrategy Abstraction: A key feature is the GenerationStrategy, which acts as a finite-state machine. It allows Ax to dynamically switch between different optimization strategies (e.g., initial random sampling, followed by Bayesian optimization) based on the experiment's progress. This enables sophisticated optimization workflows.
  • Ask-Tell and Orchestrated Modes: Ax supports two primary interaction modes:
  • Ask-Tell: Users manually request candidate configurations (get_next_trials) and report results (complete_trial). This is useful for simpler workflows or when manual intervention is needed.
  • Orchestrated: Ax takes over the entire experiment loop, automatically running trials, fetching data, and managing parallelism using Runner and Metric abstractions. This is ideal for fully automated, production-ready deployments.
  • Handling Complexities: Ax is designed to handle complex search spaces (discrete, continuous, mixed), multiple objectives, outcome constraints, noisy observations, and even early stopping of trials to save resources.

Datasets

The paper evaluates Ax on a comprehensive suite of 47 benchmark problems. These include:

  • Synthetic benchmarks: Standard problems like BBOB, ZDT, and DTLZ.
  • Real-world benchmarks:
    • NASBench: Tabulated results for neural architecture search.
  • LCBench: Learning curve observations from training neural networks on various datasets (Fashion-MNIST, CIFAR-100, etc.).
  • Car side impact and vehicle safety problems.
    • Penicillin production optimization.

The paper does not introduce new benchmark datasets but rather uses existing ones to provide a thorough evaluation.

Key Insights and Ideas

  • Democratizing Advanced Optimization: Ax significantly lowers the barrier to entry for using sophisticated adaptive experimentation techniques, making them accessible to researchers and engineers without deep expertise in Bayesian optimization.
  • End-to-End Solution: Ax isn't just an optimizer; it's a platform that handles the entire experimentation lifecycle, from configuration and execution to analysis and deployment, bridging the gap between research and production.
  • Flexibility is Key: The GenerationStrategy and modular design allow users to customize optimization workflows, integrate new algorithms, and adapt to diverse problem types.
  • Performance Matters: Ax, by default, achieves state-of-the-art performance across a wide range of challenging optimization problems, often outperforming other popular libraries, especially in complex scenarios like multi-objective or constrained optimization.
  • Production Readiness: Ax is designed for scale, used extensively at Meta for critical optimization tasks, and emphasizes robustness, reliability, and error handling.

Key Results

  • State-of-the-Art Performance: Ax consistently achieves top performance across various benchmark categories, including mixed/discrete, multi-objective, constrained, and noisy problems. For instance, in Table 2, Ax's scores are often significantly higher than those of baselines like Vizier, Optuna, and SMAC.
  • Efficiency Gains: Adaptive experimentation with Ax offers substantial sample efficiency improvements over naive methods like random search.
  • Competitive Runtime: While some methods like Optuna are faster, Ax's runtime is competitive, and its investment in computation often translates to superior optimization performance. Figure 8 shows this trade-off.
  • Effective Early Stopping: Ax's early-stopping capabilities are shown to be effective in reducing computational costs without sacrificing performance, as illustrated in Figure 7.
  • Scalability: Ax is deployed at Meta, handling thousands of engineers and tens of thousands of experiments, demonstrating its ability to scale to real-world industrial needs.

Limitations and Future Work

  • Overhead for High-Throughput: Ax's current design has some overhead that makes it less efficient for extremely high-throughput methods requiring thousands of trials per experiment (e.g., TuRBO). The authors are working to reduce this.
  • API Stability: Some advanced capabilities, like cost-aware multi-fidelity optimization and transfer learning, are not yet API-stable but are under active development.
  • Future Directions: The authors plan to improve support for features like cost-aware optimization, transfer learning, active learning, and preference-based optimization. They are also focused on reducing overhead for high-throughput scenarios.

Summary updated

BibTeX
@inproceedings{olson2025ax,
  author = {Miles Olson and Elizabeth Santorella and Louis C. Tiao and Sait Cakmak and Mia Garrard and Samuel Daulton and Zhiyuan Jerry Lin and Sebastian Ament and Bernard Beckerman and Eric Onofrey and Paschal Igusti and Cristian Lara and Benjamin Letham and Cesar Cardoso and Shiyun Sunny Shen and Andy Chenyuan Lin and Matthew Grange and Elena Kashtelyan and David Eriksson and Maximilian Balandat and Eytan Bakshy},
  title = {{Ax: A Platform for Adaptive Experimentation}},
  booktitle = {AutoML ABCD Track},
  year = {2025},
  url = {https://openreview.net/forum?id=U1f6wHtG1g},
}
Figure