← Meta Interview Insights

Meta·Machine Learning Engineer·Onsite - System Design / Architecture·Senior

SeniorPrefer not to say
Jun 2026

Summary

Meta machine learning interview, asked to design a ranking model for Instagram feeds. Pretty open-ended and I wasn't totally sure how deep to go on the ML side versus the product side.

Questions Asked (1)

Q1

Design a ranking model for Instagram's feed. Walk through your approach from problem framing to model selection and evaluation.

System DesignProduct Analytics & MetricsTechnical Trade-offs
Author's notes

I started with objectives which felt right, but I spent way too long debating engagement signals versus satisfaction signals before actually getting to any architecture.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the product goal and constraints (e.g., maximize long-term user engagement while balancing freshness, diversity, and integrity). Then outline a multi-stage ranking system (candidate generation, ranking, re-ranking) and discuss model choices (e.g., GBDT, DNN, multi-task learning) with evaluation metrics (offline: NDCG, AUC; online: A/B tests on engagement and satisfaction).

Pro tip: Emphasize the importance of defining the right objective (e.g., long-term user value over short-term clicks) and mention how you'd handle position bias and feedback loops in training data.

1. Problem Framing & Objectives

Define the ranking problem: what to rank (posts), for whom (users), and the goal (e.g., maximize meaningful interactions). Clarify constraints like latency, scalability, and content freshness.

2. Data & Features

Identify data sources: user features (demographics, past behavior), post features (content type, author, freshness), and context (time, device). Discuss feature engineering and handling of missing data.

3. Model Architecture

Propose a multi-stage system: candidate generation (e.g., collaborative filtering, embeddings) to narrow down, then a ranking model (e.g., deep neural network with multi-task learning) to predict engagement probabilities, and finally a re-ranking layer for diversity and business rules.

4. Training & Evaluation

Describe training setup: loss functions (e.g., logistic loss for CTR, pairwise for ranking), handling position bias (e.g., inverse propensity scoring), and offline metrics (AUC, NDCG). Plan online evaluation via A/B tests measuring engagement and user satisfaction.

5. Iteration & Monitoring

Discuss deployment, monitoring for model drift, and continuous improvement through feedback loops and experimentation.

Key Points to Mention

  • Multi-stage ranking pipeline (candidate generation, ranking, re-ranking)
  • Choice of objective: long-term user value vs. short-term engagement
  • Handling position bias and feedback loops in training data
  • Use of multi-task learning to predict multiple engagement signals
  • Offline metrics (NDCG, AUC) and online A/B testing
  • Diversity and freshness considerations in re-ranking

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.