Design a Recommendation System from Retrieval to Evaluation

Quick Overview

Design recommendation retrieval, ranking, features, and training data with point-in-time correctness, cold-start handling, and aligned offline/online evaluation.

Design a Recommendation System from Retrieval to Evaluation

Company: LinkedIn

Role: Machine Learning Engineer

Category: ML System Design

Difficulty: hard

Interview Round: Technical Screen

Design a recommendation system covering candidate retrieval, ranking, features, training examples, and offline/online evaluation. Explain how these pieces fit together and how you would detect mismatches between model improvements and user outcomes. ### Clarifying Questions to Ask - What items are recommended, and what user outcome defines success? - Which interactions are logged, including impressions and non-clicks? - What serving latency, freshness, and cold-start constraints apply? ```hint Trace a training example back to an impression Labels and features must represent what was known when the recommendation was shown. ``` ### What a Strong Answer Covers - High-recall retrieval followed by more expensive ranking and final constraints. - Point-in-time feature correctness and appropriate negative examples. - Offline ranking/retrieval metrics and online experiments with guardrails. ### Follow-up Questions - How would new users and new items receive recommendations? - What could cause offline gains to fail in an online experiment?

Overview: Design recommendation retrieval, ranking, features, and training data with point-in-time correctness, cold-start handling, and aligned offline/online evaluation.

Read the full LinkedIn Machine Learning Engineer interview experience this question came from

LinkedIn logo
LinkedIn
Sep 29, 2026
hardMachine Learning EngineerTechnical ScreenML System Design
0
0

Design a recommendation system covering candidate retrieval, ranking, features, training examples, and offline/online evaluation. Explain how these pieces fit together and how you would detect mismatches between model improvements and user outcomes.

Clarifying Questions to Ask Guidance

  • What items are recommended, and what user outcome defines success?
  • Which interactions are logged, including impressions and non-clicks?
  • What serving latency, freshness, and cold-start constraints apply?

What a Strong Answer Covers Guidance

  • High-recall retrieval followed by more expensive ranking and final constraints.
  • Point-in-time feature correctness and appropriate negative examples.
  • Offline ranking/retrieval metrics and online experiments with guardrails.

Follow-up Questions Guidance

  • How would new users and new items receive recommendations?
  • What could cause offline gains to fail in an online experiment?