Online learning with kernel losses

Aldo Pacchiano, Niladri S. Chatterji, Peter L. Bartlett

Introduction

In the field of adversarial online learning, a player repeatedly selects actions from a decision set and incurs losses determined by an adversary. While the framework for linear or convex losses is well-established, many real-world applications involve complex, non-linear, and even non-convex loss functions.

The "kernel trick" offers a powerful method for handling such non-linearity by mapping data into a high-dimensional (often infinite-dimensional) Reproducing Kernel Hilbert Space (RKHS). However, extending this to the bandit setting—where the player only observes the numerical value of their loss rather than the function itself—presents significant theoretical challenges. In infinite dimensions, estimating the adversary's strategy becomes difficult. This paper bridges that gap, providing a theoretical foundation and sharp regret bounds for online learning when the underlying losses are kernel functions.

The Challenge of Infinite Dimensions

The primary difficulty in kernelized bandit problems is the dimensionality of the RKHS. To make the problem tractable, the authors propose approximating infinite-dimensional kernels with finite-dimensional "proxy" versions.

Proxy Kernels via Kernel PCA

Using Mercer’s Theorem, a kernel can be decomposed into its eigenvalues and eigenfunctions. Since an analytical decomposition is not always possible, the authors employ Kernel Principal Component Analysis (KPCA) on a set of samples to construct a finite-dimensional proxy feature map. This map allows the algorithm to operate in a compressed space that still captures the essential structure of the original kernel.

Algorithm 1: Bandit Exponential Weights

The authors adapt the classic EXP2 algorithm for the bandit setting. By utilizing the proxy feature map, the algorithm builds an estimate of the adversary’s action. To ensure this estimate remains stable and the variance is controlled, they incorporate "John’s distribution" for exploration, a technique that optimizes the sampling distribution over the decision set.

Key Insights: Eigendecay is Destiny

A central finding of this research is that the complexity of the kernel learning problem is not determined by the input dimension $d$, but rather by the eigendecay of the kernel. The rate at which the kernel's eigenvalues $\mu_j$ decrease dictates the achievable regret.

  1. Polynomial Eigendecay: For kernels where eigenvalues decay at a polynomial rate $\mu_j \le \mathcal{O}(j^{-\beta})$, the regret is bounded by $\mathcal{R}_n \le \mathcal{O}(n^{\beta/(2(\beta-1))})$.
  2. Exponential Eigendecay: For kernels with faster decay, such as the Gaussian kernel (where $\mu_j \le \mathcal{O}(e^{-\beta j})$), the algorithm achieves a much tighter regret bound: $\mathcal{R}_n \le \mathcal{O}(\sqrt{n \log n})$. This nearly matches the performance of standard linear bandit algorithms.

The Bias-Variance Tradeoff

Choosing the dimension $m$ of the proxy kernel involves a delicate balance. A larger $m$ reduces the approximation bias (how well the proxy represents the true kernel) but increases the variance of the loss estimates. The paper provides the optimal scaling for $m$ to minimize the total regret over $n$ rounds.

Beyond Convexity and Full Information

One of the most significant advantages of the kernel framework is its ability to handle certain non-convex losses. For instance, Gaussian kernels or general quadratic losses can be processed within this framework while still providing sublinear regret guarantees.

In addition to the bandit setting, the authors explore the full information setting, where the player observes the entire loss function at the end of each round. They present two primary approaches for this scenario:

  • Adapted Exponential Weights: A kernelized version of the standard hedge algorithm.
  • Conditional Gradient Descent (Frank-Wolfe): This method is particularly computationally efficient as it avoids expensive projection steps onto complex sets, which are often required in standard gradient-based methods.

Empirical Evaluation and Computational Efficiency

The algorithms were evaluated using synthetic and structured loss functions:

  • Synthetic Quadratic Losses: Tested the algorithm's robustness in non-convex scenarios where the loss matrix is not positive semi-definite.
  • Gaussian Kernel Losses: Demonstrated performance on non-linear kernels with exponential eigendecay.
  • Posynomial Losses: Used to show that for specific classes of polynomials, the required optimization and sampling steps can be performed in polynomial time, making the approach practically implementable.

Conclusion and Future Work

This work provides the first sharp characterization of regret for online learning with kernel losses. By linking regret to the eigendecay of the kernel, it offers a clear roadmap for choosing kernels in adversarial settings.

Future research directions include determining whether these upper bounds are strictly optimal (matching lower bounds) and extending the analysis to "flat" kernels with very slow eigendecay (where $\beta \le 1$). Additionally, exploring Mirror Descent variants of these kernel algorithms may yield more efficient solutions for specific problem geometries.

Summary updated

BibTeX
@inproceedings{pacchiano2019online,
  author = {Aldo Pacchiano and Niladri S. Chatterji and Peter L. Bartlett},
  title = {{Online learning with kernel losses}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=BJNUp9-O-r},
}
Figure