Learning Kernelized Contextual Bandits in a Distributed and Asynchronous Environment

Chuanhao Li, Huazheng Wang, Mengdi Wang, Hongning WangICLR 2023

Introduction

In distributed machine learning, a group of clients (such as mobile phones or IoT devices) often works together to solve complex tasks. One such task is the contextual bandit problem, where agents must sequentially choose actions to maximize rewards based on available side information (context).

Despite recent advances in communication-efficient distributed bandit learning, most existing solutions are restricted to parametric models, such as linear or generalized linear bandits. While efficient, these models often fail to capture the complex, non-linear patterns found in real-world data. Kernel bandits, which search for non-parametric functions in a reproducing kernel Hilbert space (RKHS), offer much higher modeling capacity. However, the only existing work in distributed kernel bandits relies on a synchronous communication protocol. This greatly limits practical use, as every synchronization step requires all clients to participate and wait for data exchange, making the system highly vulnerable to slow clients ("stragglers").

To address this, researchers have introduced Async-KernelUCB, the first asynchronous algorithm for distributed kernelized contextual bandits. By combining Nyström approximation with a novel incremental update scheme, multiple agents can learn complex, non-parametric reward functions without being slowed down by stragglers, all while maintaining sub-linear communication costs and near-optimal regret.

The Challenge of Asynchronous Kernel Bandits

Making kernel bandits asynchronous presents a unique mathematical hurdle. Kernel methods typically rely on a "dictionary" of representative data points to approximate the feature space. In a synchronous system, everyone agrees on the dictionary at the same time. In an asynchronous system, different clients might be using different dictionaries at different times. This discrepancy makes it incredibly difficult for a central server to aggregate their local knowledge into a single, coherent global model.

The Async-KernelUCB Approach

To bridge the gap between non-parametric modeling and asynchronous execution, Async-KernelUCB employs several clever techniques:

  • Nyström Approximation: Instead of dealing with infinite-dimensional kernel spaces, the algorithm projects data into a lower-dimensional subspace defined by a dictionary of representative points.
  • Event-Triggered Communication: Clients do not sync on a fixed schedule. Instead, a client only communicates with the server when the "uncertainty" (the sum of predictive variances) of its local observations exceeds a specific threshold. This ensures communication only occurs when there is significant new information to share.
  • Incremental RLS Sampling: To keep the dictionary compact and accurate without global synchronization, the algorithm uses a variant of Ridge Leverage Score (RLS) sampling to incrementally add new points to the dictionary.
  • Server-Side Transformation: This is the core innovation. Because different clients might send statistics based on different local dictionaries, the server performs a linear transformation to map these disparate statistics into a common, up-to-date subspace before aggregating them.
Overview of the Async-KernelUCB communication protocol between a client and the server.

As illustrated above, the communication protocol allows a client to independently update its local dictionary and statistics, send these updates to the server, and receive transformed, globally aggregated statistics back—all without waiting for other clients.

Evaluation and Results

The researchers evaluated Async-KernelUCB against several baselines (including linear and synchronous kernel models) using synthetic datasets designed to test modeling capacity, UCI benchmarks (MagicTelescope and Mushroom), and real-world recommendation data (25 million MovieLens ratings and 4.7 million Yelp reviews).

Key Findings: * Superior Performance: On complex datasets like MovieLens and Yelp, Async-KernelUCB significantly outperformed linear asynchronous baselines (like FedLinUCB), which failed to capture the non-linear nature of user preferences. * Communication Efficiency: While it shares the same theoretical scaling as the best synchronous kernel bandit, Async-KernelUCB incurred much lower communication costs in practice because its event-triggered design avoids unnecessary global syncs. * Regret vs. Cost: The algorithm achieved a cumulative regret nearly as low as theoretical models where all data is instantly shared, but with only a fraction of the communication overhead. The authors proved a near-optimal regret bound of $O(\sqrt{T \gamma_T})$ (where $\gamma_T$ is the maximum information gain).

Limitations and Future Directions

While Async-KernelUCB marks a significant step forward, the authors note a few areas for future exploration:

  • Communication Lower Bounds: The theoretical lower bound for communication in distributed contextual bandits remains an open research question. It is currently unknown if the $N^2$ factor in their communication cost can be further reduced.
  • Privacy Concerns: The algorithm shares "embedded statistics" rather than raw data, but it does not yet provide formal privacy guarantees. Integrating Differential Privacy (DP) into the Nyström embedding process is a promising next step.
  • Dictionary Size: Although RLS sampling keeps the dictionary relatively compact, its size still grows with the complexity of the task. Finding more aggressive ways to prune the dictionary without sacrificing accuracy remains an ongoing challenge.

Summary updated

BibTeX
@inproceedings{li2023learning,
  author = {Chuanhao Li and Huazheng Wang and Mengdi Wang and Hongning Wang},
  title = {{Learning Kernelized Contextual Bandits in a Distributed and Asynchronous Environment}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=-G1kjTFsSs},
}
Figure