Abstract
Session-based recommendation systems (SBRS) are increasingly vital for e-commerce and streaming media. However, data sparsity remains a significant bottleneck. While Contrastive Learning (CL) has been applied to improve embedding learning, existing strategies often suffer from coarse granularity and ineffective self-supervised signals caused by data dropout. We introduce a novel multi-granularity CL framework, DGCL-GNN, which constructs two extra augmented embedding channels: a factor-level channel using Disentangled Representation Learning and an item-level channel using star graph augmentation. By comparing these views with the original view, our model captures subtle differences and ensures effective self-supervision. Experiments on benchmark datasets demonstrate superior performance over state-of-the-art methods.
Introduction
Session-based Recommendation (SBR) aims to predict a user's next interaction based on a sequence of anonymous clicks. The primary challenge in SBR is data sparsity, as many items have limited interaction history. Contrastive Learning (CL) has emerged as a solution by creating augmented views to learn robust representations. However, current CL methods typically operate at a coarse granularity (session or item level) and rely on dropout-based augmentation, which can further thin out already sparse data. DGCL-GNN addresses these limitations by introducing fine-grained factor-level comparisons and additive graph augmentation.
Methodology
The proposed DGCL-GNN framework addresses data sparsity through a dual-channel approach that avoids the pitfalls of traditional data deletion.
Factor-Level Contrastive Learning
To capture fine-grained user preferences, the model employs Disentangled Representation Learning (DRL). This process mathematically splits a single item embedding into $K$ independent latent factor embeddings (e.g., representing latent attributes like style or brand). A factor-level graph is constructed where edge weights reflect similarity within specific latent factors, allowing the model to learn relationships beyond simple co-occurrence.
Item-Level Augmentation via Star Graphs
Instead of removing information via dropout, DGCL-GNN utilizes a Star Graph augmentation. A central "satellite node" is added to the session graph, connecting to all existing items. This hub facilitates information exchange between non-adjacent items, densifying the graph and providing a stronger self-supervised signal without losing sequential context.
Dual-Granularity Objective
The model is optimized using a multi-task loss function consisting of three parts:
- Recommendation Loss: Standard cross-entropy for next-item prediction.
- Contrastive Loss: Aligns the original view embeddings with both factor-level and star-graph views.
- Disentanglement Loss: Ensures latent factors remain independent and do not overlap in information.
Experiments and Results
The model was evaluated on two standard industry benchmarks: Yoochoose 1/64 (approx. 557k interactions) and Diginetica (approx. 982k interactions). DGCL-GNN consistently outperformed state-of-the-art baselines, including GNN-based models like SR-GNN and other CL models like DHCN.
- Precision (P@20): Achieved 0.7469 on Yoochoose and 0.5501 on Diginetica.
- Mean Reciprocal Rank (M@20): Reached 0.3289 on Yoochoose and 0.1911 on Diginetica.
Notably, the model showed significant improvements in short sessions (length < 5), which are traditionally the hardest to predict because they provide the least context. This suggests that the star graph augmentation effectively compensates for limited sequential data.
Conclusion
DGCL-GNN demonstrates that adding global context via star graphs and extracting latent factors via disentanglement significantly improves session-based recommendations. By moving beyond coarse-grained comparisons and data-thinning augmentations, the framework provides a more robust solution for sparse recommendation environments. Future work will explore more sophisticated initialization for satellite nodes and optimize the computational efficiency of the multi-channel architecture.
Summary updated