Skip to main content
QUICK REVIEW

[Paper Review] Enhancing Sequential Recommendation with Graph Contrastive Learning

Yixin Zhang, Yong Liu|arXiv (Cornell University)|May 30, 2022
Recommender Systems and TechniquesComputer Science5 citations
TL;DR

This paper proposes GCL4SR, a graph contrastive learning framework that enhances sequential recommendation by constructing a Weighted Item Transition Graph (WITG) from all user sequences to capture global item transition patterns. By augmenting interaction sequences with subgraphs from WITG and applying contrastive learning with two auxiliary objectives—representation consistency and global-local alignment—GCL4SR significantly improves sequence representation learning, achieving state-of-the-art performance on real-world datasets.

ABSTRACT

The sequential recommendation systems capture users' dynamic behavior patterns to predict their next interaction behaviors. Most existing sequential recommendation methods only exploit the local context information of an individual interaction sequence and learn model parameters solely based on the item prediction loss. Thus, they usually fail to learn appropriate sequence representations. This paper proposes a novel recommendation framework, namely Graph Contrastive Learning for Sequential Recommendation (GCL4SR). Specifically, GCL4SR employs a Weighted Item Transition Graph (WITG), built based on interaction sequences of all users, to provide global context information for each interaction and weaken the noise information in the sequence data. Moreover, GCL4SR uses subgraphs of WITG to augment the representation of each interaction sequence. Two auxiliary learning objectives have also been proposed to maximize the consistency between augmented representations induced by the same interaction sequence on WITG, and minimize the difference between the representations augmented by the global context on WITG and the local representation of the original sequence. Extensive experiments on real-world datasets demonstrate that GCL4SR consistently outperforms state-of-the-art sequential recommendation methods.

Motivation & Objective

  • Address the limitation of existing sequential recommendation models that rely only on local context within individual user sequences.
  • Mitigate data sparsity and noise in user interaction sequences by leveraging global item transition patterns across all users.
  • Improve sequence representation learning by incorporating global context through graph-based data augmentation.
  • Develop a self-supervised learning framework that enhances model generalization and robustness without requiring additional labeled data.

Proposed method

  • Construct a Weighted Item Transition Graph (WITG) based on co-occurrence frequencies of item transitions across all user interaction sequences, encoding global transition patterns.
  • Perform neighborhood sampling on the WITG to generate multiple augmented subgraph views for each user interaction sequence.
  • Apply graph contrastive learning to maximize the consistency between the representations of the same sequence under different augmented views.
  • Introduce a Maximum Mean Discrepancy (MMD) loss to align the global context-aware representations from WITG with the local representations from the original sequence.
  • Train the model end-to-end using a combination of the standard item prediction loss and the two auxiliary contrastive objectives.
  • Integrate the proposed graph-augmented representation learning module with various backbone models (e.g., SASRec, GRU4Rec, HGN) to validate its generalization.

Experimental results

Research questions

  • RQ1Can incorporating global item transition patterns from a shared WITG improve the quality of sequence representations in sequential recommendation?
  • RQ2How effective is graph contrastive learning in aligning augmented views of the same user sequence to enhance representation robustness?
  • RQ3To what extent does the MMD-based alignment between global and local representations improve recommendation performance?
  • RQ4Does the proposed framework generalize across different backbone architectures in sequential recommendation?

Key findings

  • GCL4SR achieves state-of-the-art performance on both the Poetry and Phones datasets, outperforming existing SOTA methods including SASRec, GRU4Rec, and HGN.
  • The ablation study confirms that both the graph contrastive learning loss and the MMD loss are essential, as removing either leads to a significant drop in performance (e.g., HR@20 drops from 0.2428 to 0.2433 without the graph contrastive loss).
  • The WITG component, which encodes transition frequencies, is critical—removing it reduces performance substantially (HR@20 drops to 0.2138 on Poetry).
  • The model is robust across different backbone encoders: GCL4SR-SAS, GCL4SR-GRU, and GCL4SR-HGN all outperform their respective base models.
  • Hyperparameter analysis shows optimal performance at sampling depth M=4 (Poetry) and M=3 (Phones), with embedding dimension d=64 (Poetry) and d=96 (Phones).
  • Larger sampling size N improves performance, indicating that richer augmentation leads to better representation learning.

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.