RECOMMENDATION SYSTEMS · INTERVIEW QUESTION
What is candidate generation?
🟢 beginner · Recommendation Systems
Hint: Focus on the decision rule, assumptions, and failure mode behind recommendation systems.
Answer
Candidate generation retrieves a manageable set of potentially relevant items from a large catalog. It prioritizes recall and efficiency.
Interview reasoning
Retrieval optimizes coverage over a large catalog; ranking spends more compute on a smaller pool. Relevant candidates absent from the pool cannot be recovered.
Candidate generation reduces a huge catalog to a manageable pool using multiple retrieval sources, often embeddings plus business/context sources. Its recall bounds the ranker's possible success. Separate misses caused by representation, approximate search, eligibility filters and insufficient candidate budget.
Worked example. Retrieving only 50 of 100 relevant items caps final relevant recall at 50%, regardless of ranker strength.
Validation
Report retrieval recall at a fixed candidate and latency budget, then final ranking quality.
Measure recall at realistic K, source coverage, eligible-item recall and retrieval p99; compare with a high-recall diagnostic pool.
Common pitfalls
A high ranker score evaluated only on easy retrieved positives can obscure coverage failure.
Click-derived positives reflect the old policy. Increasing K may improve recall while violating latency or overwhelming the ranker.
Likely follow-up: Report retrieval recall at a fixed candidate and latency budget, then final ranking quality.