Abstract
Personalized recommendation systems often utilize contextual bandits to balance exploration and exploitation. While the Gang of Bandits (GOB) model leverages social network homophily to improve learning, its quadratic computational complexity has historically limited its application to small groups. This paper introduces a scalable framework by connecting the GOB model to Gaussian Markov Random Fields (GMRFs). By employing conjugate gradient methods and efficient sampling-by-perturbation techniques, the proposed algorithms achieve linear scaling with respect to the number of users and edges. Empirical evaluations on synthetic and real-world datasets demonstrate that this approach, termed "GOBLIN++," scales to millions of users while significantly reducing cumulative regret compared to independent or clustering-based baselines.
Introduction
Modern recommender systems face the challenge of balancing exploration (learning new user preferences) and exploitation (recommending known favorites). Contextual bandits are a standard solution, but they typically treat users as isolated entities. The Gang of Bandits (GOB) model was proposed to address this by leveraging "homophily"—the tendency for connected individuals in a social graph to share similar tastes. By sharing information across the network, systems can rapidly infer a new user's preferences from their neighbors.
However, the original GOB algorithm suffers from a quadratic time dependence on the number of users ($O(n^2)$), making it impractical for large-scale platforms. Previous attempts to scale the model often relied on user clustering, which sacrifices fine-grained personalization. This work bridges the gap between bandit theory and spatial statistics to enable a "horde" of bandits to operate efficiently on massive graphs.
Methodology
The core innovation lies in casting the GOB optimization problem as a Gaussian Markov Random Field (GMRF). This connection allows the authors to leverage efficient tools from spatial statistics:
- GMRF Equivalence: The social graph Laplacian acts as a prior that smooths preference vectors across connected users. The GOB optimization is shown to be mathematically equivalent to Maximum A Posteriori (MAP) estimation in a GMRF.
- Conjugate Gradient Scaling: Instead of inverting massive $dn \times dn$ matrices, the authors use the Conjugate Gradient method. This exploits social network sparsity, reducing complexity from quadratic to linear relative to nodes and edges.
- Efficient Thompson Sampling: To make Thompson Sampling (TS) viable for massive graphs, the authors adapt a "sampling-by-perturbation" technique. This allows for exact posterior samples by solving a sparse linear system rather than performing dense matrix decompositions.
- Dynamic Graph Learning: In the absence of a pre-defined social graph, the framework includes an alternating minimization heuristic to learn user-user relationships on the fly, similar to the Graphical Lasso.
Experimental Evaluation
The researchers evaluated their approach using synthetic Kronecker graphs (up to 33,000 nodes) to test scalability, as well as real-world music (Last.fm) and social bookmarking (Delicious) datasets. For the real-world data, TF-IDF vectors reduced to 25 dimensions served as contextual features.
Results and Discussion
Scalability and Efficiency
The optimized GOBLIN++ algorithm demonstrated a dramatic improvement in computational performance. It achieved nearly two orders of magnitude speedup over the original GOBLIN implementation while requiring significantly less memory. As shown in the runtime analysis, the GMRF-based approach scales linearly, allowing it to handle networks that previously caused memory failures.
Regret Minimization Performance
On the Last.fm and Delicious datasets, the proposed Thompson Sampling (G-TS) and Epoch-Greedy (G-EG) methods consistently outperformed baselines. Notably, the fine-grained GMRF approach achieved lower cumulative regret than clustering-based methods like CLUB, proving that individual "residual" preferences are critical even within similar social groups.
Key insights from the results include:
- Linearity of the "Horde": Social regularization is computationally feasible when treated as a GMRF, with costs proportional to the number of edges.
- Robustness: The model performs at least as well as independent bandits even when the social graph is noisy, indicating minimal downside to incorporating network information.
- Interest-based Graphs: The heuristic for learning graphs on the fly sometimes outperformed explicit social networks, suggesting that behavioral similarity can be more predictive than friendship.
Conclusion
By reframing the Gang of Bandits model through the lens of Gaussian Markov Random Fields, this work provides a scalable path for high-dimensional, networked recommendation systems. While the current model assumes linear rewards and the graph-learning heuristic requires further theoretical grounding, the empirical success of GOBLIN++ marks a significant step toward deploying sophisticated social-contextual bandits in real-world, large-scale environments.
Summary updated