Online Clustering of Bandits

Claudio Gentile, Shuai Li, Giovanni ZappellaarXiv 2014

Abstract

Contextual bandit algorithms are essential for modern recommendation systems, yet they often struggle with the trade-off between generic models that learn quickly and personalized models that require extensive data per user. We present CLUB (CLustering of Bandits), an algorithm that adaptively clusters users based on their observed behavior rather than static metadata. By maintaining a dynamic graph of user relationships and pruning edges between users with divergent preferences, CLUB discovers latent communities on the fly. Our theoretical analysis shows that CLUB's regret scales with the number of underlying clusters rather than the total population. Empirical evaluations on synthetic data and real-world datasets, including Yahoo! News and LastFM, demonstrate that CLUB consistently outperforms standard global and personalized baselines.

Introduction

In online recommendation scenarios, such as news feeds or streaming services, systems must balance exploring new content with exploiting known user preferences. This is typically modeled as a contextual bandit problem. However, practitioners face a personalization dilemma. A global approach (one model for all) learns rapidly but ignores individual nuances. Conversely, a fully personalized approach (one model per user) is highly accurate in the long run but suffers from a severe "cold start" problem, taking significant time to gather enough data for each individual.

Real-world users often fall into groups with similar tastes, but these groups are rarely known a priori and can evolve. CLUB addresses this by finding the "sweet spot" between global and personalized models, discovering these latent clusters dynamically without requiring a pre-defined number of groups.

The CLUB Algorithm

The core innovation of CLUB is its graph-based approach to managing user relationships. The algorithm treats users as nodes in a graph, initially assuming everyone might share similar preferences.

  1. Initialization: The algorithm starts with a complete graph (or a dense random graph) where every user is connected to every other user.
  2. Weight Estimation: For each user, the system maintains a local estimate (a weight vector) of their preferences based on their feedback to recommendations.
  3. Edge Pruning: As more interaction data is collected, the algorithm compares the preference vectors of connected users. If the statistical distance between two users' vectors exceeds a calculated confidence threshold, the edge between them is deleted.
  4. Clustering via Connectivity: Clusters are defined as the connected components of this graph. Users within the same component share their data to build a more robust, aggregate model for future recommendations.
The graph-based clustering mechanism: edges between dissimilar users are pruned to form distinct connected components (clusters).

This mechanism allows the system to start with a global model and gradually "shatter" it into personalized clusters as confidence in user differences grows. To maintain efficiency with millions of users, CLUB utilizes decremental dynamic connectivity data structures, ensuring updates are computationally feasible.

Empirical Evaluation

We evaluated CLUB against several baselines, including LinUCB-ONE (a single global model) and LinUCB-IND (independent models for each user).

Synthetic Experiments

Tests on controlled datasets revealed that CLUB's performance is robust across various scenarios, including balanced and unbalanced cluster sizes. A key theoretical and empirical finding is that CLUB's regret (error) is primarily a function of the number of underlying clusters ($m$) rather than the total number of users ($n$). This makes it highly scalable for large populations that share a limited number of distinct taste profiles.

Real-World Performance

On the Yahoo! News dataset—a benchmark containing millions of user interactions—CLUB demonstrated superior performance in terms of Click-Through Rate (CTR). As shown in the figures below, CLUB (blue line) consistently achieves a higher CTR than both the global and fully personalized baselines across different population sizes.

Click-Through Rate (CTR) comparison on the Yahoo! News dataset for 5,000 and 10,000 users. CLUB consistently outperforms standard bandit baselines.

In experiments with the LastFM dataset, which is characterized by a "few hits" distribution, CLUB also showed significant gains. While the fully personalized approach (LinUCB-IND) can eventually catch up in "many niches" scenarios (like the Delicious dataset) given enough data, CLUB provides much faster convergence in the early and middle stages of the learning process.

Discussion and Conclusion

CLUB represents a significant step forward in adaptive personalization. By focusing on observed behavior rather than static metadata, it avoids the pitfalls of demographic profiling, which often fails to capture actual user interests.

While the initial $O(n^2)$ graph state presents a memory challenge for extremely large deployments, the authors demonstrate that starting with sparser Erdos-Renyi random graphs provides a viable workaround without sacrificing theoretical guarantees. Future research may explore "soft clustering" to allow users to belong to multiple groups or dynamic migration as user tastes evolve over time. Ultimately, CLUB provides a mathematically grounded and practically effective framework for scaling personalized recommendations to massive, diverse user bases.

Summary updated

BibTeX
@misc{gentile2014online,
  author = {Claudio Gentile and Shuai Li and Giovanni Zappella},
  title = {{Online Clustering of Bandits}},
  year = {2014},
  eprint = {1401.8257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1401.8257},
}
Figure