Machine Learning Engineering · Module 16
Recommendation and ranking systems
- Lessons
- 15
- Free
- 0
- Reading
- ~4 h
Your progress
0 / 15 lessons done
Sign in to trackLessons
- Recommendation systems: the problem they solveHome pages, “You may also like” strips, feeds and search results all pick a few items from millions for one person. Every recommender you build or maintain starts from the same questions: what to learn from, how to narrow the catalogue fast, and how to know it worked.
- Collaborative filtering and matrix factorizationMost recommendation rows still start from who bought what. Knowing how neighbours and factor tables read an order log, and why an empty cell isn’t a “no”, lets you build a first recommender that beats best sellers and judge it honestly.
- Case: Spotify’s graph model for audiobook picksEvery store that adds a new type of product meets the same gap: the model needs history, and the new items have none. Spotify published how it closed that gap for audiobooks, with offline tables and an A/B test you can read side by side.
- Content-based recommendationsEvery catalogue that adds items daily has products nobody has bought yet. Content-based recommendations are how those products, and customers with unusual tastes, get shown at all.
- Two-tower models for fast retrievalMost large recommenders find their first few hundred candidates with a two-tower model. It is the one design that reads a customer’s latest activity and still searches millions of items within a request’s time budget.
- Candidate generation and ranking: the two-stage designEvery feed, search page and product row that picks from millions of items splits the work this way. Knowing what each stage costs, and which one lost a good item, is how you fix a recommender instead of retraining the wrong model.
- Generative recommenders: semantic IDs and sequencesSequence models are the main new idea in recommendations since two-tower retrieval. Knowing how they name products, and what they cost to serve, tells you when to test one and when the system you have is still better.
- Learning to rankEvery search page, feed and recommendation row is ordered by a ranking model. The loss you train it with decides whether it learns the order customers see or only how likely each product is on its own.
- Ranking features: users, items and contextMost of a ranking model’s quality comes from its inputs, not its architecture. Engineers who build recommenders spend much of their time choosing, computing and serving these features, and most offline-online surprises trace back to one of them.
- The cold start problemEvery store, feed and marketplace adds products and customers every day, and each one arrives with no history. How the system treats them decides whether new sellers get a first sale and whether first-time visitors come back.
- Exploration and banditsA recommender learns only from what it shows. How many views it spends on products it isn’t sure about decides whether it ever finds better ones, and what finding them costs.
- Evaluating recommenders offline and onlineA recommender changes what customers see, so its logs only record reactions to the old model’s choices. Teams that score new rankers on those logs ship the wrong ones, or wait weeks of A/B testing to learn nothing.
- Multi-objective ranking: clicks, purchases and moreEvery feed, store and ads system ranks for more than one thing: attention, sales, profit and customer trust. The engineer who builds the ranker decides how those goals are traded, so the trade should be explicit, measurable and cheap to change.
- Case: Swiggy’s ranking that lifts revenue per orderMost ranking teams are asked to lift revenue or margin without losing orders. Swiggy’s researchers published one way to do it that leaves the ranker’s loss alone, with an online test you can read day by day.
- Design: product recommendations like AmazonEvery recommendation lesson so far built one part. A real row is all of them at once, on one request, within one time budget, while the model retrains every night on what the row itself chose to show. Most failures live in the joins between the parts.
Practise with
No tools or paper guides for this module yet.
Terms this module teaches 1
Open glossaryExploration
Trying actions whose result is still uncertain, so a learning system can find out what they earn. The opposite, exploitation, picks the best-known action.