In many applications, it may be necessary to consider multiple competing metrics which have optimal values for different parameters. SigOpt enables this through Multimetric Experiments.
How does Multimetric Optimization work?
The contour plots below depict two competing metrics, where parameter values of x1 and x2 cannot simultaneously meet the optima for both metrics f1 and f2. For example, it can be extremely challenging to maximize both model performance and minimize training time. SigOpt’s Multimetric Optimization tries to solve this problem by finding sets of feasible or optimal values. The result of a Multimetric Experiment is a Pareto Frontier.
Defining a Multimetric Experiment in SigOpt
A SigOpt Multimetric Experiment can be conducted to explore the optimal values achievable for both metrics. Notice that, unlike for single metric functions, this multimetric function returns a set of optimal values which contain the name of the metric and the associated value for that metric.
Below is an example of possible outcomes of a Multimetric Experiment involving the metrics from the contour plots above.
The graph on the left shows the region of feasible points with the blue circles representing the efficient points that SigOpt found on the Pareto frontier, the red circles representing other suggested parameters from SigOpt, and the black dots representing randomly chosen parameters (to show the outline of the region). Each of the efficient blue circles in the left graph corresponds to an efficient parameter choice represented by a blue circle in the right graph.
A domain expert may be able to judge which of the results in the left graph is preferred, and then use the parameters from the right graph (also accessed through best assignments endpoint) to create the desired model in production. For further reading, check out our thoughts here.
SigOpt will find trade-offs in each of your metrics in order to find the efficient frontier. If you want to quantify how much of a trade-off you’re willing to make, check out the Metric Thresholds feature.
Limitations
Budget must be set when a Multimetric Experiment is created