A Systematical Evaluation for Next-Basket Recommendation Algorithms

Zhufeng Shao, Shoujin Wang, Qian Zhang, Wenpeng Lu, Zhao Li, Xueping Peng

Abstract

Next-Basket Recommendation (NBR) is a pivotal task in e-commerce, focusing on predicting the next set of items a user will purchase based on their historical transaction sequences. Despite its importance, the field has historically lacked a unified evaluation framework, leading to inconsistent results across disparate datasets and metrics. This paper presents a systematic benchmark of NBR algorithms, categorizing existing approaches into a clear taxonomy and evaluating them under identical conditions. Our findings reveal a "simplicity paradox": conventional, frequency-based models often outperform complex deep learning architectures on large-scale datasets, highlighting the critical role of repeat purchase patterns in consumer behavior.

Introduction

In the e-commerce domain, recommendation systems typically focus on the "next item" a user might interact with. However, many real-world shopping scenarios—particularly in grocery and retail—revolve around "baskets," or sets of items purchased simultaneously. Next-Basket Recommendation (NBR) addresses this by modeling the sequential dependencies between these baskets.

Until now, the NBR research landscape has resembled a "Wild West." Researchers frequently utilize different datasets, varying pre-processing pipelines, and inconsistent evaluation metrics, making it nearly impossible to determine which "state-of-the-art" models truly advance the field. This study establishes a rigorous, head-to-head comparison to provide a definitive baseline for NBR performance.

Taxonomy of NBR Algorithms

To provide a structured evaluation, we categorize NBR algorithms into three primary families:

  1. Conventional NBR: These models rely on pattern mining, K-Nearest Neighbor (KNN), or Markov Chain (MC) techniques. They are generally computationally efficient and prioritize historical frequency and recency.
  2. Latent Representation Models: These approaches utilize distributed embeddings to map users and baskets into a continuous vector space, capturing semantic relationships between items.
  3. Deep Neural Networks: The most complex category, these models leverage Recurrent Neural Networks (RNNs), Attention mechanisms, and Contrastive Learning to model high-order temporal dependencies and complex user-item interactions.

Our evaluation includes eight representative algorithms: TOP, FPMC, DREAM, Beacon, Sets2Sets, UP-CF@r, TIFUKNN, and CLEA.

Experimental Framework

To ensure a fair comparison, we applied a unified pre-processing pipeline—including standardized filtering for infrequent items and inactive users—across three widely recognized datasets:

  • Instacart: A massive dataset containing over 3 million online grocery orders.
  • Dunnhumby: Longitudinal records from 2,500 households over two years of retail shopping.
  • TaFeng: A dataset from a Chinese grocery store covering four months of transactions.

Performance was measured using seven distinct metrics, including Recall, Precision, and Normalized Discounted Cumulative Gain (NDCG), to provide a multi-dimensional view of model efficacy.

Results and Discussion

The Simplicity Paradox

The most significant finding of this benchmark is that sophisticated deep learning models do not always equate to superior performance. On the Instacart and Dunnhumby datasets, conventional models like TIFUKNN (a KNN-based approach) and UP-CF@r (which emphasizes recency and popularity) consistently outperformed deep learning architectures. For instance, on Instacart (K=10), TIFUKNN achieved an NDCG of 0.3805, vastly outperforming the RNN-based DREAM model, which scored 0.0874.

The Power of Frequency and Repeat Purchases

The success of simple models suggests that "repeat consumption" is the dominant signal in NBR. Many users tend to re-purchase the same items or popular staples. The TOP model—a non-personalized baseline that recommends the most popular items—frequently outperformed complex models like FPMC, indicating that many advanced architectures fail to capture basic shopping signals.

Dataset Sensitivity

Deep learning models showed strength in specific contexts. On the TaFeng dataset, which features shorter average basket sizes and sparser history, the deep learning model CLEA took the lead with an NDCG of 0.1472 (K=10). This suggests that neural architectures are better suited for discovering new items or "cold-start" scenarios where historical repeat patterns are less reliable.

Conclusion

This systematic evaluation clarifies the current state of NBR research. While deep learning offers potential for discovering complex patterns in sparse data, conventional frequency-based and KNN-based models remain the most effective for datasets characterized by strong repeat purchase behavior. Future research should focus on addressing data sparsity and modeling underlying user intent—moving beyond what was bought to why it was bought. Hybrid models that combine the reliability of frequency-based methods with the feature-extraction capabilities of neural networks represent the most promising path forward for the field.

Summary updated

BibTeX
@inproceedings{shao2022systematical,
  author = {Zhufeng Shao and Shoujin Wang and Qian Zhang and Wenpeng Lu and Zhao Li and Xueping Peng},
  title = {{A Systematical Evaluation for Next-Basket Recommendation Algorithms}},
  booktitle = {DSAA},
  year = {2022},
  url = {https://openreview.net/forum?id=gcL0FHyWwT},
}
Figure