Weighted Gaussian Process Bandits for Non-stationary Environments

Yuntian Deng, Xingyu Zhou, Baekjin Kim, Ambuj Tewari, Abhishek Gupta, Ness Shroff

Abstract

Optimizing complex, nonlinear reward functions that evolve over time is a critical challenge in machine learning. While Gaussian Processes (GPs) are powerful tools for modeling such functions, existing non-stationary GP bandit algorithms often rely on "hard-reset" mechanisms that aggressively discard past information. We present WGP-UCB (Weighted Gaussian Process Upper Confidence Bound), a novel framework that utilizes weighted GP regression to "softly" discount older observations. By integrating Quadrature Fourier Features (QFF) for kernel approximation, we provide the first frequentist sublinear regret guarantee for this class of problems. Empirical evaluations on synthetic and real-world financial data demonstrate that WGP-UCB consistently outperforms state-of-the-art baselines.

Introduction

The multi-armed bandit (MAB) problem is a fundamental paradigm for sequential decision-making under uncertainty. In many practical applications—ranging from dynamic stock market trading to personalized recommendation systems—the underlying reward function is non-stationary, meaning the optimal action changes over time.

While linear non-stationary bandits are well-studied, many real-world rewards exhibit complex nonlinearities best captured by Gaussian Processes. However, applying GPs to non-stationary settings is theoretically challenging. Existing methods like R-GP-UCB (restarting) and SW-GP-UCB (sliding window) use "hard" temporal boundaries, which can lead to instability or information loss. This paper proposes a "soft" weighting approach to bridge this gap.

The WGP-UCB Algorithm

The core of the proposed approach is the WGP-UCB algorithm, which balances exploration and exploitation using a weighted posterior.

1. Weighted GP Regression

Unlike standard GP regression, WGP-UCB applies an exponential discount factor $\eta \in (0, 1)$ to past observations. This ensures that recent data has a higher influence on the current model, allowing the agent to adapt to environmental shifts without completely losing the structural information captured in the past.

2. Quadrature Fourier Features (QFF)

To maintain theoretical tractability in infinite-dimensional Reproducing Kernel Hilbert Spaces (RKHS), the authors employ Quadrature Fourier Features. QFF approximates kernels (such as the Squared Exponential kernel) using a finite set of features, enabling the derivation of frequentist regret bounds that were previously elusive for non-stationary GP bandits.

3. Self-Normalized Concentration

A key theoretical contribution of this work is a new self-normalized concentration inequality tailored for weighted GP regression. This bound ensures that the algorithm's upper confidence bounds remain valid even as the underlying function drifts, providing a rigorous foundation for the regret analysis.

Experimental Evaluation

The authors evaluated WGP-UCB against three primary baselines: IGP-UCB (stationary), R-GP-UCB (restarting), and SW-GP-UCB (sliding window).

  • Synthetic Scenarios: Two environments were tested: one with abrupt changes where the reward function jumps at intervals, and another with slow changes where the function evolves continuously.
  • Real-World Financial Data: The model was tasked with selecting stocks from a pool of 29 based on daily profit potential over 823 days. This environment is characterized by high volatility and heavy-tailed reward distributions.
Empirical performance of WGP-UCB compared to baselines in abruptly changing, slowly changing, and stock market environments.

Key Results and Discussion

The theoretical analysis establishes a sublinear regret bound of approximately $\tilde{O}(T^{3/4})$, specifically $O(\gamma_T^{7/8} B_T^{1/4} T^{3/4})$, where $B_T$ represents the variation budget of the environment. This represents the first such guarantee for non-stationary GP bandits in a frequentist setting.

Empirically, WGP-UCB demonstrates superior performance across all test cases. In synthetic environments, the "soft" discounting mechanism allows for smoother transitions and lower cumulative regret compared to the "hard" resets of R-GP-UCB. In the stock market application, WGP-UCB proved particularly robust, maintaining performance where other algorithms struggled with the high noise and non-stationarity of financial returns.

Conclusion and Future Work

WGP-UCB provides a robust and theoretically grounded approach to non-stationary optimization. By moving from hard data resets to soft weighting, it achieves a better balance between memory and adaptability. Future research directions include developing adaptive weighting schemes that can automatically tune the discount factor $\eta$ in response to detected environmental changes and improving the computational scalability of GP-based methods for larger action spaces.

Summary updated

Abstract

In this paper, we consider the Gaussian process (GP) bandit optimization problem in a non-stationary environment. To capture external changes, the black-box function is allowed to be time-varying within a reproducing kernel Hilbert space (RKHS). To this end, we develop WGP-UCB, a novel UCB-type algorithm based on weighted Gaussian process regression. A key challenge is how to cope with infinite-dimensional feature maps. To that end, we leverage kernel approximation techniques to prove a sublinear regret bound, which is the first (frequentist) sublinear regret guarantee on weighted time-varying bandits with general nonlinear rewards. This result generalizes both non-stationary linear bandits and standard GP-UCB algorithms. Further, a novel concentration inequality is achieved for weighted Gaussian process regression with general weights. We also provide universal upper bounds and weight-dependent upper bounds for weighted maximum information gains. These results are of independent interest for applications such as news ranking and adaptive pricing, where weights can be adopted to capture the importance or quality of data. Finally, we conduct experiments to highlight the favorable gains of the proposed algorithm in many cases when compared to existing methods.
BibTeX
@inproceedings{deng2022weighted,
  author = {Yuntian Deng and Xingyu Zhou and Baekjin Kim and Ambuj Tewari and Abhishek Gupta and Ness Shroff},
  title = {{Weighted Gaussian Process Bandits for Non-stationary Environments}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=pNNvkAhaBu8},
}
Figure