Conversational Contextual Bandit: Algorithm and Application

Xiaoying Zhang, Hong Xie, Hang Li, John C. S. Lui

Abstract

Contextual bandit algorithms provide principled online learning solutions to balance the exploitation-exploration trade-off in various applications such as recommender systems. However, the learning speed of the traditional contextual bandit algorithms is often slow due to the need for extensive exploration. This poses a critical issue in applications like recommender systems, since users may need to provide feedbacks on a lot of uninterested items. To accelerate the learning speed, we generalize contextual bandit to conversational contextual bandit. Conversational contextual bandit leverages not only behavioral feedbacks on arms (e.g., articles in news recommendation), but also occasional conversational feedbacks on key-terms from the user. Here, a key-term can relate to a subset of arms, for example, a category of articles in news recommendation. We then design the Conversational UCB algorithm (ConUCB) to address two challenges in conversational contextual bandit: (1) which key-terms to select to conduct conversation, (2) how to leverage conversational feedbacks to accelerate the speed of bandit learning. We theoretically prove that ConUCB can achieve a smaller regret upper bound than the traditional contextual bandit algorithm LinUCB, which implies a faster learning speed. Experiments on synthetic data, as well as real datasets from Yelp and Toutiao, demonstrate the efficacy of the ConUCB algorithm.

Introduction

Contextual bandit algorithms, such as LinUCB, are the backbone of modern recommender systems, balancing the exploitation of known user preferences with the exploration of new items. However, a major challenge is the slow learning rate; relying solely on implicit, item-level feedback (e.g., clicks) requires extensive exploration. This often leads to a poor user experience as the system serves many irrelevant recommendations while building a user profile. This paper introduces the Conversational Contextual Bandit framework to overcome this limitation by strategically incorporating explicit user feedback.

The Conversational Contextual Bandit (ConUCB)

The proposed framework generalizes traditional contextual bandits by allowing occasional "conversations" where the system asks the user about broader "key-terms" (e.g., topics or categories) rather than just specific items.

Comparison between traditional contextual bandit and the proposed conversational feedback mechanism.

The relationship between items (arms) and categories (key-terms) is modeled as a bipartite graph. The ConUCB (Conversational UCB) algorithm addresses two main challenges:

  1. Key-term Selection: It mathematically identifies the key-term that will most effectively minimize the estimation error of the user's preference vector.
  2. Arm Selection: It updates the model's Upper Confidence Bound (UCB) using both implicit item clicks and explicit key-term answers.

Because one key-term (e.g., "Mexican food") connects to many items, a single answer can simultaneously reduce uncertainty for an entire cluster of recommendations, drastically accelerating the learning process.

Experimental Evaluation

The authors evaluated ConUCB against several baselines, including standard LinUCB, item-level conversational models (Arm-Con), and random key-term selection (Var-RS). Testing spanned three environments:

  • Synthetic Data: Controlled simulations to test performance under various parameters.
  • Yelp Dataset: A public dataset with ~2,000 users and ~25,000 restaurants, using restaurant categories as key-terms.
  • Toutiao Dataset: A large-scale news recommendation dataset from a major platform, utilizing keywords and categories as key-terms.

Results and Discussion

Experimental results consistently show that ConUCB outperforms traditional and heuristic baselines across all metrics.

Experimental results showing the effect of conversation frequency and pool size on cumulative regret.

Key insights include:

  • Efficiency of Topic-Based Feedback: Asking about broad topics is significantly more sample-efficient than asking about specific items. ConUCB collapses model uncertainty much faster than the Arm-Con baseline.
  • Strategic vs. Random Questioning: Actively selecting key-terms based on mathematical uncertainty (ConUCB) yields better performance than random selection (Var-RS).
  • Theoretical Guarantees: The authors proved that ConUCB achieves a tighter regret upper bound of $O(\sqrt{d} + \log T)$, compared to $O(\sqrt{d \log T})$ for LinUCB, confirming its superior learning speed.
  • Real-World Performance: On the Toutiao dataset, ConUCB achieved the highest normalized Click-Through Rate (CTR), demonstrating its practical value in large-scale production environments.

Conclusion and Future Work

ConUCB offers a principled approach to integrating conversational feedback into bandit learning, backed by both theoretical proofs and empirical success. While currently dependent on predefined item-to-key-term mappings, future work could explore adaptive interaction timing and integration with other bandit frameworks like Thompson Sampling.

Summary updated

BibTeX
@inproceedings{zhang2019conversational,
  author = {Xiaoying Zhang and Hong Xie and Hang Li and John C. S. Lui},
  title = {{Conversational Contextual Bandit: Algorithm and Application}},
  booktitle = {The Web Conference},
  year = {2019},
}
Figure