Learning Dual Dynamic Representations on Time-Sliced User-Item Interaction Graphs for Sequential Recommendation

Zeyuan Chen, Wei Zhang, Junchi Yan, Gang Wang, Jianyong Wang

Introduction

Sequential recommendation systems are designed to predict a user's next interaction by analyzing their historical behavior. While significant progress has been made in tracking how user preferences shift over time, a critical component is often overlooked: the dynamic nature of items. Most existing models treat item embeddings as static, assuming that an item's characteristics and appeal remain constant. However, in real-world scenarios, items evolve in popularity, target audience, and seasonal relevance. This paper introduces the Dynamic Representation Learning model for Sequential Recommendation (DRL-SRe), which explicitly models the evolving representations of both users and items.

The Challenge of Dual Dynamics

In traditional sequential recommendation, the focus is almost exclusively on the user side. For instance, a user's interest might shift from electronics to home decor over several months. Conversely, items also undergo "journeys." A winter coat may see a surge in interest from diverse demographics in late autumn, while a niche indie game might suddenly go viral, attracting a broader audience.

Existing attempts to model these dual dynamics often treat user and item histories as isolated sequences. This approach fails to capture the global context—the complex web of interactions between all users and items at any given time. DRL-SRe addresses this by representing interactions as a series of time-sliced global graphs, allowing the model to learn from macro-level trends while maintaining individual behavioral patterns.

The DRL-SRe Framework

The DRL-SRe architecture integrates three core components to capture dual dynamics effectively: Time-Sliced Graph Neural Networks (GNNs), Gated Recurrent Units (GRUs), and a Temporal Point Process (TPP) auxiliary task.

The DRL-SRe architecture, illustrating the integration of time-sliced GNNs, GRUs for dual representation tracking, and the TPP auxiliary task.

1. Time-Sliced Graph Neural Networks

To handle the continuous stream of interactions, DRL-SRe discretizes the timeline into equal-length slices (e.g., weeks or months). For each slice, a global bipartite graph is constructed where nodes represent users and items, and edges represent interactions within that specific period. A GNN is then applied to each snapshot to extract high-order collaborative filtering signals. This ensures that the representation of a user or item at time $t$ is informed by the global state of the system during that interval.

Illustration of time-sliced interaction graphs evolving from $t_1$ to $t_T$.

2. Dual Recurrent Modeling

The outputs from the GNNs are fed into two separate GRUs: one for users and one for items. The user-side GRU tracks the evolution of a user's preferences across time slices, while the item-side GRU tracks the item's changing characteristics and popularity. This dual-stream approach allows the model to generate dynamic embeddings that reflect the state of both entities at the moment of prediction.

3. Temporal Point Process (TPP) Auxiliary Task

A common drawback of time-slicing is the loss of fine-grained temporal information; interactions within the same slice are treated as simultaneous. To mitigate this, the authors introduce an auxiliary TPP task. This component requires the model to predict the continuous-time gap between consecutive interactions. By optimizing this auxiliary loss, the model is forced to preserve exact timing information within its latent representations, effectively bridging the gap between discrete snapshots and continuous time.

Experimental Evaluation

The authors evaluated DRL-SRe on three diverse datasets: Amazon Baby, Yelp, and Netflix. The model was compared against several baselines, including SASRec (unidirectional sequence modeling) and SCoRe (dual-sequence modeling).

Key Results

  • Superior Performance: DRL-SRe consistently outperformed all baselines across all metrics. It achieved significant improvements in NDCG@10: 3.39% on Baby, 10.22% on Yelp, and 9.62% on Netflix compared to the strongest baseline.
  • Ablation Insights: Removing the GNN component led to a substantial drop in accuracy, confirming that global interaction context is superior to isolated sequences. Similarly, removing the TPP task degraded performance, highlighting the importance of continuous-time awareness.
  • Hyperparameter Sensitivity: The model's performance is sensitive to the number of GNN layers. Optimal results were found with 2 to 3 layers; beyond this, the model suffers from over-smoothing, where node representations become too similar, losing their discriminative power.

Conclusion

DRL-SRe demonstrates that modeling the dynamic evolution of items is just as crucial as modeling user preferences in sequential recommendation. By combining the global perspective of time-sliced GNNs with the temporal precision of TPPs, the model achieves state-of-the-art results. Future research may focus on scaling these global graph methods to even larger, denser datasets or exploring fully continuous-time dynamic GNN architectures.

Summary updated

BibTeX
@inproceedings{chen2021learning,
  author = {Zeyuan Chen and Wei Zhang and Junchi Yan and Gang Wang and Jianyong Wang},
  title = {{Learning Dual Dynamic Representations on Time-Sliced User-Item Interaction Graphs for Sequential Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2021},
  doi = {10.1145/3459637.3482443},
}
Figure