← Meta Interview Insights

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

SeniorPrefer not to say
May 2026

Summary

Meta MLE loop for ads ranking. The focus was heavily on feature engineering and calibration rather than architecture, which surprised me a bit. One round went almost entirely into data pipeline and logging, barely touched the model itself.

Questions Asked (5)

Q1

Design an ads ranking system: how would you select and rank ads for a given user impression slot?

System DesignTechnical Trade-offs
Author's notes

This is the core question and it goes way deeper than you'd expect.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the problem scope and requirements, then outline a multi-stage ranking system (candidate generation, ranking, and re-ranking) that balances relevance, user experience, and business goals. Emphasize the ML models, features, and evaluation metrics used at each stage, and discuss trade-offs such as latency vs. accuracy and exploration vs. exploitation.

Pro tip: Highlight the importance of calibrating predicted probabilities and incorporating business constraints (e.g., ads diversity, pacing) in the final ranking, as this shows you understand real-world production challenges beyond model accuracy.

1. Clarify Requirements and Constraints

Ask questions to understand the scale (e.g., number of ads, users), latency requirements, business objectives (e.g., revenue, CTR, user satisfaction), and any constraints (e.g., ad load, diversity).

2. Design the Multi-Stage Pipeline

Propose a funnel: candidate generation (retrieval) to narrow millions of ads to hundreds, then a ranking model to score and order them, and finally a re-ranking stage to apply business rules and diversity.

3. Detail the Ranking Model and Features

Describe the ML model (e.g., deep learning with wide & deep or DLRM) and key features: user demographics, historical behavior, ad content, context (time, device), and cross features. Mention how to handle multi-task learning (CTR, CVR).

4. Explain Training and Evaluation

Discuss training data (impression logs), labeling (clicks, conversions), and offline metrics (AUC, log loss). Also cover online evaluation via A/B testing and business metrics (revenue, CTR, user engagement).

5. Address Trade-offs and Productionization

Talk about trade-offs: latency vs. model complexity, exploration vs. exploitation, and how to handle cold start. Mention system architecture (e.g., feature store, model serving) and monitoring.

Key Points to Mention

  • Multi-stage ranking architecture (retrieval, ranking, re-ranking) to handle large-scale ad selection.
  • Use of deep learning models (e.g., DLRM, Wide & Deep) for ranking with multi-task objectives (CTR, CVR).
  • Feature engineering: user, ad, context, and cross features; importance of real-time features.
  • Calibration of predicted probabilities and business rules (e.g., ad pacing, diversity) in re-ranking.
  • Evaluation metrics: offline (AUC, log loss) and online (A/B tests, revenue, CTR, user satisfaction).
  • Trade-offs: latency vs. accuracy, exploration vs. exploitation, and cold start handling.

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

Q2

Walk me through how you'd handle model calibration in an ads system, and why it matters here specifically.

Technical Trade-offsProduct Analytics & Metrics
Author's notes

This is the one that separates ads interviews from generic rec-sys interviews.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining calibration and why it's critical in ads (e.g., predicted CTR must match actual CTR for accurate bidding and auction). Then walk through a systematic process: measure calibration, diagnose issues, apply techniques (like Platt scaling or isotonic regression), and validate with business metrics. Emphasize trade-offs and how calibration impacts downstream systems like ranking and pricing.

Pro tip: Tie calibration directly to revenue and user experience: miscalibration leads to overbidding/underbidding, which can hurt advertiser ROI and user engagement. Mention that you'd monitor calibration drift over time and set up alerts.

1. Define and Measure Calibration

Explain what calibration means in ads (predicted probabilities vs. observed frequencies) and how to measure it using reliability diagrams, calibration curves, or metrics like Expected Calibration Error (ECE).

2. Diagnose Sources of Miscalibration

Identify common causes: model overfitting/underfitting, distribution shift, sampling bias, or using a loss function that doesn't optimize calibration (e.g., log loss can be miscalibrated).

3. Apply Calibration Techniques

Choose methods like Platt scaling, isotonic regression, or temperature scaling, and discuss trade-offs (e.g., isotonic is non-parametric but needs more data; Platt is parametric but may underfit).

4. Validate and Monitor

Validate on a holdout set using calibration metrics and business KPIs (e.g., ROI, CTR). Set up monitoring for calibration drift and retrain/ recalibrate as needed.

5. Integrate with System

Explain how calibrated predictions feed into downstream systems like bidding, ranking, and budget pacing, and how you'd handle trade-offs between calibration and other objectives (e.g., AUC).

Key Points to Mention

  • Calibration ensures predicted probabilities reflect true likelihoods, which is crucial for auction bidding and budget allocation.
  • Common calibration methods: Platt scaling, isotonic regression, temperature scaling, and their pros/cons.
  • Metrics: reliability diagrams, ECE, MCE, and how to compute them.
  • Impact of miscalibration: overbidding leads to wasted spend; underbidding leads to lost opportunities.
  • Handling distribution shift: recalibrate on recent data or use online learning.
  • Trade-offs: calibration vs. discrimination (AUC), and how to balance both.

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

Q3

What features would you use for ads ranking, and how would you organize them?

System DesignTechnical Trade-offs
Author's notes

Went with user, ad, context, cross, and sequence as buckets and listed examples in each.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the business objective (e.g., maximize revenue or long-term value) and the ranking context (e.g., feed ads). Then, propose a feature taxonomy that covers user, ad, context, and interaction features, and explain how you would organize them into a scalable feature store with online/offline consistency. Finally, discuss trade-offs such as feature freshness vs. cost, and how you would evaluate feature importance.

Pro tip: Emphasize the importance of feature versioning and monitoring to detect drift, and mention that you would prioritize features based on their expected impact on the business metric, not just model accuracy.

