Ranking Metrics

Ranking metrics evaluate whether high-quality items appear near the top of a ranked list. They are central to retrieval, virtual screening, recommendation, reranking, and agent candidate selection.

For a ranked list with binary relevance labels , precision at is:

Recall at is:

Discounted cumulative gain emphasizes early ranks:

Normalized DCG divides by the best possible DCG:

Scientific Screening Metrics

Virtual screening often uses enrichment-style metrics. If active items appear in the top , total actives are , and total items are :

This asks how much better the top-ranked subset is than random selection.

Candidate Pool Contract

Ranking metrics are conditional on the candidate set:

where is a query, is the candidate pool, and gives relevance labels. A score from one candidate pool does not automatically transfer to another pool.

Pool TypeMetric Risk
curated negativesranking may be easier than deployment
random decoysartificial property biases can inflate enrichment
incomplete labelsunobserved positives are counted as negatives
near-duplicate candidatesscaffold or sequence leakage can dominate top ranks
per-query candidate setsmacro and micro averages answer different questions

For molecular screening, state whether negatives are measured inactive compounds, presumed negatives, decoys, generated candidates, or unlabeled compounds.

Aggregation

For multiple queries:

Macro averaging weights each query equally. Micro-style aggregation pools candidates and can be dominated by large or easy queries. For protein targets, assay panels, retrieval questions, or agent candidate lists, state the aggregation unit.

Cutoff Choice

should match the downstream action. For screening, top , top , or budget-limited selection can be more meaningful than full-list metrics. Choose on validation or from a fixed application budget, not after looking at the test ranking.

Practical Checks

  • Is the decision based on the top few items or the whole ranking?
  • Are relevance labels complete, partial, noisy, or assay-dependent?
  • Does the benchmark contain many near-duplicates that make ranking easier?
  • For virtual screening, are decoys and negatives realistic for the target setting?
  • Is the candidate pool fixed, query-specific, generated, or deployment-like?
  • Are metrics macro-averaged by query/target or micro-averaged over all candidates?