[Paper Review] Continuous-Time Sequential Recommendation with Temporal Graph Collaborative Transformer
This paper proposes TGSRec, a continuous-time sequential recommendation framework that unifies sequential patterns and temporal collaborative signals using a Temporal Graph Sequential Recommender with a novel Temporal Collaborative Transformer (TCT) layer. The TCT layer jointly models item transitions and user-item interaction dynamics via time-aware self-attention, achieving up to 22.5% and 22.1% absolute gains in Recall@10 and MRR on five real-world datasets.
In order to model the evolution of user preference, we should learn user/item embeddings based on time-ordered item purchasing sequences, which is defined as Sequential Recommendation (SR) problem. Existing methods leverage sequential patterns to model item transitions. However, most of them ignore crucial temporal collaborative signals, which are latent in evolving user-item interactions and coexist with sequential patterns. Therefore, we propose to unify sequential patterns and temporal collaborative signals to improve the quality of recommendation, which is rather challenging. Firstly, it is hard to simultaneously encode sequential patterns and collaborative signals. Secondly, it is non-trivial to express the temporal effects of collaborative signals. Hence, we design a new framework Temporal Graph Sequential Recommender (TGSRec) upon our defined continuous-time bi-partite graph. We propose a novel Temporal Collaborative Trans-former (TCT) layer in TGSRec, which advances the self-attention mechanism by adopting a novel collaborative attention. TCT layer can simultaneously capture collaborative signals from both users and items, as well as considering temporal dynamics inside sequential patterns. We propagate the information learned fromTCTlayerover the temporal graph to unify sequential patterns and temporal collaborative signals. Empirical results on five datasets show that TGSRec significantly outperforms other baselines, in average up to 22.5% and 22.1%absolute improvements in Recall@10and MRR, respectively.
Motivation & Objective
- Address the limitation of existing sequential recommendation models that ignore temporal collaborative signals latent in evolving user-item interactions.
- Overcome the challenge of jointly encoding sequential patterns and collaborative signals in a unified framework.
- Model the dynamic temporal effects of collaborative signals across users and items in continuous time.
- Improve recommendation accuracy by integrating both item transition patterns and user-item similarity dynamics over time.
- Develop a scalable, differentiable framework that supports continuous-time modeling of user preferences and item interactions.
Proposed method
- Define a continuous-time bipartite graph (CTBG) to represent user-item interactions with continuous timestamps on edges.
- Introduce a temporal kernel to map continuous timestamps into time vectors for edge representation.
- Propose the Temporal Collaborative Transformer (TCT) layer that computes attention over neighbors using both node embeddings and time vectors.
- Enable the TCT layer to aggregate information from both sequential transitions and collaborative signals via a collaborative attention mechanism.
- Propagate embeddings through the temporal graph to unify sequential and collaborative signals while preserving temporal dynamics.
- Optimize the model using BPR loss for ranking, which better aligns with sequential recommendation objectives than BCE loss.
Experimental results
Research questions
- RQ1Can a unified framework effectively model both sequential patterns and temporal collaborative signals in continuous-time sequential recommendation?
- RQ2How does the integration of temporal collaborative signals improve recommendation performance compared to models relying only on sequential patterns?
- RQ3To what extent do time-aware attention mechanisms enhance the modeling of user preference dynamics?
- RQ4How do the proposed components—especially the TCT layer and temporal graph propagation—contribute to performance gains?
- RQ5What is the impact of continuous-time modeling versus discrete-time or timestamp-agnostic approaches on recommendation quality?
Key findings
- TGSRec achieves up to 22.5% absolute improvement in Recall@10 and 22.1% in MRR over strong baselines across five real-world datasets.
- The ablation study confirms that removing time vectors from user or item embeddings significantly degrades performance, validating the importance of temporal inference.
- Visualization of temporal attention weights shows dynamic, time-dependent attention patterns, confirming the model's ability to capture continuous-time dynamics.
- Only TGSRec successfully recommends the ground truth item (Killing Joke) in the top-4 predictions at the correct time window, while SASRec and TiSASRec fail to do so.
- The model outperforms BPR-optimized baselines, indicating that the proposed loss and architecture jointly enhance ranking performance.
- Performance is most sensitive to user time vectors, suggesting that user preference evolution is more dynamic than item dynamics, which aligns with the model's design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.