Mind the Gap: Measuring Generalization Performance Across Multiple Objectives

Matthias Feurer, Katharina Eggensperger, Edward Bergman, Florian Pfisterer, Bernd Bischl, Frank Hutter

TL;DR

This paper tackles a critical issue in multi-objective hyperparameter optimization (MHPO): the "generalization gap." Standard evaluation metrics, like the hypervolume indicator of the Pareto front, can be misleading because models optimal on validation data may not be on test data. The authors introduce a novel evaluation protocol using "optimistic" and "pessimistic" Pareto fronts to quantify this gap, enabling more reliable comparisons of MHPO methods.

What Problem Does This Paper Address?

In machine learning, we often optimize models for multiple objectives simultaneously. For instance, we might want a model that is both highly accurate and very fast to run. Multi-objective hyperparameter optimization (MHPO) algorithms are designed to find a set of "best compromise" models, known as the Pareto front. The performance of these MHPO algorithms is typically assessed by how well they approximate this Pareto front on a validation dataset.

However, a major challenge arises when we move from the validation set to the unseen test set. Due to the inherent randomness in data splitting and the potential for models to overfit to the validation set, a model that appears to be a good compromise on the validation data might actually be suboptimal or even dominated on the test data. This phenomenon, termed the "generalization gap," makes it difficult to reliably evaluate and compare different MHPO algorithms. The standard approach of calculating metrics like the hypervolume indicator on the test set can lead to overestimation of performance or even be exploited by adversarial methods.

Methods

The core contribution of this paper is a new evaluation protocol designed to measure and account for the generalization gap in MHPO. The authors introduce two key concepts:

  • Optimistic Pareto Front ($P_{optimistic}$): This is the Pareto front of the candidate models (found on the validation set) when evaluated on the test set, considering only those models that remain non-dominated on the test set.
  • Pessimistic Pareto Front ($P_{pessimistic}$): This is the Pareto front of the candidate models (found on the validation set) when evaluated on the test set, considering all models that were part of the validation Pareto front.

By computing the hypervolume for both the optimistic and pessimistic Pareto fronts, the authors define the approximation gap. This gap quantifies how much the Pareto front approximation degrades when moving from validation to test data. A zero gap indicates perfect generalization, while a larger gap signifies a more unstable or overfitted solution.

This new protocol allows for three ways to compare MHPO algorithms:

  1. Hypervolume Difference: Comparing the optimistic hypervolume of one algorithm against the pessimistic hypervolume of another.
  2. Dominance: Using the optimistic and pessimistic Pareto fronts to check if one algorithm's front dominates another's.
  3. Approximation Gap: Comparing the size of the approximation gap itself, indicating robustness.

Datasets

The paper uses the German credit dataset for their experimental evaluation. This dataset is described as relatively small, leading to high variance in algorithm performance, and unbalanced. It contains 1000 samples and 20 features, with 13 of them being categorical. The authors performed a 60/20/20 train/validation/test split. No new benchmarks were introduced; the focus was on evaluating existing MHPO methods on a standard dataset.

Key Insights and Ideas

  • The "generalization gap" is a real and significant problem: The paper convincingly demonstrates that models optimal on validation data are not guaranteed to be optimal on test data, and this can fundamentally break standard evaluation metrics.
  • Optimistic vs. Pessimistic Pareto Fronts: This is the core novel idea. By defining these two fronts based on test set performance, the authors create a framework to quantify the uncertainty and instability introduced by generalization.
  • Approximation Gap as a measure of robustness: The approximation gap directly measures how much the Pareto front "shrinks" or becomes dominated when moving to unseen data, serving as a direct analogue to overfitting.
  • MHPO comparison needs a new paradigm: The paper argues that traditional hypervolume calculations on test sets are insufficient and can be misleading, necessitating the proposed protocol for reliable comparisons.

Key Results

The experimental evaluation on the German credit dataset with random search for hyperparameter optimization of random forests and linear models showed:

  • Existence of the Approximation Gap: In all experiments, the approximation gap was non-zero, confirming that the Pareto front approximation does not perfectly generalize to the test set.
  • Unstable Hypervolumes: The hypervolume indicators (both optimistic and pessimistic) did not always increase monotonically with more function evaluations, highlighting the generalization issue. For example, the pessimistic hypervolume for the random forest decreased when going from 200 to 500 evaluations.
  • Demonstrated Comparability: The proposed protocol allowed for meaningful comparisons between the random forest and linear model optimization. For instance, at 50 evaluations, the linear model performed better, while at 200, the random forest was superior, a conclusion that was not always clear using traditional methods.
  • Approximation Gap as a differentiator: The approximation gap varied between algorithms and across different numbers of function evaluations, suggesting that some models provide more stable solutions than others.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Effect of Datasets and Function Evaluations: The paper's findings are based on one dataset and a limited number of function evaluations. Future work should investigate the effect of these factors across a larger number of datasets.
  • Measurement Noise: The current protocol assumes perfect evaluation of costs. Future work should extend the protocol to account for measurement noise in the cost functions.
  • Multiple Repetitions and Cross-Validation: The experiments were conducted with a single train/validation/test split. Repeating experiments and using cross-validation would provide more robust statistical guarantees.
  • Additional Multi-Objective Problems: The protocol should be evaluated on other multi-objective problems, such as trading off true-positive and false-positive rates, or fairness and predictive performance.
  • Data Streams: The paper suggests studying the related problem of distribution shifts in data streams, which is a natural extension of generalization.

Summary updated

BibTeX
@inproceedings{feurer2023mind,
  author = {Matthias Feurer and Katharina Eggensperger and Edward Bergman and Florian Pfisterer and Bernd Bischl and Frank Hutter},
  title = {{Mind the Gap: Measuring Generalization Performance Across Multiple Objectives}},
  booktitle = {IDA},
  year = {2023},
  doi = {10.1007/978-3-031-30047-9\_11},
}
Figure