Design an ad-selection system across objectives

Quick Overview

This question evaluates expertise in machine learning system design for ad selection and real-time bidding, covering predictive modeling and calibration, value unification across objectives, auction mechanics, budget pacing, exploration strategies, guardrails, and evaluation methodologies.

Design an ad-selection system across objectives

Company: TikTok

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Technical Screen

On TikTok, you must choose which of three advertiser types to show to a user at impression time. Assume objective/value schemes: Gaming (CPI, $10 per install), E‑commerce (CPA, $5 per purchase), Branding (CPM, $3 per 1000 impressions). Design an end‑to‑end ad‑selection system that maximizes expected advertiser value while respecting budgets and pacing. Specify: (1) features and models to estimate P(install | ad,user,context) and P(purchase | ·), calibration/ debiasing for auction-time use, and updating cadence; (2) how to make scores commensurate across objectives (e.g., expected value per impression, converting CPM to per‑impression value) including predicted win rate, quality thresholds, and user experience constraints; (3) exploration vs. exploitation (e.g., contextual bandits), cold‑start handling, and guardrails (frequency capping, diversity, fairness); (4) auction mechanics (second‑price/VCG), bid shading, pacing control, and multi‑objective bidding interactions; (5) offline/online evaluation, including counterfactual replay, lift tests, and success metrics (incremental ROAS, retention, long‑term engagement), and how to detect/mitigate feedback loops or gaming.

Quick Answer: This question evaluates expertise in machine learning system design for ad selection and real-time bidding, covering predictive modeling and calibration, value unification across objectives, auction mechanics, budget pacing, exploration strategies, guardrails, and evaluation methodologies.

|Home/Machine Learning/TikTok
TikTok logo
TikTok
Oct 13, 2025, 9:49 PM
hardData ScientistTechnical ScreenMachine Learning
6
0

End-to-End Ad-Selection System Design

Context

You must choose, at impression time, which advertiser type to show to a user. There are three advertiser objectives with fixed value schemes (values reflect the platform's objective weights per action):

  • Gaming (CPI): $10 per install
  • E‑commerce (CPA): $5 per purchase
  • Branding (CPM): $3 per 1000 impressions

Design a system that maximizes expected advertiser value per impression while respecting budgets and pacing.

Requirements

Specify the following components:

  1. Prediction
    • Features and models to estimate P(install | ad, user, context) and P(purchase | ·).
    • Calibration/debiasing for auction-time use.
    • Updating cadence.
  2. Value Unification and Constraints
    • How to make scores commensurate across objectives (e.g., expected value per impression; convert CPM to per‑impression value).
    • Incorporate predicted win rate, quality thresholds, and user experience constraints.
  3. Exploration, Cold Start, Guardrails
    • Exploration vs. exploitation (e.g., contextual bandits).
    • Cold‑start handling.
    • Guardrails (frequency capping, diversity, fairness).
  4. Auction and Budgeting
    • Auction mechanics (second‑price/VCG), bid shading, pacing control.
    • Multi‑objective bidding interactions.
  5. Evaluation
    • Offline/online evaluation: counterfactual replay, lift tests.
    • Success metrics (incremental ROAS, retention, long‑term engagement).
    • Detecting/mitigating feedback loops or gaming.
Loading comments...