Ax icon indicating copy to clipboard operation
Ax copied to clipboard

[GENERAL SUPPORT]: slow compared to other bayes opt package

Open Yoonho-Na opened this issue 6 months ago • 2 comments

Question

Hi I've been using the bayesian optimization python package below. https://github.com/bayesian-optimization/BayesianOptimization

for the same experiment, the above package took about 45 mins (initital points: 20, iteration number: 250) but when I use Ax, it takes like 2 hours(max_trials=1, trial_number=250).

why is that? Is there any way to speed up the optimizing process in Ax?

Please provide any relevant code snippet if applicable.


Code of Conduct

  • [x] I agree to follow this Ax's Code of Conduct

Yoonho-Na avatar Jun 16 '25 05:06 Yoonho-Na

You could try BoTorch if you want speed. Ax is built on it anyway. Depending on the type of optimization you are doing, I would suggest trying the TURBO optimization, it is quick and works like a charm, at least for me

VMLC-PV avatar Jun 16 '25 13:06 VMLC-PV

@Yoonho-Na can you provide a bit more detail on the specific problem you're running (how many parameters and what kind, is this single-objective or multi-objective, are there any constraints either on parameters or black box outcomes, etc.)?

In general, Ax focuses on quality over speed and 250 iterations are quite a bit for typical black box optimization setting, so I'm not too surprised that under the default settings it is slower than the other library you mention. There are ways to speed up things, but it would be good to understand the specific problem setting first.

Balandat avatar Jun 16 '25 13:06 Balandat