Learning in Distributed Contextual Linear Bandits Without Sharing the Context

Osama A. Hanna, Lin F. Yang, Christina FragouliarXiv 2022

Abstract

Contextual linear bandits are a fundamental model for sequential decision-making with applications ranging from personalized medicine to wireless resource allocation. However, in distributed systems where agents and learners are geographically separated, the communication of high-dimensional context vectors ($d$) often becomes a performance bottleneck. This paper investigates a distributed memoryless contextual linear bandit problem where agents observe contexts but the central learner does not. We demonstrate that if the context distribution is known, the learner can achieve optimal regret with zero bits of context communication. When the distribution is unknown, we propose a method requiring approximately $5d$ bits per context—a significant improvement over existing bounds that scale with the time horizon $T$. Both approaches maintain nearly the same regret bounds as if contexts were perfectly observable.

Introduction

In the standard contextual linear bandit framework, an agent observes a context, selects an action, and receives a reward. In modern distributed deployments—such as fleets of drones or mobile edge computing—the agents performing the actions are often "transient," interacting with the environment once before leaving. To improve the system over time, a central learner must aggregate these experiences.

The primary challenge in these settings is the communication uplink. Sending high-dimensional context vectors (often represented as 32-bit or 64-bit floats) from thousands of agents to a central repository is energy-intensive and bandwidth-heavy. This research addresses a critical question: how much information about the context must actually be shared to maintain learning efficiency?

Problem Formulation

We consider a system where at each time step $t$, a new agent observes a context $x_t$ drawn from a distribution. The agent chooses an action $a_t$ based on the current model estimate provided by a central learner. The learner's goal is to minimize "regret"—the cumulative difference between the rewards obtained and those of an optimal policy that knows the underlying model parameters.

The bottleneck is the communication from the agent to the learner. Traditional methods require sending the full vector $x_t \in \mathbb{R}^d$. We seek to minimize the bits per context while preserving the regret order of $O(d\sqrt{T \log T})$, which is the standard for non-distributed algorithms like LinUCB.

Proposed Algorithms

1. Known Context Distribution: The Zero-Bit Result

Perhaps the most surprising finding of this work is that if the central learner knows the distribution from which contexts are drawn, the agent does not need to send the context $x_t$ at all.

In this scenario, the learner uses the known distribution to calculate an expected "best" feature vector for any given model estimate. The agent only needs to transmit a single bit representing a quantized version of the reward. By observing how this 1-bit reward signal responds to suggested actions over time, the learner can implicitly "triangulate" the model parameters. This achieves information-theoretic tightness, as the communication cost for the context is reduced to zero bits.

2. Unknown Context Distribution: Stochastic Quantization

When the context distribution is unknown, the agent must provide some information about $x_t$ so the learner can update its covariance matrix and mean estimates. We introduce a novel Stochastic Quantization (SQ) scheme that requires only a constant number of bits per dimension ($\approx 5d$ bits total).

The agent sends:

  • The sign of each coordinate ($d$ bits).
  • A quantized magnitude of the vector.
  • Quantized diagonal entries of the least-squares matrix.

Unlike previous state-of-the-art methods that required $O(d \log T)$ bits—where the communication cost per context grows as the system operates longer—our SQ scheme remains constant regardless of the time horizon $T$. This breaks the $\log T$ barrier and provides a 6x reduction in data compared to standard 32-bit float representations.

Key Results and Insights

Theoretical Performance

Both proposed algorithms achieve a regret bound of $O(d\sqrt{T \log T})$. This matches the performance of algorithms that have access to full, uncompressed context information. This implies that communication can be drastically compressed without any fundamental loss in learning accuracy.

Privacy and Efficiency

The "Zero-Bit" approach offers a significant side benefit: privacy. Because the agent never shares the context (which might contain sensitive user data like location or health metrics), the system is inherently more private. Furthermore, the quantization schemes are computationally lightweight, making them suitable for real-time deployment on resource-constrained hardware.

Conclusion and Future Work

This paper demonstrates that the communication requirements for distributed contextual bandits are much lower than previously thought. By leveraging knowledge of context distributions or employing clever stochastic quantization, we can reduce the uplink burden to a constant number of bits per dimension or even zero.

Future research may explore extending these techniques to non-linear bandit models (such as neural bandits) or investigating scenarios where the downlink (learner-to-agent) is also constrained. Additionally, further study into the robustness of these algorithms under "imperfect" distribution knowledge would be valuable for practical deployments where the context distribution might shift over time.

Summary updated

BibTeX
@misc{hanna2022learning,
  author = {Osama A. Hanna and Lin F. Yang and Christina Fragouli},
  title = {{Learning in Distributed Contextual Linear Bandits Without Sharing the Context}},
  year = {2022},
  eprint = {2206.04180},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04180},
}
Figure