Skip to main content
QUICK REVIEW

[Paper Review] Pre-training of Context-aware Item Representation for Next Basket Recommendation

Jingxuan Yang, Jun Xu|arXiv (Cornell University)|Apr 14, 2019
Recommender Systems and TechniquesComputer Science11 references9 citations
TL;DR

This paper proposes IERT, a context-aware item representation model for next basket recommendation inspired by BERT. It pre-trains deep, dynamic item embeddings using transaction sequences and fine-tunes them online, achieving state-of-the-art performance with a 21.3% F1-score@5 and 34.0% NDCG@5 on the Ta-Feng dataset, significantly outperforming prior methods by modeling item representations that adapt to transaction context.

ABSTRACT

Next basket recommendation, which aims to predict the next a few items that a user most probably purchases given his historical transactions, plays a vital role in market basket analysis. From the viewpoint of item, an item could be purchased by different users together with different items, for different reasons. Therefore, an ideal recommender system should represent an item considering its transaction contexts. Existing state-of-the-art deep learning methods usually adopt the static item representations, which are invariant among all of the transactions and thus cannot achieve the full potentials of deep learning. Inspired by the pre-trained representations of BERT in natural language processing, we propose to conduct context-aware item representation for next basket recommendation, called Item Encoder Representations from Transformers (IERT). In the offline phase, IERT pre-trains deep item representations conditioning on their transaction contexts. In the online recommendation phase, the pre-trained model is further fine-tuned with an additional output layer. The output contextualized item embeddings are used to capture users' sequential behaviors and general tastes to conduct recommendation. Experimental results on the Ta-Feng data set show that IERT outperforms the state-of-the-art baseline methods, which demonstrated the effectiveness of IERT in next basket representation.

Motivation & Objective

  • To address the limitation of static item representations in deep learning-based next basket recommendation systems.
  • To model item representations that adapt to transaction context, reflecting user intent and sequential behavior.
  • To adapt the BERT pre-training and fine-tuning paradigm from NLP to collaborative filtering and recommendation tasks.
  • To improve recommendation accuracy by capturing both user general tastes and sequential transaction patterns through contextualized item embeddings.
  • To demonstrate the effectiveness of transfer learning via pre-training on raw transaction sequences for item representation learning.

Proposed method

  • IERT uses a two-stage training process: offline pre-training on historical transaction sequences followed by online fine-tuning with a task-specific output layer.
  • The model employs a transformer encoder to learn context-aware item representations by attending to surrounding items in a transaction sequence.
  • Input representations are constructed by summing token embeddings (item IDs), segment embeddings (to distinguish user sessions), and position embeddings (to encode order).
  • During pre-training, the model is trained via masked item prediction, where random items in a sequence are masked and the model predicts them based on context.
  • During fine-tuning, the pre-trained model is further optimized with a final output layer to predict the next basket, using the contextualized item embeddings to model user behavior.
  • The model leverages the BERT-style bidirectional attention mechanism to capture long-range dependencies and contextual relationships among items in a basket.

Experimental results

Research questions

  • RQ1Can pre-training contextualized item representations improve next basket recommendation performance compared to static item embeddings?
  • RQ2How effective is a BERT-inspired architecture in learning dynamic, context-sensitive item representations from sequential transaction data?
  • RQ3Does separating pre-training and fine-tuning stages enhance model generalization and recommendation accuracy?
  • RQ4To what extent do context-aware item representations capture both user general taste and sequential purchase behavior?
  • RQ5How does the model perform relative to state-of-the-art methods in terms of F1-score and NDCG on real-world transaction data?

Key findings

  • IERT achieved a F1-score@5 of 21.3%, significantly outperforming the next best baseline ANAM (14.6%).
  • IERT achieved an NDCG@5 of 34.0%, a 78.9% improvement over ANAM (19.0%).
  • The ablation study showed that removing the pre-training stage (IERT w/o pre-training) reduced performance to 15.0% F1-score@5, confirming the value of pre-training.
  • The model demonstrated that context-aware item representations are more effective than static embeddings in capturing user intent and sequential patterns.
  • The results indicate that transfer learning via pre-training on transaction sequences enhances both representation quality and downstream recommendation accuracy.
  • IERT outperformed all state-of-the-art methods, including FPMC, HRM, DREAM, and ANAM, across both F1-score and NDCG metrics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.