Differentially Private Kernelized Contextual Bandits

Nikola Pavlovic, Sudeep Salgia, Qing Zhao

TL;DR

This paper introduces USCA, a novel algorithm for contextual kernel bandits that guarantees Joint Differential Privacy (JDP) for both user contexts and rewards. By prioritizing privacy in its query design and utilizing a unique low-sensitivity covariance estimator, the algorithm achieves an order-optimal error rate across a wide range of kernel families, including the popular Matérn kernels.

What Problem Does This Paper Address?

Contextual bandit algorithms are widely deployed in modern recommendation engines, personalized medicine, and online advertising. In these settings, an agent selects an action (e.g., recommending a product) based on a given context (e.g., a user's search history) and observes a reward (e.g., a purchase). Because contexts and rewards often contain highly sensitive personal data, protecting user privacy is paramount.

Joint Differential Privacy (JDP) provides a rigorous framework to ensure that an adversary cannot deduce a specific user's data from the algorithm's sequence of actions. While JDP solutions exist for linear bandits, extending them to kernel bandits—which handle complex, non-linear relationships using infinite-dimensional Reproducing Kernel Hilbert Spaces (RKHS)—presents a massive challenge.

Standard private bandit methods typically take a "utility-first" approach: they use highly adaptive query strategies to maximize rewards and then inject noise to mask privacy. In kernel spaces, this adaptivity causes data sensitivity to skyrocket, leading to compounding noise that destroys the algorithm's utility over time. Prior state-of-the-art methods bypassed this only by using low-dimensional approximations, restricting their use strictly to Square Exponential kernels.

Methods

The authors propose USCA (Uniform Sampling with Covariance Approximation), flipping the traditional design on its head with a "privacy-first" architecture split into two distinct stages:

  1. The Learning Stage (Data-Independent Queries): Instead of adaptively choosing actions based on past data, USCA samples its query points uniformly at random from the action space. Because the queries are entirely decoupled from past contexts and rewards, no noise injection is required during data collection, completely eliminating the compounding noise pitfall.
  2. The Prediction Stage (Low-Sensitivity Estimation): To make a private prediction for a new context, the algorithm introduces a novel reward estimator ($\bar{\mu}_T$). Standard Gaussian Process methods rely on a highly sensitive, data-dependent Gramian matrix. USCA replaces this matrix with an empirical average calculated from an independently drawn "approximating set" ($Z$) of contexts and actions.

Finally, the algorithm feeds this low-sensitivity estimator into the classic Exponential Mechanism to privately sample and output the optimal action.

[Learning Stage]  --> Uniform Random Sampling (No noise injection needed!)
        |
        v
[Prediction Stage] --> Covariance Approximation via Independent Set Z 
        |
        v
[Final Output]    --> Exponential Mechanism for Private Action Selection

Datasets

Not discussed in the paper. This work is purely theoretical and focuses on proving mathematical guarantees, convergence rates, and regret bounds. No empirical datasets or experimental evaluations were conducted.

Key Insights and Ideas

  • Privacy-First Beats Utility-First: Trying to patch privacy onto a highly adaptive, non-private algorithm often leads to a vicious cycle of high sensitivity and overwhelming noise. USCA demonstrates that non-adaptive uniform sampling during the learning phase completely neutralizes privacy leaks during data gathering.
  • Decoupling Covariance: The core "aha moment" is that the feature covariance matrix does not need to be derived from the actual observed dataset to maintain high utility. By using an independent approximating set $Z$, the authors use concentration inequalities to prove that the new estimator achieves the same order of approximation accuracy as the standard posterior mean, but with drastically lower sensitivity.
  • Democratizing Kernel Selection: By breaking free from the requirement of low-dimensional feature approximations, this technique expands JDP guarantees to any kernel family exhibiting polynomial eigenvalue decay, notably bringing the widely used Matérn kernel family into the fold.

Key Results

  • Privacy Guarantee: The paper mathematically proves that the USCA algorithm satisfies $\varepsilon$-Joint Differential Privacy ($\varepsilon$-JDP).
  • Order-Optimal Error Rate: The algorithm achieves an expected predictive error rate (simple regret) of: $$\mathcal{O}\left(\sqrt{\frac{\gamma_T}{T}} + \frac{\gamma_T}{T \varepsilon}\right)$$ where $\gamma_T$ represents the effective dimensionality (maximal information gain) of the kernel, $T$ is the number of queries, and $\varepsilon$ is the privacy parameter.

  • Graceful Degradation: In the non-private limit where the privacy constraint relaxes ($\varepsilon \to \infty$), the error rate reduces to $\mathcal{O}(\sqrt{\gamma_T/T})$, matching the known order-optimal rate for non-private kernel bandits.

Limitations and Future Work

  • Simple Regret vs. Cumulative Regret: USCA is optimized to minimize the expected predictive error rate at the end of $T$ rounds (simple regret). It does not optimize for cumulative regret during the learning process, meaning it may perform poorly if online performance during data collection is a priority.
  • Dependency on a Context Generator: The algorithm assumes the availability of a context generator (Assumption 2.10) that can sample i.i.d. contexts from the underlying distribution $\kappa$ using the algorithm's internal random coins, which might not always be practical in real-world environments.
  • No Empirical Validation: Because the paper is entirely theoretical, future work is required to benchmark USCA against existing heuristic private bandit algorithms in real-world application simulations.

Summary updated

BibTeX
@inproceedings{pavlovic2025differentially,
  author = {Nikola Pavlovic and Sudeep Salgia and Qing Zhao},
  title = {{Differentially Private Kernelized Contextual Bandits}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=axgerltoda},
}
Figure