The ranking cascade
What it is
Large ranking systems pass items through several stages, each more accurate and more expensive per item than the last:
- Retrieval: thousands of candidates from the whole catalogue, in milliseconds.
- Light ranker (pre-ranking): a small, fast model cuts thousands to hundreds.
- Heavy ranker: the most accurate model scores the hundreds.
- Re-ranking: rules and adjustments (variety, freshness, business limits) produce the final list.
Why it matters
Each stage spends effort only where it matters.
- The expensive model sees only items that are already plausible.
- The total time fits the budget even though the heavy model alone could never score the whole catalogue.
- Stages can be improved independently, each with its own measure.
In the real world: Meta, Pinterest and TikTok describe cascades of three or four stages; Kirana Kart, with a smaller catalogue, uses the four shown here.
Visual example
ComputedKirana Kart's home-screen cascade. Each stage is costlier per item and sees fewer items: about 62 ms in all.
Retrieval and the light ranker together fit the 20 ms that module 4 gave to finding candidates; the heavy ranker's 40 ms is its ranking budget.
Training each stage on its own without thinking of the next. A light ranker that optimises a different goal from the heavy ranker throws away items the heavy ranker would have put first.
Practise it: Design a Recommendation System, Design a Personalized News Feed