Distributed Stochastic Bandit Learning with Context Distributions

Jiabin Lin, Shana Moothedath

Abstract

We consider the problem where M agents collaboratively interact with an instance of a stochastic K-armed contextual bandit, where K >> M. The goal of the agents is to simultaneously minimize the cumulative regret over all the agents over a time horizon T. We consider a setting where the exact context is observed after a delay and at the time of choosing the action the agents are unaware of the context and only a distribution on the set of contexts is available. Such a situation arises in different applications where at the time of the decision the context needs to be predicted (e.g., weather forecasting or stock market prediction), and the context can be estimated once the reward is obtained. We propose an Upper Confidence Bound (UCB)-based distributed algorithm and prove the regret and communications bounds for linearly parametrized reward functions. We validated the performance of our algorithm via numerical simulations on synthetic data and real-world Movielens data.

Introduction

In standard contextual bandit problems, a learner observes a context (such as a user profile), selects an action (such as a movie recommendation), and receives a reward. However, many real-world applications—ranging from weather forecasting to stock market trading—involve inherent uncertainty where the precise context is unknown at the moment of decision-making. Instead, agents must rely on a distribution of possible contexts, with the ground truth revealed only after the action is taken. This paper addresses the challenge of collaborative learning in such "delayed context" environments across multiple agents, focusing on minimizing both cumulative regret and communication overhead.

Methodology: Distributed UCB with Delayed Contexts

The proposed algorithm, Distributed UCB for Linear Bandits (LBs) with delayed contexts, addresses two primary hurdles: decision-making under uncertainty and minimizing network traffic.

Expected Feature Mapping and Hindsight Updates

To handle context uncertainty at decision time, the algorithm utilizes expected feature vectors. Rather than acting on a specific context, it computes the average feature vector based on the available distribution. Once the true context is revealed in hindsight, agents update their internal reward models ($ heta^*$) using the actual data. This ensures that the model remains unbiased and accurate over time, despite the initial lack of information.

Lazy Synchronization

Communication is treated as a scarce resource. Agents only synchronize with a central server when their local knowledge—measured by the log-determinant of their covariance matrix—undergoes a significant change. This event-triggered protocol ensures that agents only share information when they have learned something "new" enough to be worth the bandwidth, drastically reducing communication costs.

Empirical Evaluation

The researchers validated the algorithm using synthetic environments and the real-world MovieLens dataset.

Synthetic Data Experiments

The synthetic setup involved 10 arms and 3-dimensional features. A key result from these tests is the clear benefit of multi-agent collaboration. While total cumulative regret increases with the number of agents ($M$), the regret per agent decreases, demonstrating that shared learning accelerates the convergence of the reward model.

Figure 4: Total cumulative regret for different numbers of agents (M=1, 3, 5) on synthetic data. While total regret grows with M, the per-agent regret decreases, showing the efficiency of collaboration.

MovieLens Dataset

Using non-negative matrix factorization, the MovieLens dataset was transformed into a bandit problem where user profiles serve as contexts and movie recommendations as actions. The results show that while having exact context upfront is ideal, the "Delayed Context" approach maintains a similar regret trajectory, confirming the theoretical "regret parity" finding.

Figure 5: Comparison of cumulative regret between exact and delayed context scenarios on MovieLens data. The delayed approach tracks the performance of the exact context setting closely.

Key Results and Discussion

The theoretical analysis proves a high-probability regret bound of $O(d\sqrt{MT} \log^2 T)$. Remarkably, this matches the order of regret for distributed algorithms with perfect, immediate context information. Furthermore, the communication cost is bounded at $O(M^{1.5}d^3)$, making it independent of the total time horizon $T$. This implies that as the system runs longer, the relative cost of communication drops significantly.

Empirically, the algorithm demonstrates that collaboration effectively mitigates the lack of immediate context. While a performance gap exists between exact and delayed settings, the delayed approach significantly outperforms baseline methods that do not account for context distributions.

Conclusion and Future Work

This work provides a robust framework for distributed learning under context uncertainty. By combining expected feature mapping with lazy synchronization, the authors achieve near-optimal regret with minimal communication. Future research directions include moving towards fully decentralized (peer-to-peer) architectures to eliminate the need for a central coordinator and extending the linear reward assumption to non-linear "Kernelized" or "Deep" models.

Summary updated

BibTeX
@inproceedings{lin2023distributed,
  author = {Jiabin Lin and Shana Moothedath},
  title = {{Distributed Stochastic Bandit Learning with Context Distributions}},
  booktitle = {ECC},
  year = {2023},
  url = {https://openreview.net/forum?id=zvD1fhOxEn},
}
Figure