Dynamic Graph Clustering for Contextual Bandits

This direction is merged into another direction: temporal preference drift. Its last version stays readable and citable here.

Version 1 of 122 papers26 conceptsfrozen 2026-10-04

In modern recommendation systems, algorithms face a fundamental tension: treat every user as a unique individual, or treat everyone as part of a single global average. The former approach, while personalized, suffers from the "cold-start" problem where learning a new user's preferences takes too long. The latter approach learns quickly by pooling data but ignores the rich diversity of human taste.

A powerful middle ground has emerged through Online Clustering of Bandits (OCB). Instead of assuming a fixed number of user groups, these algorithms discover the underlying social structure of a population in real-time. By maintaining a dynamic graph of user relationships and "pruning" connections as preferences diverge, these systems achieve the best of both worlds: the speed of collaborative learning and the precision of personalization.

The Intuition: Learning by Subtraction

Most clustering algorithms, like K-means, are additive: they try to build groups from the bottom up or assign points to a fixed number of centers. In the context of online bandits, researchers like Claudio Gentile and Shuai Li pioneered a subtractive approach.

Imagine a social network where, initially, everyone is connected to everyone else. This represents the "optimistic" starting assumption that all users might share similar tastes. As users interact with items—clicking on news articles or rating movies—the system calculates an estimate of their preference vector ($\theta$).

The core mechanism, introduced in foundational papers like Graph Clustering Bandits for Recommendation and Collaborative Filtering Bandits, is dynamic edge pruning. If the estimated preferences of two connected users, $i$ and $j$, drift too far apart—specifically, if the distance between their preference vectors exceeds a calculated confidence bound—the edge between them is deleted.

Clusters then emerge naturally as the connected components of this graph. When a user needs a recommendation, the algorithm doesn't just look at that user's history; it pools the data from everyone currently in their cluster. This allows the system to provide high-quality recommendations to a relatively new user by leveraging the experiences of their "behavioral neighbors."

The Edge Deletion Rule

The "magic" of OCB lies in knowing exactly when to sever a connection. If you prune too early, you lose the benefits of data pooling; if you prune too late, your recommendations become "polluted" by users with different tastes.

The decision is typically governed by a variation of the Upper Confidence Bound (UCB). As Shuai Li and colleagues demonstrated in COFIBA, an edge is removed when:

$$\|\hat{\theta}_i - \hat{\theta}_j\| > CB_i + CB_j$$

Where $\hat{\theta}$ is the current estimate and $CB$ is a confidence interval that shrinks as we gather more data about a user. Early on, confidence intervals are large, keeping the graph highly connected and allowing for aggressive collaborative learning. As the system becomes more certain, the "resolution" of the clusters increases, eventually isolating distinct preference groups.

Robustness and Adversarial Environments

Real-world systems are rarely perfectly cooperative. Recent work has extended this graph-based intuition to handle more complex scenarios:

  • Malicious Actors: Zhiyong Wang and Shuai Li introduced LOCUD in Online Corrupted User Detection and Regret Minimization. This framework uses discrepancy-based detection to identify and isolate "corrupted" users who provide adversarial feedback, ensuring they don't skew the clusters of legitimate users.
  • Dueling Preferences: Sometimes we don't have absolute scores, only relative preferences (e.g., "User prefers A over B"). Zhiyong Wang and John C. S. Lui adapted the clustering logic to this "dueling bandit" setting with COLDB, as described in Online Clustering of Dueling Bandits.
  • Federated Learning: To protect privacy, Hantao Yang and Xutong Liu developed FedC³UCB-H, which maintains the cluster graph on a central server while keeping raw user data on local devices, handling the challenges of asynchronous communication in Federated Contextual Cascading Bandits.

Why It Works: Emergent Structure

The beauty of this research direction is that it doesn't require the designer to know the "true" number of clusters in advance. In Collaborative Learning and Personalization in Multi-Agent Stochastic Linear Bandits, Abishek Sankararaman and colleagues showed that these algorithms can be "parameter-free," meaning they adapt to the underlying user structure regardless of how many groups exist or how similar they are.

By treating the population as a fluid graph rather than a set of static buckets, OCB algorithms like UniCLUB, analyzed by Zhuohua Li and John C. S. Lui in Demystifying Online Clustering of Bandits, provide a mathematically rigorous way to navigate the exploration-exploitation trade-off. They start with the power of the crowd and gradually refine their focus until every user receives recommendations tailored to their specific niche.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_dynamic_graph_clustering_for_contextual__b20180a1,
  title = {Dynamic Graph Clustering for Contextual Bandits},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/dynamic-graph-clustering-for-contextual-bandits/rdr_b20180a12aca47c181cb304df126ad95},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_dynamic_graph_clustering_for_contextual__b20180a1_v1,
  title = {Dynamic Graph Clustering for Contextual Bandits},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/dynamic-graph-clustering-for-contextual-bandits/rdr_b20180a12aca47c181cb304df126ad95/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}