Ranking

Ranking orders candidate items for a user or context. In a recommender, the ranker usually combines predicted relevance with freshness, diversity, eligibility, risk, and product constraints. It sits after candidate generation in most retrieval and ranking architectures.

Pointwise, pairwise, and listwise

A pointwise ranker might score

Here is the user or request context, is a candidate item, contains user-item features, and is the learned relevance model. The penalty weight controls how strongly stale items are pushed down through the item age term.

then sort by . A list-level postprocessor can add constraints such as author diversity or inventory caps. Evaluation of recommenders then uses top-k metrics such as NDCG or recall.

Worked example

Apply a freshness penalty of per age unit, then enforce author diversity in the top two:

ItemRelevanceAgeAuthorScore
00.90100.87
10.851000.55
20.70210.64
30.60010.60

The raw score order is item 0, item 2, item 3, then item 1. Item 1 has high base relevance but is stale and from the same author as item 0, so item 2 enters the top list. This connects ranking directly to diversity, novelty, coverage, and serendipity.

Caveats

Pointwise relevance can over-optimize short-term clicks. List constraints can hide relevance regressions if they are not logged and measured. Rankers trained on historical positions need bias correction or online validation because exposure shapes the labels.

References