KatInterview

Build a Click Prediction System for Job Recommendations

Machine LearningModel answer
HardModel answerMachine Learningml-system-designrankingembeddings

Last updated

Design an ML system that predicts job click probability using member profiles, job attributes, and behavior logs to power ranking at serving time.

You're building a machine learning system for a career platform that shows job listings to users. Your task is to design a system that predicts the probability a user will click on a job posting when it's shown to them. This predicted probability will be used to rank which jobs appear higher in their feed.

You should define the complete system, covering:

  • Data requirements: What historical data and features you need, including user behavior logs
  • Training labels: How you define positive and negative examples from logged interactions
  • Architecture: The offline training pipeline and online serving components
  • Model training: Loss function choice, handling class imbalance, and preventing data leakage
  • Feature engineering: How you represent users and jobs, including generating embeddings for both
  • Cold start: How you handle new users and new job postings with little or no history

Assume you have access to user profile data, job posting metadata, and logs of which jobs were displayed and which were clicked. Treat this as a 20-minute discussion—focus on the critical decisions and trade-offs rather than every implementation detail.

Follow-up considerations:

  • How do you account for position bias (jobs shown higher get more clicks regardless of relevance)?
  • Should clicks be your true objective, or are you optimizing for a proxy metric?
  • How do you validate the model offline and measure impact online?

Hints

Hint 1

Think carefully about what makes an impression a negative example—not every job a user didn't click should count against relevance.

Hint 2

Position bias is real: jobs at the top get clicked more often. Consider how to debias your training data or model this explicitly.

Hint 3

Cold-start users and jobs need a fallback strategy—popularity-based ranking or content-based features can bootstrap until you have interaction history.