PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/ML System Design/TikTok

Design LLM-enhanced recommendation solutions

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competency in ML system design and engineering with emphasis on integrating large language models into large-scale recommendation pipelines, covering architecture choices, online/offline placement, latency and cost trade-offs, safety/moderation, multi-modal support, and evaluation/monitoring strategies.

  • hard
  • TikTok
  • ML System Design
  • Machine Learning Engineer

Design LLM-enhanced recommendation solutions

Company: TikTok

Role: Machine Learning Engineer

Category: ML System Design

Difficulty: hard

Interview Round: Technical Screen

How can large language models be incorporated into recommendation systems? Outline use cases such as item/user metadata enrichment, query and intent understanding, cold-start handling, generative retrieval, semantic reranking, explanations, and multi-modal recommendations. Propose architectures (LLM as feature generator, reranker, or agent/orchestrator), describe online/offline placement and caching strategies, address latency/cost constraints and safety/content filtering, and define offline and online evaluation plans (A/B tests, guardrails, feedback loops).

Quick Answer: This question evaluates a candidate's competency in ML system design and engineering with emphasis on integrating large language models into large-scale recommendation pipelines, covering architecture choices, online/offline placement, latency and cost trade-offs, safety/moderation, multi-modal support, and evaluation/monitoring strategies.

Related Interview Questions

  • Design video captioning under compute limits - TikTok (medium)
  • Design a model to choose dynamic K - TikTok (medium)
  • Design training for multimodal embedding model - TikTok (medium)
  • What skills are needed for AI infra roles? - TikTok (hard)
  • Design system to detect privacy-leak records - TikTok (medium)
TikTok logo
TikTok
Aug 8, 2025, 12:00 AM
Machine Learning Engineer
Technical Screen
ML System Design
2
0

System Design: Incorporating Large Language Models (LLMs) into a Large-Scale Recommendation System

Context

You are designing enhancements for a high-throughput, mobile-first recommendation system that serves a mixed-media feed (short videos, images, text, live). The system must operate under tight latency and cost budgets, handle multi-lingual content, and meet strong safety/moderation requirements.

Task

Outline how to incorporate LLMs end-to-end, covering:

  1. Use cases
    • Item/user metadata enrichment
    • Query and intent understanding (search, natural-language instructions)
    • Cold-start handling (items and users)
    • Generative retrieval
    • Semantic reranking
    • Explanations/justifications
    • Multi-modal recommendations
  2. Architectures
    • LLM as feature generator (mostly offline)
    • LLM as reranker (online, top-K)
    • LLM as agent/orchestrator (tools + policies)
  3. Online/offline placement and caching strategies
    • What runs offline vs online; what to cache and how
  4. Latency and cost constraints
    • Budgets, fallbacks, distillation/quantization, traffic shaping
  5. Safety and content filtering
    • Moderation, prompt hardening, PII/fairness guardrails
  6. Evaluation plans
    • Offline: metrics, ablations, IPS/counterfactual evaluation, quality checks
    • Online: A/B tests, guardrails, feedback loops, monitoring

Provide concrete design choices, resource estimates, and guardrails suitable for a technical screening interview.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More ML System Design•More TikTok•More Machine Learning Engineer•TikTok Machine Learning Engineer•TikTok ML System Design•Machine Learning Engineer ML System Design
PracHub

Master your tech interviews with 7,500+ 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.