← Meta Interview Insights

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

Senior
May 2025

Summary

Meta MLE onsite in late May, second system design round. Just the one question but it took the full session and went pretty deep.

Questions Asked (1)

Q1

Design an event recommendation system.

System DesignTechnical Trade-offsProduct Analytics & Metrics
Author's notes

Spent probably too long on the retrieval layer and didn't get to re-ranking until the last ten minutes.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the scope: what type of events (e.g., local, online, social), what 'recommendation' means (ranking, retrieval, notification), and key constraints like latency, scale, and privacy. Then outline a high-level system with data sources, feature engineering, candidate generation, ranking, and evaluation, emphasizing trade-offs and metrics relevant to Meta's social ecosystem.

Pro tip: Anchor your design around Meta's unique data: the social graph and user engagement signals. Discuss how you'd leverage friend attendance, group affiliations, and past interactions to solve cold-start and relevance, while being mindful of privacy and fairness.

1. Clarify Requirements and Scope

Ask questions to understand the product: event types, user actions (browse, RSVP, share), scale (DAU, events), latency needs, and success metrics. Define what a 'recommendation' entails (e.g., ranking a feed, push notifications).

2. Data and Feature Engineering

Identify data sources: user profiles, social graph, event metadata, historical interactions. Propose features: user-event affinity, social signals (friends attending), temporal/geo features, and content embeddings.

3. Model Architecture: Retrieval and Ranking

Design a two-stage system: candidate generation (e.g., collaborative filtering, graph-based retrieval) to narrow millions to hundreds, then a ranking model (e.g., deep neural network) to score and order. Discuss model choices and trade-offs.

4. Evaluation and Metrics

Define offline metrics (AUC, recall@k, NDCG) and online metrics (CTR, RSVP rate, DAU). Plan A/B tests and consider counterfactual evaluation. Address how to measure long-term user satisfaction.

5. System Considerations and Trade-offs

Discuss scalability (distributed training, serving), latency (caching, approximate nearest neighbors), cold-start (content-based, social), privacy (differential privacy, federated learning), and fairness (avoiding bias).

Key Points to Mention

  • Two-stage retrieval and ranking architecture for scalability
  • Leveraging social graph signals (friends attending, group affiliations) for relevance and cold-start
  • Handling cold-start for new users and events via content-based and social features
  • Online and offline evaluation metrics, including business metrics like RSVP rate and DAU
  • Privacy-preserving techniques (e.g., differential privacy, federated learning) and fairness considerations
  • Trade-offs between model complexity, latency, and infrastructure cost

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