Recommendation, Ranking, and Personalization Questions

Systems that select and order items for users. Covers candidate generation and ranking (two-stage retrieval, embedding-based retrieval with two-tower models and approximate nearest-neighbour candidate lookup, multi-stage scoring and cross-encoder re-ranking), collaborative and content-based filtering, matrix factorization (alternating least squares, Bayesian personalized ranking), sequence-aware and graph-based recommenders, cold start, learning-to-rank and negative sampling, turning noisy implicit feedback into labels, position, exposure and popularity bias and feedback loops, diversity, fairness-aware exposure and multi-objective re-ranking, counterfactual (off-policy) evaluation of recommenders (inverse propensity scoring, doubly robust estimators), and exploration with multi-armed and contextual bandits (epsilon-greedy, upper-confidence-bound and Thompson sampling, LinUCB, regret, non-stationarity, constraints, rollout, and when a bandit beats a fixed split or full reinforcement learning). Includes end-to-end recommender and personalized feed design. Focuses on the modeling and evaluation patterns specific to recommendation and ranking at scale. General A/B test design, generic ranking-metric definitions and ML serving infrastructure are covered elsewhere.

MediumTechnical
121 practiced

Implement maximal marginal relevance re-ranking in Python: given a ranked candidate list, item embeddings and a trade-off parameter, return a re-ranked top-k list.

MediumTechnical
85 practiced

Write a function that generates up to N candidate tracks for a user by blending several sources (an artist index, a co-listen index and embedding similarity). Explain how you de-duplicate and weight the sources.

MediumTechnical
71 practiced

You must optimize a ranker for two objectives, for example clicks and a revenue-per-click constraint. What approaches would you use in training and serving, and how do you choose the trade-off?

EasyTechnical
77 practiced

Why do large-scale recommenders split the problem into candidate generation and ranking? Walk through what each stage optimizes, the kind of model that suits it, and how the size of the candidate set passed between stages is chosen.

MediumSystem Design
87 practiced

Design an offline evaluation framework for a recommender using logged implicit feedback that supports counterfactual estimates of how a different policy would have performed.

Unlock Full Question Bank

Get access to all Recommendation, Ranking, and Personalization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.