Introduction
Multi-armed bandit (MAB) problems are central to modern recommendation systems and online advertising. In these settings, an agent must choose from a vast set of items (arms) to maximize cumulative reward. However, standard bandit algorithms often struggle with scalability as the number of items $N$ grows. Fortunately, items in these domains are rarely independent; they often reside on a similarity graph where neighboring nodes exhibit similar expected payoffs.
While previous research introduced "SpectralUCB" to exploit this graph structure using the "optimistic" principle, the approach is computationally intensive. It requires calculating complex upper confidence bounds for every item at every time step, making it impractical for large-scale, real-time applications. This paper introduces Spectral Thompson Sampling (SpectralTS), a faster alternative that maintains strong theoretical performance guarantees.
Methodology: Spectral Thompson Sampling
SpectralTS leverages the graph's structure by representing the reward function as a linear combination of a "smooth basis"—specifically, the eigenvectors of the graph Laplacian associated with small eigenvalues.
Key Technical Components
- Effective Dimension ($d$): Rather than scaling with the total number of nodes $N$, the algorithm's performance depends on an "effective dimension" $d$. This metric captures the relevant graph structure and is typically much smaller than $N$ in real-world networks.
- Thompson Sampling Heuristic: SpectralTS maintains a posterior distribution over unknown reward parameters. At each step, it draws a single sample from this distribution and selects the arm that maximizes the reward according to that sample, avoiding the per-arm confidence bound calculations required by UCB methods.
- Computational Efficiency: By utilizing Thompson Sampling, the algorithm reduces per-step complexity significantly. As shown in the table below, SpectralTS offers a more efficient update rule compared to its optimistic counterparts.
Experimental Evaluation
The authors evaluated SpectralTS against state-of-the-art methods using both synthetic and real-world datasets:
- Synthetic Graphs: Random graphs generated via the Barabási-Albert (BA) model, which reflects the "preferential attachment" seen in many real-world networks.
- MovieLens Dataset: A dataset of movie ratings used to construct a similarity graph of 2,019 movies. The objective was to recommend highly-rated movies to users based on item similarities.
Key Results and Insights
The study yielded several critical findings regarding the balance between theoretical optimality and practical performance:
- Theoretical Regret: The authors proved that the cumulative regret of SpectralTS scales as $d\sqrt{T} \ln N$. This matches the best-known results for spectral bandits while utilizing a more efficient algorithm.
- Empirical Performance: In tests on the MovieLens dataset, SpectralTS achieved cumulative regret comparable to SpectralUCB, demonstrating that the Thompson Sampling heuristic does not sacrifice accuracy for speed in these settings.
- Computational Speedup: The most significant advantage of SpectralTS is its speed. On the MovieLens dataset, SpectralTS was approximately 4x faster than SpectralUCB. On synthetic graphs, this gap widened further, highlighting its suitability for large-scale systems.
Conclusion
SpectralTS bridges the gap between theoretical bandit analysis and practical implementation. By exploiting the "smoothness" of rewards over a content graph, it allows for efficient learning even when the number of possible recommendations is massive. Future work may address limitations such as the assumption of a fixed graph structure and the linearity of reward functions, potentially incorporating deep learning or kernel methods to handle more complex, evolving environments.
Summary updated