Skip to content

nevergrad_cmaes: stopping and convergence criteria restart CMA-ES instead of ending the optimization #750

Backlog

Description

@janosg

When CMA-ES meets one of its stopping criteria, nevergrad starts a new CMA-ES run from the start parameters. optimagic's wrapper keeps asking for points until stopping_maxfun is used up. These options are documented as ending the optimization, but they only trigger a restart:

  • stopping_maxiter
  • stopping_cov_mat_cond
  • convergence_ftol_abs, convergence_ftol_rel, convergence_xtol_abs
  • convergence_iter_noimprove

Since #749 the result is the best point of all restarts and stopping_maxtime ends the optimization. The budget is still wasted, though. On a 3-dimensional sphere with 10,000 evaluations, CMA-ES converges after about 400 evaluations and is restarted about 24 times. The result also never reports that it converged. Every restart uses the same start parameters and population size, so the restarts are not a deliberate restart strategy such as IPOP either.

Possible fixes:

  1. Call the cma package directly instead of nevergrad's ParametrizedCMA. CMA-ES's own criteria would then end the run, and restarts (e.g. IPOP) could become an explicit option.
  2. Keep nevergrad and stop the loop when the internal CMA-ES has stopped. This needs nevergrad's private attribute _es.

Related: nevergrad_meta(optimizer="NoisyBandit") is designed for noisy functions. With 1000 evaluations it evaluates only 28 distinct points and spends the rest on re-evaluations. Should it stay among the choices?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions