[RE] Modeling Personalized Item Frequency Information for Next-basket Recommendation

Slawomir Garcarz, Avik Pal, Pim PraatarXiv 2024 · DOI

Introduction

Predicting the "next basket" in e-commerce is significantly more complex than recommending a single item. Next-Basket Recommendation (NBR) requires predicting a set of items based on a user's history of multiple prior baskets. The challenge lies in balancing two distinct signals: repeat purchase patterns (staples like milk or bread) and collaborative patterns (what similar shoppers are buying). This paper reproduces the TIFU-KNN model, which integrates Personalized Item Frequency (PIF) with hierarchical temporal decay to address these challenges.

Methodology

The study evaluates three primary modeling approaches:

  • TopPersonal (Baseline): A frequency-based model that predicts items a user has bought most often. It is a strong baseline due to the repetitive nature of consumer habits.
  • TIFU-KNN (Target): This model utilizes PIF with hierarchical time-decay (group and within-group decay). It blends a user's decayed history with the average history of their $k$-nearest neighbors using a fusion weight ($\alpha$).
  • $\beta$-VAE (Extension): A Variational Autoencoder that compresses sparse purchase histories into dense 128-dimensional latent representations, followed by a Multi-layer Perceptron (MLP) predictor to guess the next basket.

Datasets and Experimental Setup

The experiments were conducted across six datasets. The original grocery-focused datasets (Instacart, TaFeng, Dunnhumby, ValuedShopper) feature large average basket sizes. Two additional datasets (Tmall, Taobao) were included to test generalizability; these have significantly smaller average basket sizes and higher item counts, representing a noisier environment.

Table 1: Statistical characteristics of the datasets, highlighting differences in basket size and item variety.

Results and Discussion

The reproduction confirmed the original findings: TIFU-KNN consistently outperforms the TopPersonal baseline across multiple metrics, including Recall and NDCG.

Table 2: Performance metrics (Recall and NDCG) for TopPersonal and TIFU-KNN across all six datasets.

Key Insights

  • Temporal Dynamics: The success of TIFU-KNN confirms that temporal decay is essential. Modeling the "drift" in user preferences over time allows the model to edge out static baselines.
  • The Small Basket Challenge: Performance dropped significantly on the Tmall and Taobao datasets. With average basket sizes as low as 2.88 items, there is less signal for the algorithm to latch onto, suggesting current NBR models are optimized for "grocery-style" shopping.
  • Novelty vs. Accuracy: While TIFU-KNN excels at predicting repeat purchases, the $\beta$-VAE extension demonstrated that deep latent models are better at "novelty"—predicting items the user has never purchased—even if their overall hit rate is lower.

Conclusion

While TIFU-KNN remains a robust solution for NBR, particularly in grocery contexts, its reliance on historical frequency limits its ability to recommend new items. Future work should focus on architectures capable of handling tens of thousands of unique items and addressing the "cold start" problem. Additionally, integrating fairness metrics into the training objective is necessary to ensure equitable recommendation quality across different user demographics, as current models perform poorly for niche shoppers with small baskets.

Summary updated

BibTeX
@misc{garcarz2024re,
  author = {Slawomir Garcarz and Avik Pal and Pim Praat},
  title = {{[RE] Modeling Personalized Item Frequency Information for Next-basket Recommendation}},
  year = {2024},
  eprint = {2402.17925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.17925},
}
Figure