Skip to content
The Plain Paper

Measure

Hit Rate@K (HR@K)

Hit Rate@K (HR@K) measures how often a recommendation or retrieval list contains at least one relevant item among its first K results. It is also called Hit Ratio or Hit@K.

What it is

For each user or query, HR@K records a hit if at least one relevant item appears in the top K results, and no hit otherwise. The overall score is the average of these binary outcomes, so it is the share of users or queries with a hit.12

In a test set with one target item per row, HR@K is the fraction of rows where the target item is ranked within the first K positions. With multiple relevant items, the corresponding hit is whether any one of them appears in the top K.342

How it works

For each user or query, inspect the first K ranked items. Set the result to 1 if any item there is relevant, and to 0 if none is relevant; average these results across users or queries. With one target per test row, this is HR@K = (number of rows whose target ranks at K or higher) / (number of test rows).342

Where it came from

The sampling-based top-k method was first suggested by Koren in 2008 and was used by Cremonesi and colleagues in 2010. The sampled form evaluates a target against a smaller sampled item set rather than ranking it against the full item set.5

Strengths and limits

HR@K gives a direct measure of how many users or queries receive at least one relevant result. It does not distinguish between a relevant item at rank 1 and one at rank K, or count additional relevant items in the same list.12

The score typically rises as K grows, because longer lists give more chances for a relevant item to appear. Sampling-based HR can reduce evaluation cost; a study of sampled and global Hit Ratios describes a mapping between their cutoffs and reports that sampled results can approximate global results and preserve model rankings under its studied conditions.52

How recent papers use it

From Sessions to Serving uses HR@K as the fraction of test rows whose logged positive item appears among the top K retrieved items. ReflectRec reports the recommendation metric at cutoffs 1, 5, and 10.36

CARE uses Hit@K, defined as the proportion of queries with at least one labeled positive among the top K results, in its retrieval evaluation. Better Rankers, Worse Retrievers uses the share of test prompts whose target is ranked within K.74

More Than a Score uses a top-K recommendation metric in full-item ranking evaluation.8

Names and versions

Also written as
Hit Ratio (H@K), Hit@K

Papers that mention Hit Rate@K (HR@K)

  1. 18 Nov 2026Used

    ReflectRec: Cycle-Consistency Preference Verification for LLM-based Recommendation

    The recommendation metric reported at cutoffs 1, 5, and 10.

  2. 17 Nov 2026Used

    CARE: Conversational Affective Response Retrieval for Internet Memes

    Hit@K is the proportion of queries with at least one labeled positive in the top K results.

  3. 17 Nov 2026Used

    Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation

    It is the share of test prompts whose target is ranked within K.

  4. 17 Nov 2026Used

    More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation

    A top-K recommendation metric used in full-item ranking evaluation.

Sources

  1. 1Evaluating recommender systemscran.r-project.org
  2. 2Ranking and RecSys metrics - Documentationdocs.evidentlyai.com
  3. 3From Sessions to Serving: Integrating LLM-Based Embeddings into Retrieval for Production Content RecommendationPaper explained on this site
  4. 4Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative RecommendationPaper explained on this site
  5. 5On Sampling Top-K Recommendation Evaluationarxiv.org
  6. 6ReflectRec: Cycle-Consistency Preference Verification for LLM-based RecommendationPaper explained on this site
  7. 7CARE: Conversational Affective Response Retrieval for Internet MemesPaper explained on this site
  8. 8More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative RecommendationPaper explained on this site

Every paragraph above was checked against the sources it cites before it was published.