Retrieval and Ranking Architectures

Retrieval-and-ranking architectures split recommendation into fast broad recall and slower precise ordering. This is the recommender analogue of dense retrieval followed by reranking: retrieve thousands, rank hundreds, display a few.

The two-stage system

A two-stage system can be written as

where is a cheap retrieval score and is a richer ranking model. Candidate generation may combine multiple retrieval sources before ranking.

The two-stage recommender funnel: cheap candidate generation narrows the catalog to a few hundred items, then expensive ranking orders the survivors into a top-k list.

Worked example

A cheap retrieval score can select candidates before the ranker adds richer features:

ItemRetrieval scoreRetrieved?Ranker marginFinal rank score
00.74yes0.000.74
10.24no0.20not ranked
20.60yes0.100.70
30.44yes0.300.74

The retrieval stage recalls items 0, 2, and 3; item 1 is never seen by the ranker. The ranker then promotes item 3 above item 2 using the margin feature. Hybrid recommenders often feed several such scores into the ranker.

Caveats

Retrieval and ranking must be evaluated separately. A ranker with excellent NDCG cannot fix low candidate recall, and a high-recall generator can still overload serving latency. Keep eligibility, freshness, deduplication, and exploration decisions visible in logs.

References