Skip to main content
Interactive 3D/Cascade Funnel Architecture
Candidate Funnel
Retrieval
ANN / BM25
100k
candidates
5ms$10.000/req
filter 90%
Pre-ranking
Lightweight scorer
10k
candidates
12ms$10.000/req
filter 95%
Ranking
Full model
500
candidates
60ms$25.000/req
filter 90%
Re-ranking
Business rules + diversity
50
candidates
8ms$1.000/req
Cost vs Naive (rank everything)
Naive cost (rank all)$5000.000
Cascade cost$46.000
Cost saving: 99.1% vs naive full ranking
Total latency
85ms
Final candidates
50
Cost per request
$46.000
Ranking model
neural
Cost saving
99.1%
Active stages
4/4
Funnel Controls
Candidate Counts
Retrieval100k
Pre-rank10k
Ranking500
Re-rank50
Toggle Stages
Ranking Model
Display
The key insight: applying your expensive neural ranker to 500 candidates instead of 100k candidates = 200x cost reduction with near-zero quality loss.

Cascade Funnel Architecture - Interactive Visualization

The cascade funnel is the standard architecture for industrial recommendation and search systems. It solves a core constraint: you have 100 million items but only 100ms to return a ranked list. The solution is a sequence of increasingly expensive but increasingly accurate models applied to a shrinking candidate set. Stage 1 (retrieval) uses a cheap ANN or BM25 lookup to pull 100k candidates in 5ms. Stage 2 (pre-ranking) scores 10k candidates with a lightweight model. Stage 3 (ranking) applies your expensive neural model to just 500 candidates. Stage 4 (re-ranking) applies business rules and diversity constraints to the final 50. The total cost is orders of magnitude lower than ranking all candidates with the full model.

  • Retrieval: approximate nearest neighbor search (FAISS, ScaNN) or BM25 - retrieves 100k candidates in milliseconds
  • Pre-ranking: shallow model (logistic regression or small MLP) applied to 10k candidates - eliminates obvious non-relevant items
  • Ranking: your best neural model applied to 500 candidates - most of the quality budget spent here
  • Re-ranking: business logic - deduplication, diversity injection, sponsored item insertion - applied to top 50

Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.