Bandit algorithms address the cold-start and feedback-loop problems in recommender systems by modeling uncertainty and deliberately exploring underexposed items. The post covers three core algorithms — ε-greedy, Upper Confidence Bound (UCB), and Thompson Sampling — with real-world implementations from Spotify, Yahoo, Netflix, Doordash, Twitter, Alibaba, and Amazon. Key findings include: UCB and Thompson Sampling outperform ε-greedy; Thompson Sampling is more robust to delayed feedback; pessimistic initialization beats naive initialization; and semi-personalized (cluster-based) bandits can outperform fully personalized ones. The post also covers warm-starting strategies using hierarchical data or importance-weighted logged events, and off-policy evaluation via the replay method, noting that supervised PR-AUC on biased logged data can diverge from real-world CTR performance.

14m read timeFrom eugeneyan.com
Post cover image
Table of contents
ε-greedy, UCB, and Thompson SamplingIndustry examples of bandits for recsysLessons on applying bandits in industryExploring new items - two optionsAddressing the curse of dimensionalityWarm-starting bandits for better user experienceEvaluating bandits via off-policy evaluationReferences