Skip to main content
QUICK REVIEW

[Paper Review] Modeling Dynamic Attributes for Next Basket Recommendation

Yongjun Chen, Jia Li|arXiv (Cornell University)|Sep 23, 2021
Recommender Systems and TechniquesComputer Science29 references9 citations
TL;DR

This paper proposes AnDa, a novel attentive network that models dynamic attributes—such as changing user income or item prices—alongside sequential basket interactions to improve next basket recommendation. By using a time-aware, periodic-aware encoder for dynamic attributes and an intra-basket attention module to capture item relationships, AnDa significantly outperforms state-of-the-art methods across three real-world datasets, achieving up to 21.87% higher Hit Rate and 43.76% higher NDCG.

ABSTRACT

Traditional approaches to next item and next basket recommendation typically extract users' interests based on their past interactions and associated static contextual information (e.g. a user id or item category). However, extracted interests can be inaccurate and become obsolete. Dynamic attributes, such as user income changes, item price changes (etc.), change over time. Such dynamics can intrinsically reflect the evolution of users' interests. We argue that modeling such dynamic attributes can boost recommendation performance. However, properly integrating them into user interest models is challenging since attribute dynamics can be diverse such as time-interval aware, periodic patterns (etc.), and they represent users' behaviors from different perspectives, which can happen asynchronously with interactions. Besides dynamic attributes, items in each basket contain complex interdependencies which might be beneficial but nontrivial to effectively capture. To address these challenges, we propose a novel Attentive network to model Dynamic attributes (named AnDa). AnDa separately encodes dynamic attributes and basket item sequences. We design a periodic aware encoder to allow the model to capture various temporal patterns from dynamic attributes. To effectively learn useful item relationships, intra-basket attention module is proposed. Experimental results on three real-world datasets demonstrate that our method consistently outperforms the state-of-the-art.

Motivation & Objective

  • To address the limitation of static user and item attributes in capturing evolving user interests over time.
  • To model diverse temporal patterns—such as time-interval effects and periodic behaviors—in dynamic attributes like income or membership type.
  • To effectively learn complex item interdependencies within baskets, beyond simple co-occurrence or global attention.
  • To integrate dynamic attributes and basket interactions in a unified, stable, and expressive framework for next basket recommendation.
  • To demonstrate that modeling dynamic attributes leads to consistent performance gains over static attribute-based baselines.

Proposed method

  • AnDa employs a dual-encoder architecture: one for dynamic attributes and one for basket item sequences, enabling separate but coordinated learning.
  • A time-aware padding and periodic index embedding module encodes dynamic attributes to capture both interval-based and periodic temporal patterns.
  • An intra-basket multi-head self-attention module is applied per basket to model item-level relationships across different subsets of items.
  • The model uses multi-head self-attention at the time level to dynamically weigh historical baskets based on relevance and recency.
  • Dynamic attribute representations are fused with item sequence representations through cross-attention mechanisms to enable context-aware user interest modeling.
  • The architecture is trained end-to-end using a sequence prediction objective, optimizing for top-k recommendation performance (HR, NDCG, MAP).

Experimental results

Research questions

  • RQ1Can modeling dynamic attributes such as income or membership type improve next basket recommendation performance compared to static attributes?
  • RQ2How do different temporal patterns—like time intervals and periodicity—in dynamic attributes affect user purchase behavior prediction?
  • RQ3To what extent can intra-basket attention capture complex item relationships (e.g., co-purchases, functional groups) that influence future basket composition?
  • RQ4How does the integration of dynamic attributes and item-level attention compare to models relying only on static attributes or global item co-occurrence?
  • RQ5What is the contribution of each component (periodic encoder, intra-basket module, time-level attention) to the overall recommendation performance?

Key findings

  • AnDa achieves a 21.87% relative improvement in Hit Rate@5 on the EPR dataset compared to the strongest baseline (FDSA+), with gains of 15.06% on Ta-Feng and 24.53% on SPR.
  • The model improves NDCG@5 by up to 43.76% over baselines, with the highest gain observed on the SPR dataset (43.76% over FDSA+).
  • The MAP score increases by 24.53% on the SPR dataset and 21.87% on EPR, demonstrating consistent improvement across evaluation metrics.
  • Ablation studies show that removing the periodic index embedding (AnDa(P)) reduces performance by 1.42% in average score, confirming its value in capturing seasonal patterns.
  • The intra-basket attention module contributes significantly: removing it (AnDa(B-)) leads to a 1.89% drop in average score, indicating effective modeling of item relationships.
  • Attention visualization confirms that the model learns meaningful attention patterns: different heads attend to distinct item pairs (e.g., fruits vs. electronics), and time-level attention shifts focus toward recent items in deeper layers.

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.