internalsGet Pro

Module 16 · Lesson 7 of 15Pro

Generative recommenders: semantic IDs and sequences

Level
Advanced
Topic
Recommendation and ranking systems
Reading time
18 min

When you finish this page you can

  1. Treat a customer’s history as a sequence and explain why one token per product breaks at 20 million products.
  2. Build semantic IDs with residual quantization, and decode them back into products with beam search.
  3. Read what TIGER and HSTU measured, on which data, and what they leave unstated.
  4. Decide where a generative recommender fits next to the two-stage design, and name its costs in latency, freshness and invalid IDs.
  1. Learned embeddings: vectors for words, items and users18 min
  2. The transformer, layer by layer18 min
  3. k-means: grouping similar data points14 min
  4. Content-based recommendations17 min

Video lesson · coming soon

A model that names the next product meets 20 million names

is the online store this course uses as its example. It has 20 million products, 5 million customers a day and 500,000 orders a day. This module works on one prediction: which products to show each customer in the “Picked for you” row. At a festival peak that row gets about 30,000 requests a second, each answered within 100 ms.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan