TL;DR
Researchers from IBM Research Zurich have introduced CloudBandit, a novel algorithm designed to optimize distributed workloads across multiple cloud providers. By treating cloud selection as a hierarchical search problem and leveraging techniques from Automated Machine Learning (AutoML), they achieved up to 65% lower median costs and 20% lower execution times compared to random configuration choices.
What Problem Does This Paper Address?
Enterprises are increasingly adopting multi-cloud strategies to avoid vendor lock-in and exploit price-performance differences between providers like AWS, Azure, and GCP. However, this flexibility comes with a massive headache: configuration.
For any given workload (e.g., training an ML model), a user must decide:
- Which cloud provider to use?
- How many nodes are needed?
- Which specific VM types (CPU, RAM, network) should be selected?
Because each provider has a unique, non-uniform set of hardware options, the search space is both vast and hierarchical. Existing tools designed for a single cloud often fail to scale to this multi-cloud "selection-configuration" problem, leading to sub-optimal deployments that waste significant time and money.
Methods
The authors explored three main avenues to solve this optimization challenge:
- Adapting Single-Cloud SOTA: They tested two ways to adapt existing Bayesian Optimization (BO) tools like CherryPick:
- Flattening: Treating all provider-specific parameters as one giant, flat list.
-
Independent Optimizers: Running a separate optimizer for each cloud with a split budget.
Fig. 1: Domains resulting from two adaptations of state-of-the-art optimizers to the multi-cloud setting: a) Flattened domain (single optimizer instance), and b) Hierarchical domain (K independent optimizer instances). -
Leveraging AutoML: They recognized that multi-cloud configuration is mathematically similar to the CASH (Combined Algorithm Selection and Hyperparameter Optimization) problem in machine learning. They applied established AutoML optimizers like SMAC and HyperOpt, which are natively designed to handle hierarchical search spaces.
- CloudBandit (CB): The authors proposed a new algorithm that treats cloud providers as "arms" in a multi-armed bandit problem. CB uses a black-box optimizer (like RBFOpt) to explore configurations within each cloud. Crucially, it uses a multiplicative budget growth factor to focus exponentially more resources on promising providers while quickly discarding poor performers.
Datasets
To evaluate these methods, the researchers built a one-of-a-kind offline benchmark dataset. Since running thousands of live cloud experiments is prohibitively expensive, they pre-collected data for:
- 30 Workloads: 10 Dask-based tasks (e.g., XGBoost training, k-means clustering) across 3 different input datasets.
- 3 Major Providers: AWS, Azure, and GCP.
- 88 Configurations: Varying cluster sizes, VM families, and vCPU counts.
- 60 Optimization Tasks: Targeting either minimum runtime or minimum cost.
Key Insights and Ideas
- Hierarchy is Essential: Methods that "flatten" the domain perform poorly because they waste evaluations trying to understand non-existent relationships between parameters of different clouds. Methods that acknowledge the hierarchy (like SMAC and CloudBandit) are significantly more efficient.
- Search Beats Prediction: While predictive models (like Random Forests) can provide a quick guess, they are often too noisy. Iterative, search-based methods that use real-time feedback consistently find much better configurations.
- Random Search is a Tough Baseline: Surprisingly, many sophisticated single-cloud adaptations were outperformed by simple Random Search in the multi-cloud setting. This highlights that "naive" optimization can actually be detrimental if it doesn't fit the problem structure.
- Profitability Matters: The authors introduced a "savings analysis" to ensure the cost of the search itself doesn't outweigh the production savings. They found that exhaustive search is never profitable, whereas CloudBandit pays for itself very quickly.
Key Results
The experiments showed that SMAC and CloudBandit (CB-RBFOpt) were the clear winners.
-
Regret Reduction: As shown in the figure below, hierarchical methods (SMAC, CB) achieve much lower "regret" (distance to the true optimal) compared to standard adaptations or random search.
Fig. 3: Regret of hierarchical AutoML optimizers and the CloudBandit scheme, compared against both adaptations of CherryPick: flattened domain (‘x1’) and independent optimizers (‘x3’) and random search. -
Production Impact: For a recurring workload run 64 times, CB-RBFOpt achieved:
- 65% lower median cost than a random choice.
- 20% lower median runtime than a random choice.
- Efficiency: CloudBandit was particularly effective at small search budgets, making it ideal for users who want quick results without spending too much on the optimization process itself.
Limitations and Future Work
While the results are promising, the authors noted a few areas for expansion:
- Workload Variety: The current study focused on distributed data analytics. Future work will look at ML inference applications, which have different performance characteristics.
- White-Box Optimization: Currently, CloudBandit treats the workload as a black box. The authors plan to incorporate low-level metrics (like CPU utilization or I/O pressure) to guide the search even more effectively.
- Billing Nuances: The cost model used was a simplification (runtime × hourly rate). Real-world cloud billing includes complex factors like data egress fees and spot instance pricing that could be integrated into future versions.
Summary updated