On Estimating Recommendation Evaluation Metrics under Sampling

Ruoming Jin, Dong Li, Benjamin Mudrak, Jing Gao, Zhi Liu

Introduction

Evaluating recommendation systems by ranking the entire item catalog—known as "Global Evaluation"—is the gold standard for accuracy. However, as catalogs grow to millions of items, this approach becomes computationally prohibitive. To maintain efficiency, researchers frequently turn to "Sampling-based Evaluation," where a relevant item is ranked against a small subset of randomly selected irrelevant items.

While efficient, this practice has a significant drawback: metrics calculated on small samples (e.g., Recall@K or NDCG@K) are often "inconsistent" and fail to reliably predict true global performance. Previous attempts to bridge this gap via mapping functions were often limited to simple metrics like Recall and failed for complex ones like Average Precision (AP) or NDCG. This paper proposes a paradigm shift: instead of trying to fix individual metrics, we should use sampled data to estimate the underlying empirical rank distribution.

Methodology: From Metric Calculation to Distribution Inference

The core insight of this work is that a sampled rank ($r$) is a noisy observation of the true global rank ($R$). When items are sampled uniformly with replacement, the probability of an item appearing at a specific rank in the sample follows a Binomial Distribution. Consequently, the aggregate sampled data can be modeled as a Mixture of Binomial Distributions, where the mixture parameters represent the true global rank distribution $P(R)$.

Figure 1: Comparison of proposed estimators (MLE, WMLE, MES) against the empirical rank distribution P(R) on the MovieLens-1M dataset.

To recover $P(R)$, the authors introduce three primary estimators:

  1. Maximum Likelihood Estimation (MLE): Uses an Expectation-Maximization (EM) algorithm to find the rank distribution that most likely produced the observed sampled ranks.
  2. Weighted MLE (WMLE): A variation that puts more weight on top-ranked items, acknowledging that in recommendation, performance in the top 10 is far more critical than in the top 1000.
  3. Maximal Entropy with Minimal Distribution Bias (MES): This approach uses the principle of Maximum Entropy to keep the distribution smooth while minimizing the squared distance between predicted and observed rank probabilities.

Crucially, these methods are metric-independent. Once the rank distribution $P(R)$ is estimated, it can be plugged into a simple formula to calculate any top-K metric, solving the problem once for all current and future evaluation criteria.

Experimental Evaluation

The proposed methods were evaluated on two widely recognized recommendation benchmarks: MovieLens-1M (ml-1m) and CiteULike. The researchers tested these estimators against several state-of-the-art recommendation algorithms, including Neural Collaborative Filtering (NeuMF), Variational Autoencoders (MultiVAE), and traditional baselines like itemKNN and ALS.

Key Results and Insights

The proposed estimators demonstrate superior accuracy and consistency compared to existing methods. For complex metrics like AP@10 and NDCG@10, the MLE and MES estimators provided values significantly closer to the "Exact" global metrics. For instance, on the CiteULike dataset, the MLE estimator's prediction for the EASE model's Recall@10 was 83.19, remarkably close to the true value of 87.91, whereas the standard sampled metric (CLS) yielded a misleading 52.56.

Figure 5: PMF and CDF estimation results for NeuMF and itemKNN on the MovieLens-1M dataset, showing how various estimators track the empirical distributions.

Efficiency and Winner Prediction

  • Computational Speed: The EM-based MLE approach has a time complexity of $O(kNn)$, making it significantly faster than previous state-of-the-art estimators (like the BV estimator) which scale at $O(n^2N)$.
  • Identifying the Best Model: A critical utility of any evaluation metric is its ability to correctly rank different algorithms. In a test of 100 sample runs, the WMLE approach correctly identified the best-performing algorithm nearly 60% of the time for $K=1$, a scenario where standard sampled metrics failed entirely (0% success).

Conclusion and Future Work

By reframing sampled evaluation as a statistical inference problem, this research provides a mathematically rigorous and metric-agnostic framework for recommendation system assessment. While the new estimators have low bias, they can exhibit higher variance in individual runs. The authors suggest that future work could employ techniques like bootstrapping to reduce this variance and explore "optimal sampling" strategies to determine the minimum number of samples required to reach specific confidence levels.

Summary updated

BibTeX
@inproceedings{jin2021estimating,
  author = {Ruoming Jin and Dong Li and Benjamin Mudrak and Jing Gao and Zhi Liu},
  title = {{On Estimating Recommendation Evaluation Metrics under Sampling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16537},
}
Figure