Exploring Popularity Bias in Session-based Recommendation

Haowen Wang · DOI

Abstract

Existing work has revealed that large-scale offline evaluation of recommender systems for user-item interactions is prone to bias caused by the deployed system itself, as a form of closed loop feedback. Many adopt the propensity concept to analyze or mitigate this empirical issue. In this work, we extend the analysis to session-based setup and adapted propensity calculation to the unique characteristics of session-based recommendation tasks. Our experiments incorporate neural models and KNN-based models, and cover both the music and the e-commerce domain. We study the distributions of propensity and different stratification techniques on different datasets and find that propensity-related traits are actually dataset-specific. We then leverage the effect of stratification and achieve promising results compared to the original models.

Introduction

In the world of Recommender Systems (RS), "session-based" recommendation is a unique challenge. Unlike platforms like Netflix or Amazon, which leverage years of user history, session-based systems—common on retail sites where users aren't logged in—must predict intent based solely on the current sequence of clicks.

Curiously, recent research has shown that simple "Nearest Neighbor" (KNN) models often outperform sophisticated deep learning models in offline tests. This paper investigates whether a "Simpson’s Paradox" is at play: perhaps deep learning appears inferior on the whole dataset only because the data is dominated by popular items that KNN is naturally adept at memorizing. The authors hypothesize that deep learning models may actually perform better in specific "strata" of the data, particularly for unpopular, "long-tail" items.

Methods and Stratification

The researchers employed the concept of Propensity Scores—a measure of the probability that a specific item is exposed to a user. Since true exposure probability is unknown in offline datasets, it was estimated using observed item frequency and a power-law distribution.

To analyze model performance, two stratification techniques were used:

  1. Target-based: Stratifying based on the popularity of the ground-truth item.
  2. History-based: Stratifying based on the average popularity of items already seen in the current session, which is more representative of real-world deployment.

The study compared SKNN (a similarity-based neighbor model) and GRU4REC (a Gated Recurrent Unit neural network). They also proposed Ensemble Methods (Fixed-Weight and Dynamic-Weight) that use session propensity to dynamically weight the contributions of the neural network and the KNN model.

Datasets and Propensity Distribution

The study utilized three diverse datasets: Diginetica (e-commerce), Retailrocket (e-commerce), and 30MU (music listening from Last.fm). The music dataset featured significantly longer average session lengths (17.11 items) compared to the retail datasets (~4 items). Analysis showed that popularity bias is not universal; the distribution of item propensity varies significantly across domains.

Distribution of Log (base 10) Item Propensity across the three datasets: Diginetica, RetailRocket, and 30MU.

Key Insights

  • Deep Learning as a "Niche" Specialist: In e-commerce, as items become less popular (lower propensity), GRU4REC’s advantage over SKNN grows. While SKNN excels at recommending "hits," it struggles with the "long tail."
  • Contextual Signals: The average popularity of items a user has already clicked serves as a strong signal for determining which model will perform better on the next click.
  • Domain-Specific Patterns: In the music dataset (30MU), GRU4REC outperformed KNN across almost all popularity levels, likely due to the deeper sequential patterns inherent in music sessions that RNNs are designed to capture.

Key Results

The proposed ensemble model, combining SKNN and GRU4REC, outperformed individual models by 3-5% on retail datasets. Crucially, when evaluating the bottom 10% of items by popularity, GRU4REC demonstrated significantly higher robustness against popularity bias compared to SKNN.

MRR@20 performance across different popularity percentiles, comparing SKNN and GRU4REC models.

The dynamic ensemble method, which uses a Sigmoid function to shift weights based on real-time propensity, achieved the highest performance, reaching a Hit Rate@20 of 0.556 on Diginetica and 0.586 on Retailrocket.

Conclusion

This research confirms that a model can be "worse" on a full dataset but "better" on specific, important subsets like unpopular items. This justifies the need for multi-dimensional evaluation in recommender systems. While history-based stratification is a strong proxy, future work could explore more complex session context aggregation and other strata to further refine model selection.

Summary updated

BibTeX
@misc{wang2023exploring,
  author = {Haowen Wang},
  title = {{Exploring Popularity Bias in Session-based Recommendation}},
  year = {2023},
  eprint = {2312.07855},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.07855},
}
Figure