NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bi-level Hierarchical Neural Contextual Bandits for Online Recommendation

Yunzhe Qi, Yao Zhou, Yikun Ban, Allan Stewart, Chuanwei Ruan, Jiachuan He, Shishir Kumar Prasad, Haixun Wang, Jingrui He

TL;DR

This paper introduces H2N-Bandit, a novel hierarchical neural contextual bandit framework that tackles the computational challenges of large-scale online recommendation systems. By leveraging arm category information in a bi-level structure, H2N-Bandit significantly reduces computational costs while maintaining or improving recommendation performance, offering a more efficient approach to personalized recommendations.

What Problem Does This Paper Address?

Online recommendation systems often face the challenge of selecting the best item (arm) from a vast pool of candidates to present to a user. Contextual bandit algorithms are well-suited for this, using user and item context to make decisions and balance exploration (trying new items) with exploitation (recommending known good items). While neural networks have shown promise in improving contextual bandit performance, they become computationally prohibitive when dealing with millions of candidate items. This is because they often require calculating gradients for every single item to ensure principled exploration. The paper addresses this by exploiting the common hierarchical structure of items (e.g., movies by genre, products by category) to create a more efficient recommendation process.

Methods

The core innovation is the H2N-Bandit framework, which employs a bi-level hierarchical neural architecture.

  1. Category-Level Recommendation: The first level uses a neural network to predict the "potential" of entire categories of items. It takes category representations (derived from the average and variance of arm contexts within that category) as input. This level aims to identify a small subset of high-potential categories.
  2. Arm-Level Recommendation: The second level then focuses only on the items within the selected categories. Another neural network is used to estimate the reward for each of these filtered candidate items, and a standard UCB (Upper Confidence Bound) approach is used for exploration within this reduced set.

This hierarchical filtering significantly reduces the number of items the arm-level model needs to consider, thereby cutting down computational costs. The framework also incorporates novel theoretical analyses for regret bounds and category-level recommendation guarantees under general over-parameterization settings.

Datasets

The paper evaluates H2N-Bandit on three real-world datasets:

  • MovieLens-20M: A dataset of movie ratings, where items are categorized by genre.
  • Yelp Dataset: A dataset of restaurant reviews and ratings, with items categorized by restaurant type.
  • Amazon Dataset: A dataset of Amazon product reviews and ratings, with items categorized by product type.

Key Insights and Ideas

  • Hierarchy as a Computational Lever: The paper demonstrates that exploiting existing hierarchical structures (like item categories) is a powerful way to overcome the computational bottlenecks of neural bandits in large-scale recommendation.
  • Bi-level Exploration for Efficiency: By performing exploration in two stages (category-level and then arm-level), H2N-Bandit achieves significant computational savings without sacrificing performance. The category-level exploration prunes unpromising categories early, saving expensive arm-level computations.
  • Theoretical Guarantees for Hierarchical Bandits: The authors provide the first theoretical regret analysis for hierarchical neural contextual bandits, offering assurances about the algorithm's performance and its ability to learn effectively.
  • Category Representation Matters: The way category information is encoded (using mean and standard deviation of arm contexts) is crucial for the bi-level approach to work effectively.

Key Results

  • Performance: H2N-Bandit consistently outperforms strong baselines (linear, kernel, and other neural bandits) in terms of cumulative regret on the tested datasets.
  • Efficiency: The framework achieves this performance with significantly reduced computational cost. On average, H2N-Bandit runs up to three times faster than other neural bandit algorithms.
  • Scalability: The bi-level approach is shown to be scalable, with experiments demonstrating that extending it to a three-level hierarchy can further reduce running time, albeit with a slight performance trade-off.
  • Robustness: The model shows reasonable robustness to noise in category representations, though this can be dataset-dependent.

Limitations and Future Work

  • Dataset Dependency: The effectiveness of certain features, like quantile or top-k category features, can be dataset-dependent, suggesting that feature engineering might be application-specific.
  • Category Representation Noise: While generally stable, the model's performance can vary with significant noise in category representations, indicating a need for more robust aggregation mechanisms.
  • Three-Level Hierarchy Trade-off: Extending to a three-level hierarchy offers computational benefits but can lead to a slight degradation in recommendation performance.
  • Future Work: The authors suggest exploring more sophisticated denoising aggregation mechanisms to handle category-injected noise and further strengthening stability under adversarial settings. They also highlight the potential for practitioners to tailor the arm hierarchy depth based on application needs.

Summary updated

BibTeX
@article{qi2025bi,
  author = {Yunzhe Qi and Yao Zhou and Yikun Ban and Allan Stewart and Chuanwei Ruan and Jiachuan He and Shishir Kumar Prasad and Haixun Wang and Jingrui He},
  title = {{Bi-level Hierarchical Neural Contextual Bandits for Online Recommendation}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=k3XsA75SGv},
}
Figure