Abstract
We conduct an empirical study of machine learning functionalities provided by major cloud service providers, which we call machine learning clouds. Machine learning clouds hold the promise of hiding all the sophistication of running large-scale machine learning: Instead of specifying how to run a machine learning task, users only specify what machine learning task to run and the cloud figures out the rest. Raising the level of abstraction, however, rarely comes free - a performance penalty is possible. How good, then, are current machine learning clouds on real-world machine learning workloads? We study this question with a focus on binary classification problems. We present mlbench, a novel benchmark constructed by harvesting datasets from Kaggle competitions. We then compare the performance of the top winning code available from Kaggle with that of running machine learning clouds from both Azure and Amazon on mlbench. Our comparative study reveals the strength and weakness of existing machine learning clouds and points out potential future directions for improvement.
Introduction
The industry is moving toward "declarative machine learning"—the idea that a user should only have to specify what they want to predict, while the cloud provider figures out how to do it (model selection, hyperparameter tuning, and execution). However, raising the level of abstraction usually comes with a performance penalty. In the world of database systems, query optimizers handle this, but in ML, a bad "physical plan" doesn't just make the code run slower—it produces a less accurate model. This study quantifies the quality loss when choosing the convenience of a "Machine Learning Cloud" over a best-effort, human-tuned system.
Methods
The researchers developed a novel evaluation framework consisting of three parts:
- The mlbench Benchmark: A collection of 18 datasets derived from "Featured" Kaggle competitions, providing a "gold standard" baseline of human-expert performance. These datasets vary significantly in size (up to 2.1 million rows) and feature count (up to 2,000).
- Quality Tolerance Metric ($\tau$): This measures how a cloud-provided model would rank in a real Kaggle competition. For example, a quality tolerance of 5% means the cloud model performed well enough to be in the top 5% of the leaderboard.
- Comparative Study: Two major platforms—Azure Machine Learning Studio and Amazon Machine Learning—were tested. To isolate the impact of feature engineering, models were evaluated using both "raw" features and "engineered" features extracted from winning code.
Key Results
The study reveals a significant "Expert Gap." Across all datasets, Azure’s best rank consistently achieved (its "capacity") was around the 31st percentile, while Amazon’s was around the 83rd. Azure generally outperformed Amazon due to its wider variety of models and more granular hyperparameter tuning options.
Key findings include:
- Feature Engineering is Paramount: Using human-engineered features improved model quality far more than hyperparameter tuning. In some cases, switching from raw to engineered features improved the AUC by as much as 0.15.
- Model Selection vs. Tuning: Disabling model selection (picking the wrong algorithm) hurt quality more significantly than disabling hyperparameter tuning. For large datasets, non-linear models like Boosted Decision Trees consistently outperformed linear ones.
- The Model Selection Paradox: While Azure's variety allows for better performance, it increases the user's burden. Model performance on the same dataset varied wildly (e.g., ranking from 3rd to 281st), suggesting that "declarative" tools still require significant expertise.
Discussion and Future Work
The authors conclude that the next frontier for ML clouds is "declarative feature engineering." To close the gap with human experts, cloud services must automate the transformation of raw data into meaningful signals—a task currently left to the user. Additionally, the study suggests that cloud providers should consider more flexible pricing models, as exhaustive hyperparameter searches on sophisticated models can be both time-consuming and costly for the end user.
Summary updated