On Sampling Top-K Recommendation Evaluation

Zhi Liu, Dong Li, Ruoming Jin, Jing GaoKDD 2020 · DOI

Abstract

Sampling-based evaluation is a common practice in recommender systems to reduce computational overhead. However, recent studies have questioned its validity, labeling it "inconsistent" with global metrics. This paper provides a theoretical and empirical "rehabilitation" of sampling-based evaluation. We demonstrate that while a sampling-based Hit-Ratio ($SHR@k$) does not match its global counterpart ($HR@K$) at the same $k$, it consistently identifies the best-performing algorithms and can be mapped to the global metric via a predictable scaling function $f(k)$.

Introduction

In recommender systems, evaluating the "Global Top-K" performance across millions of items is computationally intensive. Researchers typically use sampling—hiding the ground-truth item among a small set of "distractors" (irrelevant items)—to estimate performance. A recent influential critique suggested these sampled metrics are inconsistent, potentially invalidating years of research. This paper investigates whether sampling is a "broken compass" or simply requires a different calibration.

The Consistency of Sampling

The authors formalize the relationship between the Sampling Hit-Ratio ($SHR@k$) and the Global Hit-Ratio ($HR@K$). A key contribution is the Sampling Theorem, which proves that if Algorithm A is strictly superior to Algorithm B on a global scale, it will maintain that superiority under sampling. This ensures that sampling-based leaderboards remain reliable for identifying the best models.

Comparison of Global Top-K (HR@K) and Sampling Top-K (SHR@k) across various recommendation algorithms.

As seen in the figure above, the performance curves for various models (itemKNN, ALS, EASE, NeuMF, etc.) follow the same relative ordering in both global and sampled evaluations. The sampled metric acts as a "signal sampler" of the global curve; while the absolute values differ, the shapes and relative performance of the models remain consistent.

Mapping Sampled Metrics to Global Performance

The core hypothesis is that $SHR@k \approx HR@f(k)$. The sampling metric at a small $k$ is a proxy for the global metric at a much larger $K = f(k)$. The authors propose several mapping functions $f(k)$ to bridge this gap, including simple linear scaling and more sophisticated models using the Beta distribution to account for user rank distributions.

Visual representation of the mapping function f(k) connecting Sampling Hit-Ratio to Global Hit-Ratio.

The mapping function allows researchers to estimate global performance from sampled data with high accuracy. For instance, on the MovieLens 1M dataset, the absolute error between predicted and actual global Hit-Ratios was often negligible (less than 0.002). This suggests that $SHR@10$ is not "wrong," but rather a different view of the same underlying performance truth.

Empirical Results and Insights

Experiments across five benchmarks (MovieLens 1M, Yelp, Pinterest-20, CiteULike, and Book-X) confirmed that:

  1. Leaderboard Stability: Sampling rarely flips the relative ranking of competitive algorithms. If Model A beats Model B in a sampled test, it almost certainly beats it in a global test.
  2. Predictive Accuracy: Using sophisticated mapping like [email protected], global performance can be reconstructed from sparse sampled data.
  3. Efficiency: Even with very small sample sizes (e.g., 100 items out of thousands), the relative order of models remains stable, justifying the use of sampling for rapid experimentation.

Conclusion

This work provides a "sigh of relief" for the recommendation community. Sampling-based evaluation is not fundamentally broken; it is a scaled version of the global truth. By understanding the mapping function $f(k)$, researchers can continue to use efficient sampling methods without sacrificing the validity of their comparative results. Future work will explore if these properties extend to other metrics like nDCG and MRR.

Summary updated

BibTeX
@inproceedings{liu2020sampling,
  author = {Zhi Liu and Dong Li and Ruoming Jin and Jing Gao},
  title = {{On Sampling Top-K Recommendation Evaluation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403262},
}
Figure