Module 16 · Lesson 5 of 15Pro
Two-tower models for fast retrieval
- Level
- Advanced
- Reading time
- 18 min
When you finish this page you can
- Explain why scoring with a dot product between separately computed vectors lets 20 million product vectors be computed once a day and searched with a nearest-neighbour index.
- Decide which features go in the user tower and which in the item tower, and name the signals neither tower can see.
- Train a two-tower model on orders with in-batch negatives, and correct its bias against popular products with logQ correction.
- Estimate the memory and the per-request work of serving a two-tower model at 30,000 requests a second.
Builds on 3 lessons
Start with Module 10, lesson 518 minVideo lesson · coming soon
Twenty million products, 100 milliseconds
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
View all plansAlready Pro? Sign in