Practical Contextual Bandits with Feedback Graphs

Mengxiao Zhang, Yuheng Zhang, Olga Vrousgou, Haipeng Luo, Paul Mineiro

Abstract: While contextual bandit has a mature theory, effectively leveraging different feedback patterns to enhance the pace of learning remains unclear. Bandits with feedback graphs, which interpolates between the full information and bandit regimes, provides a promising framework to mitigate the statistical complexity of learning. In this paper, we propose and analyze an approach to contextual bandits with feedback graphs based upon reduction to regression. The resulting algorithms are computationally practical and achieve established minimax rates, thereby reducing the statistical complexity in real-world applications.

Introduction

Contextual bandits are notorious for their "data hunger." In standard settings, an algorithm only observes the outcome of the specific action it takes (bandit feedback), leaving it blind to what might have happened had it chosen differently. This paper, presented at NeurIPS 2023, tackles this bottleneck by leveraging feedback graphs—a formalization of how taking one action can reveal "side information" about others. The authors introduce SquareCB.G, a practical algorithm that reduces this complex problem to a simple regression task, achieving theoretically optimal learning rates and significant empirical gains.

The Challenge of Bandit Feedback

In a standard contextual bandit problem (e.g., a movie recommender), if you recommend Action Movie A and the user ignores it, you learn nothing about whether they would have clicked Comedy B. This forces the algorithm to explore many options individually, slowing down learning.

However, real-world tasks often provide informed feedback graphs:

  • Spam Filtering (Apple Tasting): Marking an email as "Not Spam" and seeing the user delete it reveals it was spam. Marking it as "Spam" hides it, yielding no user feedback.
  • Inventory Management: Stocking 100 items and selling out reveals demand was at least 100. Selling only 50 reveals the exact demand was 50.
Feedback Graph Interpolation

While non-contextual bandits with these graphs are well-understood, applying them to the contextual setting with general function classes has remained a major challenge. Feedback graphs naturally bridge the gap between the "Full Information" regime (where all outcomes are seen) and the "Bandit" regime (where only one is seen), allowing algorithms to scale their learning speed based on graph density.

SquareCB.G: Reduction to Regression

To solve this, the authors propose SquareCB.G, extending the popular "reduction-to-regression" framework:

  1. Regression Oracle: Instead of complex policy searches, the algorithm uses a standard online regression model (like a neural network) to predict the expected loss of an action given a context.
  2. Minimax Reduction: At each step, the algorithm receives a context and a feedback graph. It solves an optimization problem to find a probability distribution over actions, balancing the exploitation of the "best" action with the exploration of actions that provide the most graph-based information.
  3. Convex Optimization: The authors prove this optimization step is a convex program, meaning it can be solved rapidly using standard off-the-shelf solvers (e.g., a concise 20-line Python implementation using cvxpy).
  4. Closed-Form Solutions: For common graphs like the "Inventory Graph" or "Apple Tasting Graph," they derive exact formulas, bypassing the solver entirely for even faster execution.

Empirical Performance and Key Results

The authors evaluated SquareCB.G on benchmarks including the RCV1 text categorization dataset (simulating graphs like "Cops-and-Robbers") and a synthetic continuous-action inventory dataset.

SquareCB.G vs SquareCB
  • Theoretical Optimality: SquareCB.G achieves minimax optimal regret bounds: $O(\sqrt{\alpha T})$ for strongly observable graphs (where $\alpha$ is the independence number) and $O(d^{1/3} T^{2/3})$ for weakly observable ones (where $d$ is the weak domination number).
  • Empirical Superiority: On the RCV1 dataset, SquareCB.G significantly outperformed the standard SquareCB algorithm, effectively closing the gap between bandit and full-information performance.
  • Scalability: In inventory experiments, as the number of actions ($K$) increased from 101 to 501, standard SquareCB's performance degraded. In contrast, SquareCB.G’s performance remained nearly constant. Because the independence number of the Inventory Graph is always 1 regardless of the action space size, SquareCB.G avoids the "curse of dimensionality."

Limitations and Future Directions

While powerful, the approach has limitations. It assumes the feedback graph is known before the learner makes a choice (informed setting). In some scenarios, like clinical trials, the graph might only be revealed after the action is taken. Additionally, the method relies on the "realizability" assumption—that the true relationship between context and loss exists within the chosen function class. Future work could explore handling misspecified models more robustly and integrating "knapsack" constraints (e.g., limited budgets) for broader real-world deployment.

Summary updated

BibTeX
@inproceedings{zhang2023practical,
  author = {Mengxiao Zhang and Yuheng Zhang and Olga Vrousgou and Haipeng Luo and Paul Mineiro},
  title = {{Practical Contextual Bandits with Feedback Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=l6pYRbuHpO},
}
Figure