PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/TikTok

Design an ad-selection system across objectives

Last updated: Mar 29, 2026

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.

  • hard
  • TikTok
  • Machine Learning
  • Data Scientist

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.

Related Interview Questions

  • Design multimodal deployment under compute limits - TikTok (easy)
  • Explain overfitting, dropout, normalization, RL post-training - TikTok (medium)
  • Write self-attention and cross-entropy pseudocode - TikTok (medium)
  • Explain FlashAttention, KV cache, and RoPE - TikTok (medium)
  • Answer ML fundamentals and diagnostics questions - TikTok (hard)
TikTok logo
TikTok
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Machine Learning
2
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.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More TikTok•More Data Scientist•TikTok Data Scientist•TikTok Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.