Nonparametric Contextual Bandits in an Unknown Metric Space

Nirandika Wanigasekara, Christina Lee YuarXiv 2019

TL;DR

This paper introduces a novel algorithm for contextual multi-armed bandit problems with a vast number of arms, where the underlying structure of arm rewards is unknown. The algorithm learns these hidden similarities from data to adaptively partition the problem space, leading to more efficient learning and improved performance compared to existing methods that rely on pre-defined metrics.

What Problem Does This Paper Address?

In sequential decision-making problems, like recommending products to users, contextual multi-armed bandits (MAB) are used to balance exploration (trying new options) and exploitation (sticking with known good options). The challenge arises when the number of possible actions (arms) is enormous, making exhaustive exploration infeasible. Often, there's an underlying, but unknown, structure among these arms that could be exploited for faster learning. Traditional methods either assume this structure is known beforehand (e.g., a specific metric space) or treat each arm independently, which is inefficient for large action spaces. This paper tackles the problem of learning these hidden arm similarities from data in a nonparametric setting, without any prior knowledge of the metric space or arm features.

Methods

The core of the proposed solution is the Approx-Zooming algorithm. It's inspired by Slivkins' contextual zooming algorithm but crucially adapts it to learn arm similarities from scratch. Here's how it works:

  • Adaptive Partitioning: The algorithm divides the context-arm space into "balls" or regions. Initially, it uses a few large balls.
  • Data-Driven Similarity Estimation: Instead of relying on a pre-defined metric, the algorithm estimates pairwise arm similarities (or distances) using the observed rewards and contexts. This is done by approximating the reward functions using a k-nearest neighbor (k-NN) estimator and then calculating a data-dependent distance.
  • Clustering and Subpartitioning: When a ball accumulates enough data, it's "flagged" and then subpartitioned into smaller balls based on the learned arm similarities. This process is repeated, allowing the algorithm to focus its learning efforts on regions of the context-arm space that are likely to contain optimal arms.
  • Upper Confidence Bound (UCB) Selection: Within active balls, the algorithm uses a UCB rule to balance exploration and exploitation, prioritizing balls with higher estimated potential rewards.

The novelty lies in learning the metric/similarity from data, making it agnostic to the specific representation of arms and robust to unknown underlying structures.

Datasets

Not discussed in the paper. The authors use simulated environments for evaluation.

Key Insights and Ideas

  • Learning the Metric is Key: The paper demonstrates that learning arm similarities from data is crucial for efficient learning in large-scale contextual bandit problems, especially when the underlying metric is unknown.
  • Agnosticism to Representation: The proposed algorithm's ability to learn similarities from observed rewards makes it robust to different arm representations and avoids the pitfalls of relying on a potentially suboptimal pre-defined metric.
  • Trade-off in Learning: There's an upfront cost to learning these similarities, but for large numbers of arms and long time horizons, this investment pays off significantly in improved long-term performance.
  • Local Geometry Matters: The performance of the algorithm is shown to depend on the "local geometry" of the reward functions, meaning how quickly rewards change in near-optimal regions.

Key Results

  • Regret Bounds: The paper provides theoretical upper bounds on the expected contextual regret, showing how it depends on the local geometry of the reward functions and the number of arms.
  • Simulation Performance:
    • The proposed Approx-Zooming algorithm consistently outperforms a naive baseline that learns each arm independently.
  • An oracle variant that uses the true reward function to estimate distances performs best, highlighting the importance of accurate similarity estimation.
  • An oracle variant using a pre-defined similarity metric (like $| \theta_a - \theta_{a'} |$) performs worse than the true distance variant, suggesting that metric-based approaches can be sensitive to the choice of metric, especially for periodic functions.
  • The algorithm shows a clear learning curve, with initial blurry frequency plots sharpening over time as it learns arm similarities and converges to the optimal policy.

Limitations and Future Work

  • Parameter Tuning: The authors note that the parameter k (related to the number of samples needed for subpartitioning) needs careful tuning to balance the cost of estimating similarities with learning efficiency.
  • Computational Cost: While the algorithm learns similarities from data, the initial clustering and distance estimation can be computationally intensive.
  • Future Work: The paper suggests exploring more sophisticated ways to estimate arm similarities and potentially extending the framework to other bandit settings.

Summary updated

BibTeX
@misc{wanigasekara2019nonparametric,
  author = {Nirandika Wanigasekara and Christina Lee Yu},
  title = {{Nonparametric Contextual Bandits in an Unknown Metric Space}},
  year = {2019},
  eprint = {1908.01228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.01228},
}
Figure