Time-Varying Bayesian Optimization Without a Metronome

Anthony Bardou, Patrick Thiran

TL;DR

Time-Varying Bayesian Optimization (TVBO) algorithms usually assume a constant sampling frequency, ignoring the reality that Gaussian Process inference slows down drastically as data accumulates. This paper introduces the first regret bound that explicitly accounts for changing algorithm response times and proposes BOLT, a novel TVBO algorithm that dynamically optimizes its dataset size and discards stale data to maintain peak performance over time.

What Problem Does This Paper Address?

Bayesian Optimization (BO) is a powerful framework for finding the global maximum of expensive, noisy black-box functions. However, many real-world problems are dynamic—the objective function changes over time (e.g., tracking environmental phenomena with a drone or optimizing a wireless network with moving users). This variant is known as Time-Varying BO (TVBO).

Standard BO relies on Gaussian Processes (GPs) as surrogate models, which suffer from a major computational bottleneck: their training complexity scales cubically ($O(n^3)$) with the number of observations ($n$). As a TVBO algorithm collects more data, it takes longer to compute the next query. In a changing environment, taking too long means your model is optimizing for the past, not the present. Existing TVBO theories sweep this under the rug by assuming a constant sampling frequency (acting as a "metronome"). This paper tackles the realistic scenario where the algorithm's response time slows down as the dataset grows, threatening its ability to track a moving target.

Methods

The authors derive a new asymptotic upper regret bound that explicitly incorporates the algorithm's response time $R(n)$. From this theoretical foundation, they extract two key recommendations for long-term TVBO:

  1. Optimal Dataset Size ($n^*$): Instead of letting the dataset grow indefinitely or resetting it arbitrarily, they find a mathematically optimal dataset size that balances model accuracy against computational slowdown.
  2. Relevancy-Based Data Removal: When the dataset size exceeds $n^*$, the algorithm drops the observation that minimizes the integrated 2-Wasserstein distance between the GP posteriors before and after removal. This minimizes the disruption to the acquisition function.

They implement these principles in a new algorithm called BOLT (Bayesian Optimization in the Long Term). BOLT uses a 3rd-degree polynomial regression to learn its own hardware-dependent response time $R(n)$ in real-time, dynamically computes $n^*$, and cleans its dataset on the fly.

Recommended dataset size $n^*$ varies based on temporal kernel smoothness and response time scaling.

Datasets

The authors evaluated BOLT against several state-of-the-art TVBO algorithms across 10 diverse benchmarks:

  • Synthetic Functions: Shekel, Hartmann (3D & 6D), Ackley, Griewank, Eggholder, Schwefel, and Powell. These functions simulate various landscapes, ranging from highly erratic to very smooth.
  • Temperature: A 3D space-time interpolation of real-world temperature data collected from 46 sensors deployed at Intel Research Berkeley.
  • WLAN: A 7D real-world benchmark optimizing the throughput (Shannon capacity) of a Wireless Local Area Network with 27 moving users and 6 fixed nodes.

Key Insights and Ideas

  • The GP Complexity Trade-off: More data usually means a better model, but in TVBO, more data means slower execution. If the function changes faster than the algorithm can think, a large dataset becomes a liability rather than an asset.
  • Kernel Smoothness Dictates Memory: The smoothness of the temporal kernel directly impacts how much data you should keep. Smoother kernels (like RBF) retain information from further in the past, leading to a larger optimal dataset size $n^*$, whereas erratic functions require aggressive data pruning.
  • Smart Pruning over Chronological Pruning: Simply dropping the oldest data is suboptimal. Using a Wasserstein-distance metric to drop data that alters the acquisition function the least ensures that rare but highly informative historical data points are preserved.

Key Results

BOLT consistently achieved top-tier performance across all scenarios, adapting seamlessly whether a problem was quasi-static or had a near-constant response time.

  • Overall Performance: In the aggregated benchmark evaluation, BOLT achieved a normalized average regret of 0.02, vastly outperforming standard GPUCB (0.62) and the previous state-of-the-art TVBO methods like TV-GPUCB (0.38) and W-DBO (0.19).
  • Dynamic Adaptation: As shown in the dataset size tracking, BOLT dynamically adjusts its behavior: it aggressively discards data on erratic functions like Eggholder to stay fast, but retains data on smooth functions like Powell where historical data remains relevant.
Evolution of dataset sizes $n$ for TVBO algorithms on Eggholder (erratic) vs. Powell (smooth) functions.

Limitations and Future Work

The primary limitation of this work is the assumption of covariance separability, meaning the spatio-temporal kernel must be broken down into independent spatial and temporal components ($k = k_S \cdot k_T$). The authors note that future work will focus on relaxing this assumption to explore non-separable covariance functions, which could capture more intricate, coupled spatio-temporal dynamics.

Summary updated

BibTeX
@misc{bardou2025time,
  author = {Anthony Bardou and Patrick Thiran},
  title = {{Time-Varying Bayesian Optimization Without a Metronome}},
  year = {2025},
  eprint = {2501.18963},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.18963},
}
Figure