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.

HardSystem Design
86 practiced

Design a real-time personalized search system that combines candidate retrieval, similarity search, a learned reranker and an exploration policy. Explain how the pieces interact.

EasyTechnical
92 practiced

What is approximate nearest neighbor search, and why does embedding-based retrieval in a recommender depend on it? What do you give up compared with exact search?

MediumTechnical
85 practiced

Implement brute-force top-k retrieval in NumPy: given item embeddings and a user embedding, return the top-k items by cosine similarity. Discuss complexity and when this stops being viable.

HardTechnical
84 practiced

When would you re-rank candidates with a cross-encoder instead of a bi-encoder (two-tower) model, and how do hybrid designs combine the two?

That is every published Recommendation, Ranking, and Personalization question for AI Engineer so far. Browse the other topics in this category, or practice this one interactively.