1. Clarify Objectives and Constraints

Ask about the business goal (e.g., CTR, CVR, revenue) and system constraints (latency, scale). This ensures your feature choices align with the problem.

2. Categorize Features

Group features into logical categories: user (demographics, behavior), ad (content, quality), context (time, device), and interaction (user-ad affinity). This makes the answer structured and comprehensive.

3. Design Feature Organization

Explain how to store and serve features: offline for training, online for serving, with a feature store to ensure consistency. Discuss batch vs. streaming features and embedding tables.

4. Address Trade-offs and Challenges

Discuss trade-offs like feature freshness vs. cost, sparsity vs. coverage, and how to handle missing values. Mention techniques like feature hashing and dimensionality reduction.

5. Evaluate and Iterate

Describe how to measure feature importance (e.g., ablation tests, SHAP) and monitor for drift. Emphasize iterative improvement based on online metrics.

Key Points to Mention

  • User features: demographics, historical engagement, and real-time behavior.
  • Ad features: creative type, text, image embeddings, and advertiser quality.
  • Context features: time of day, device type, and placement.
  • Interaction features: user-ad similarity, cross features, and sequence-based features.
  • Feature store for online/offline consistency and low-latency serving.
  • Handling high-cardinality features with embeddings or hashing.

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

Q4

How would you source, log, and label training data for the ads ranker?

System DesignData Modeling
Author's notes

One whole round was basically just this.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the ads ranking objective and the types of data needed (user, ad, context, interactions). Then walk through the end-to-end pipeline: sourcing from logs and external sources, logging with appropriate schemas and privacy safeguards, and labeling via implicit feedback and human annotation. Emphasize scalability, data quality, and compliance with privacy regulations.

Pro tip: Highlight the importance of negative sampling and delayed feedback in ads ranking, and mention how you would handle biases like position bias in logged data.

1. Clarify Requirements and Data Types

Understand the ranking objective (e.g., CTR, CVR) and identify required data: user features, ad features, context, and interaction labels. Determine labeling needs (binary clicks, conversions, relevance).

2. Design Sourcing Strategy

Plan to source data from production logs (impressions, clicks), external sources (advertiser data), and human annotation for relevance. Ensure coverage of diverse user segments and ad types.

3. Implement Logging Pipeline

Define a schema for logging events with timestamps, user/ad IDs, features, and outcomes. Use distributed logging (e.g., Kafka) and store in a data lake (e.g., HDFS, S3) with partitioning for efficient retrieval.

4. Labeling and Feedback Collection

Derive labels from implicit feedback (clicks, conversions) and explicit human judgments for relevance. Address delayed feedback and negative sampling. Use techniques like counterfactual logging to mitigate bias.

5. Ensure Quality, Privacy, and Scalability

Implement data validation, deduplication, and bias checks. Anonymize PII and comply with regulations (GDPR, CCPA). Design for scale using distributed processing (Spark) and versioning for reproducibility.

Key Points to Mention

  • Implicit feedback (clicks, conversions) vs. explicit labels (human relevance ratings)
  • Negative sampling and handling class imbalance
  • Position bias and counterfactual logging techniques
  • Data privacy and anonymization (PII handling, GDPR/CCPA compliance)
  • Scalable logging infrastructure (Kafka, HDFS, Spark)
  • Data versioning and reproducibility for model training

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

Q5

What metrics would you use to evaluate the ads ranking system, and how do you balance advertiser value against user experience?

Product Analytics & MetricsA/B Testing & Experimentation
Author's notes

Pretty standard framing but the guardrail piece is where it gets interesting.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by outlining a balanced metric framework that captures both advertiser value and user experience, then explain how you would use A/B testing to measure trade-offs and optimize the system. Emphasize the importance of defining clear success criteria and monitoring guardrail metrics to ensure long-term ecosystem health.

Pro tip: Demonstrate awareness of Meta's specific context by referencing metrics like 'meaningful social interactions' and the need to balance short-term revenue with long-term user retention. Highlight the importance of considering counterfactual metrics and long-term holdout experiments to avoid myopic optimization.

1. Define Advertiser Value Metrics

Identify metrics that measure advertiser success, such as return on ad spend (ROAS), conversion rate, click-through rate (CTR), and cost per action. These reflect the effectiveness of the ranking system in delivering value to advertisers.

2. Define User Experience Metrics

Select metrics that capture user satisfaction and engagement, such as user engagement rate, time spent, hide/report rates, and survey-based measures like user satisfaction scores. These ensure the ads don't degrade the user experience.

3. Establish a Balanced Evaluation Framework

Combine advertiser and user metrics into a unified framework, possibly using a weighted composite or a multi-objective optimization approach. Consider long-term metrics like user retention and lifetime value to avoid short-term gains at the expense of user trust.

4. Leverage A/B Testing and Experimentation

Design A/B tests to measure the impact of ranking changes on both advertiser and user metrics. Use guardrail metrics to ensure no dimension is severely harmed, and run long-term holdout experiments to detect delayed effects.

5. Iterate and Optimize Trade-offs

Analyze experiment results to find the optimal balance, potentially using techniques like Pareto frontier analysis. Continuously monitor and adjust the ranking system to adapt to changing user behavior and advertiser needs.

Key Points to Mention

  • Advertiser metrics: ROAS, CTR, conversion rate, cost per action
  • User experience metrics: engagement, hide/report rates, satisfaction surveys
  • Long-term metrics: user retention, lifetime value, advertiser retention
  • A/B testing methodology: control/treatment, guardrail metrics, long-term holdouts
  • Trade-off analysis: multi-objective optimization, Pareto efficiency
  • Meta-specific context: meaningful social interactions, ecosystem health

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