Abstract
Automated Machine Learning (AutoML) has the potential to democratize AI, yet existing solutions are often prohibitively resource-intensive. We introduce FLAML (Fast and Lightweight AutoML), a framework designed to optimize the cost-error tradeoff. By prioritizing "cheap" improvements through a novel Estimated Cost for Improvement (ECI) metric and jointly optimizing hyperparameters with sample sizes, FLAML achieves state-of-the-art performance under strict time constraints. Our evaluation across 53 datasets shows that FLAML can outperform established libraries like Auto-sklearn and H2O AutoML by orders of magnitude in efficiency.
Introduction
The promise of AutoML is to automatically select the best machine learning models and hyperparameters for a given task. However, the high computational cost of current tools remains a significant barrier for small teams and real-time applications, such as database selectivity estimation. Most AutoML systems focus solely on minimizing error, often ignoring the time and compute power required to reach that error level. FLAML addresses this by making computational cost a first-class citizen in the optimization process.
Methodology
FLAML departs from traditional Bayesian Optimization by employing a cost-aware search strategy. The core of its efficiency lies in several key innovations:
- Estimated Cost for Improvement (ECI): FLAML estimates the cost required to find a better model configuration. It prioritizes learners and hyperparameters that offer the highest "error reduction per second," ensuring that expensive computations are only performed when justified.
- Joint Optimization of Search Space: Unlike tools that separate hyperparameter tuning from data subsampling, FLAML simultaneously optimizes the learner, hyperparameters, sample size, and resampling strategy.
- Cost-Aware Randomized Search: The system starts with low-complexity configurations and small data samples, gradually increasing complexity as needed. This "cheap-to-expensive" trajectory allows for rapid pruning of the search space.
As illustrated in the dependency graph above, FLAML models the relationships between learners ($l$), hyperparameters ($h$), sample sizes ($s$), and resampling strategies ($r$) to optimize both cost ($\kappa$) and error ($\epsilon$).
Experimental Evaluation
The researchers evaluated FLAML on a diverse suite of 53 datasets, including 39 classification tasks from OpenML and 14 regression tasks from PMLB. The benchmark also included a real-world database selectivity estimation task. FLAML was compared against heavyweights such as Auto-sklearn, H2O AutoML, and TPOT.
Key Results
The quantitative analysis revealed that FLAML is exceptionally efficient. In many cases, FLAML achieved better results in just one minute than competitors could achieve in an hour.
Figure 2 highlights the efficiency of the FLAML approach. The left panel shows that FLAML (triangles) generally reaches lower regret levels at lower computational costs than HpBandSter (circles). The right panel demonstrates superior "anytime" performance, where FLAML's regret drops more sharply as the total AutoML time increases.
In real-world applications like database selectivity estimation, FLAML was the only AutoML solution to consistently outperform expert-tuned manual baselines within a tight one-minute window.
Conclusion and Future Work
FLAML demonstrates that AutoML does not have to be resource-hungry to be effective. By explicitly accounting for computational cost, it provides a practical solution for "on-the-fly" machine learning tasks. Future work includes exploring post-processing ensembling to further improve accuracy and incorporating lightweight meta-learning to accelerate the search on familiar data types.
Summary updated