Robust Bandit Learning with Imperfect Context

Jianyi Yang, Shaolei Ren

Introduction

In the traditional contextual multi-armed bandit (MAB) framework, an agent observes a context (e.g., a user profile), selects an action (e.g., an advertisement), and receives a reward. A fundamental assumption in this model is that the context is perfectly known before the action is taken. However, in many real-world applications—ranging from cloud resource management to wireless communication—context is often a "best guess" derived from noisy sensors, laggy predictions, or even adversarial manipulation. This paper addresses the challenge of decision-making under such "imperfect context."

The Challenge of Imperfect Context

When context is predicted rather than observed, the standard goal of maximizing expected reward becomes problematic. For instance, a smart grid manager might receive a predicted load estimate $\hat{x}_t$ and must act before the true load $x_t$ is revealed. If the prediction is slightly off, a strategy optimized for $\hat{x}_t$ might lead to catastrophic failure.

The authors model the reward function using a Kernelized approach (specifically, Reproducing Kernel Hilbert Space or RKHS), allowing for non-linear relationships. They introduce a "defense budget" $\Delta$, which defines the maximum expected error between the predicted and true context. The goal is to find algorithms that are robust to any true context $x_t$ falling within this $\Delta$-neighborhood of $\hat{x}_t$.

Robust Objectives and Algorithms

The paper identifies that in the presence of uncertainty, maximizing reward and minimizing regret are no longer equivalent. This leads to two distinct robustness objectives:

  1. Type-I Robustness (Maximize Worst-case Reward): This objective is prioritized in safety-critical systems where the goal is to ensure a minimum performance floor, regardless of the context error.
  2. Type-II Robustness (Minimize Worst-case Regret): This objective focuses on efficiency, ensuring that the chosen action is never significantly worse than the optimal action for any possible true context.
Comparison of Type-I and Type-II Robustness objectives under context uncertainty.

To address these, the authors propose two novel algorithms:

  • MaxMinUCB: This algorithm calculates the Upper Confidence Bound (UCB) for all arms across the entire uncertainty region. it then selects the arm whose minimum possible UCB is the highest, effectively hedging against the worst-case context for Type-I robustness.
  • MinWD (Minimize Worst-case Degradation): Designed for Type-II robustness, MinWD calculates the potential "degradation"—the gap between the best possible arm and the chosen arm—across the uncertainty region. It selects the arm that minimizes this maximum potential gap.

Theoretical Insights: The Robust Oracle

A key contribution of the paper is the definition of a "robust oracle." This theoretical benchmark represents an agent that knows the true context $x_t$ but still faces the same reward function uncertainty as the learner. The authors prove that the "penalty" paid for having imperfect context is a linear term that matches what even this oracle would lose.

Crucially, they demonstrate asymptotic optimality: as time ($T$) goes to infinity, the learning error (regret) relative to the robust objective becomes sub-linear ($O(\sqrt{T \log T})$). This means the algorithms eventually learn the underlying reward function as effectively as if they had access to perfect context from the start.

Empirical Validation

The proposed methods were validated through synthetic simulations and a practical case study in Edge Datacenter Selection. In the case study, an agent must choose one of four datacenters to process a workload where the reward is the inverse of total latency (computation + communication). The context—the fluctuating user workload—is treated as imperfect.

Results showed that:

  • MaxMinUCB consistently achieved the lowest robust regret (Type-I).
  • MinWD was superior in minimizing worst-case regret (Type-II).
  • Both algorithms significantly outperformed "SimpleUCB," a baseline that naively treats the noisy predicted context as the absolute truth, proving the necessity of robust optimization.

Conclusion

Robustness in bandit learning is essential for deploying autonomous systems in unpredictable environments. By defining Type-I and Type-II robustness and providing algorithms with sub-linear regret bounds, this work provides a rigorous framework for handling imperfect context. While the current model assumes a known defense budget $\Delta$ and stationary rewards, it sets the stage for future research into adaptive uncertainty estimation and dynamic environments.

Summary updated

BibTeX
@inproceedings{yang2021robust,
  author = {Jianyi Yang and Shaolei Ren},
  title = {{Robust Bandit Learning with Imperfect Context}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17267},
}
Figure