Differentially Private Contextual Linear Bandits

Roshan Shariff, Or Sheffet

Introduction

Contextual linear bandits are a powerful framework for personalized decision-making, widely used in recommendation systems and clinical trials. In these settings, a learner observes a context (e.g., a user profile), selects an action (e.g., a movie or treatment), and receives a reward. The goal is to maximize cumulative rewards over time. However, the contexts and rewards often contain sensitive personal information.

While Differential Privacy (DP) is the gold standard for data protection, applying it to bandits presents a fundamental challenge. Standard DP requires that an algorithm's output remains stable even if one user's data changes. In a bandit setting, this would force the learner to ignore the current user's context to protect their privacy, leading to "linear regret"—performance no better than a non-personalized strategy.

The Privacy Framework: Joint Differential Privacy

To overcome the limitations of standard DP, this work adopts Joint Differential Privacy (JDP). JDP is a relaxed privacy model suitable for interactive settings. It ensures that the action chosen for user $t$ is revealed only to user $t$. Crucially, it guarantees that the sequence of all future actions (for users $t+1, t+2, \dots$) is differentially private with respect to user $t$’s sensitive data. This allows the algorithm to use the current context to make a personalized decision while protecting that information from all other participants in the system.

Methodology: Private LinUCB

The authors develop a private version of the Linear Upper Confidence Bound (LinUCB) algorithm. The core challenge is to maintain the algorithm's internal statistics—specifically the Gram matrix of features and the action-reward vector—in a way that satisfies JDP.

Summary of notation used in the private contextual linear bandit framework.

The approach relies on three key components:

  1. Tree-Based Mechanism: To maintain running sums of data over $n$ rounds, the algorithm uses a binary tree structure. Each node in the tree stores a noisy partial sum. This "continual observation" technique ensures that the total noise added to any estimate grows only logarithmically with the time horizon $n$, rather than linearly.
  2. Noise Injection: The algorithm perturbs its internal statistics to ensure privacy. Two methods are analyzed:
  3. Wishart Noise: Adding a random matrix from a Wishart distribution, which naturally preserves the positive semi-definite property of the Gram matrix.
  4. Gaussian Noise: Adding symmetric Gaussian noise and applying a shift to ensure the resulting matrix remains valid for confidence bound calculations.
  5. Regularization Analysis: Because the privacy noise effectively acts as a time-varying regularizer ($H_t$ in the notation above), the authors provide a novel analysis of LinUCB that remains robust under these changing conditions.

Key Insights and Results

The theoretical analysis reveals a fundamental "cost of privacy." The authors establish the first lower bound for private multi-armed bandits, showing an additional regret term of $\Omega(k \log(n)/\epsilon)$.

For the contextual case, the proposed JDP algorithm achieves a minimax pseudo-regret of $\tilde{O}(\sqrt{n} \cdot d^{3/4} / \sqrt{\epsilon})$. In instances with a clear reward gap $\Delta$, the algorithm achieves "gap-dependent" regret of $O(\text{polylog}(n)/\Delta)$.

Empirical evaluations using synthetic datasets confirm these findings. While Wishart noise is theoretically elegant, Gaussian noise often performs better in practice due to smaller constants in its regret bounds. The experiments also highlight a clear privacy-utility trade-off: as the privacy parameter $\epsilon$ decreases (stronger privacy), regret increases, but remains sub-linear, indicating that the algorithm continues to learn effectively.

Conclusion and Future Work

This work demonstrates that personalized recommendations and robust privacy are not mutually exclusive. By leveraging JDP and tree-based noise mechanisms, contextual bandits can achieve sub-linear regret while protecting user data.

Future research directions include improving the dimension dependency in the regret bounds—currently $O(d^2)$ in the gap-dependent case—to match the $O(d)$ performance of non-private LinUCB. Additionally, extending these private mechanisms to more complex adaptive strategies beyond UCB and testing them on real-world recommendation datasets remain important open challenges.

Summary updated

BibTeX
@inproceedings{shariff2018differentially,
  author = {Roshan Shariff and Or Sheffet},
  title = {{Differentially Private Contextual Linear Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=rk-Uk_ZdZH},
}
Figure