A Trajectory-Based Bayesian Approach to Multi-Objective Hyperparameter Optimization with Epoch-Aware Trade-Offs

Wenyu Wang, Zheyi Fan, Szu Hui Ng

TL;DR

This paper introduces a new framework for optimizing machine learning models called Enhanced Multi-Objective Hyperparameter Optimization (EMOHPO), which treats training epochs as a decision variable alongside hyperparameters. They propose a novel Trajectory-based Multi-Objective Bayesian Optimization (TMOBO) algorithm that leverages learning curves (trajectories) and an early stopping mechanism to efficiently find optimal trade-offs between objectives like performance and training cost, even when those trade-offs emerge before full training.

What Problem Does This Paper Address?

Training modern machine learning models is computationally expensive and iterative, with performance improving over many training epochs. Traditional Multi-Objective Hyperparameter Optimization (MOHPO) methods typically only consider the final performance after a model is fully trained. This overlooks valuable information contained within the learning curves (trajectories) of partially trained models. Crucially, trade-offs between objectives (e.g., achieving good validation loss vs. minimizing training cost) can emerge before a model is fully trained, especially in cases like overfitting where a shorter training run might yield better generalization. Existing MOHPO methods fail to capture these early-emerging trade-offs, potentially leading to suboptimal choices and wasted computational resources.

Methods

The authors propose two key innovations:

  1. Enhanced MOHPO (EMOHPO) Formulation: They redefine the optimization problem to jointly optimize hyperparameters ($\mathbf{x}$) and the number of training epochs ($t$). This allows them to discover trade-offs across all possible training durations, not just the maximum.
  2. Trajectory-based Multi-Objective Bayesian Optimization (TMOBO): This algorithm is designed to solve EMOHPO. Its core components are:
  3. Trajectory-Aware Acquisition Function: Instead of just looking at the final predicted performance, TMOBO's acquisition function (TEHVI) considers the entire predicted trajectory of model performance over epochs for a given hyperparameter setting. This helps identify settings that show promise early on.
  4. Multi-Objective Early Stopping Mechanism: TMOBO dynamically determines when to stop training a particular hyperparameter setting. It uses GP predictions of the learning curve and a conservative stopping criterion to avoid unnecessary training once the trajectory is unlikely to yield further improvements to the Pareto front. This significantly boosts efficiency.

Datasets

The paper evaluates their approach on:

  • Synthetic Simulations: Standard multi-objective benchmarks (ZDT1, ZDT2, DTLZ1, DTLZ2, DTLZ7) augmented with epoch-dependent curve functions (monotonic, quadratic, periodic) to simulate various learning curve behaviors.
  • LCBench: A benchmark for tuning Multi-Layer Perceptrons (MLPs) on five different datasets, optimizing validation loss and training cost.
  • CNN Benchmark: Tuning a MobileNetV2 model on the CIFAR-10 dataset, optimizing validation accuracy and training efficiency.

Key Insights and Ideas

  • Epochs are Decision Variables, Not Just Parameters: Treating training epochs as a tunable parameter fundamentally changes the optimization landscape, revealing trade-offs that are invisible to traditional methods.
  • Learning Curves Hold Crucial Information: The entire trajectory of a model's performance during training, not just its final state, is rich with information about potential trade-offs and efficiency gains.
  • Early Stopping is Key for Efficiency: Dynamically stopping training based on predicted trajectory improvements is critical for saving computational resources in expensive ML training scenarios.
  • Overfitting Trade-offs are Real: The paper highlights that a model trained for fewer epochs can sometimes be superior (e.g., better generalization), and EMOHPO can discover these optimal "partially-trained" solutions.

Key Results

  • Improved Performance: TMOBO consistently achieved better or comparable Hypervolume (HV) differences compared to state-of-the-art multi-objective Bayesian optimization methods (ParEGO, qEHVI, qNEHVI) across synthetic and real-world benchmarks.
  • Enhanced Efficiency: TMOBO's early stopping mechanism significantly reduced wall-clock time, especially in computationally expensive tasks like CNN training, without sacrificing performance. For instance, on the MobileNetV2 task, TMOBO converged faster than its non-early-stopping variant (TMOBO-nES).
  • Robustness to Trajectory Complexity: TMOBO demonstrated strong performance even with complex or noisy learning curve characteristics, outperforming alternatives that struggle to adapt.

Limitations and Future Work

  • Acquisition Function Optimization: Optimizing the TEHVI acquisition function remains challenging due to its lack of an analytical form and multi-modal nature. The authors suggest further research into developing more efficient approximations.
  • Replication Strategy: While the paper briefly outlines a strategy for handling noisy observations through replication (TMOBO-P), this was not extensively evaluated. Further exploration of this aspect could be beneficial.
  • Scalability: While TMOBO shows good scalability, the computational cost of GP modeling and acquisition function optimization can still be a bottleneck for extremely large-scale problems.

Summary updated

BibTeX
@inproceedings{wang2025trajectory,
  author = {Wenyu Wang and Zheyi Fan and Szu Hui Ng},
  title = {{A Trajectory-Based Bayesian Approach to Multi-Objective Hyperparameter Optimization with Epoch-Aware Trade-Offs}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=tN5ODVwVhl},
}
Figure