Abstract
Session-based recommendation (SBR) faces significant challenges due to data sparsity and the "cold start" nature of anonymous user sessions. While current state-of-the-art models leverage complex contrastive learning frameworks, they often suffer from heavy architectures and difficult training procedures. This paper introduces SPGL (Single Positive Graph Learning), a streamlined model that simplifies contrastive learning by treating each item as its own unique positive sample. By combining a multi-hop global item graph with an intent extractor that accounts for reverse temporal order, SPGL achieves state-of-the-art performance across major benchmarks while maintaining a significantly simpler architecture than its predecessors.
Introduction
In the e-commerce landscape, SBR is critical for predicting user behavior based on short, anonymous click sequences. Traditional systems relying on long-term history fail in these scenarios. To combat data sparsity, modern models employ Contrastive Learning (CL). However, these CL-based models typically require complex data augmentation (e.g., cropping or masking) and dual-branch architectures that are computationally expensive and hard to generalize. SPGL addresses these issues by finding a more efficient way to capture spatial item relationships and temporal user intent without the overhead of traditional CL.
Methodology
The SPGL framework is built upon three primary innovations designed to capture both global item transitions and local session intent.
1. 3-Hop Directed Global Graph
Unlike models that only consider immediate item successions, SPGL constructs a global graph connecting items within a three-step range. A decaying weight system is applied: connections between items appearing closer together in a session are weighted more heavily. This multi-hop approach allows the model to capture broader spatial associations across the entire dataset.
2. Intent Extractor with Reverse Positioning
To decode user intent, SPGL utilizes Graph Convolutional Networks (GCNs) and self-attention mechanisms. A key feature is the integration of reverse positional information. By indexing items backward from the most recent click, the model emphasizes the "recency effect," which is typically more indicative of the next action than the session's beginning.
3. Single Positive Optimization Loss ($L_{spl}$)
The core innovation of SPGL is the Single Positive Optimization Loss. Traditional CL compares an augmented "positive" view against multiple negatives. SPGL simplifies this by treating the item representation itself as the positive sample and all other items in the batch as negatives. This objective promotes uniformity in the feature space, preventing item representations from collapsing into a single cluster and ensuring they remain discriminative.
Experiments and Results
SPGL was evaluated on three industry-standard benchmarks: Tmall, RetailRocket, and Diginetica. Preprocessing followed standard protocols, removing sessions with only one item and items with fewer than five interactions.
Performance
SPGL consistently outperformed or matched top-tier baselines, including SR-GNN, GCE-GNN, and COTREC, across P@20 and MRR@20 metrics.
- Tmall: SPGL achieved its most significant gains here, with a P@20 of 39.64%, outperforming SPARE (39.28%) and COTREC (36.35%).
- Ablation Study: Removing the Single Positive Loss ($L_{spl}$) resulted in the most substantial performance drop, validating it as the model's most critical component.
Key Insights
- Uniformity vs. Alignment: While standard Cross-Entropy loss ensures alignment (grouping similar items), $L_{spl}$ ensures uniformity (spreading items across the feature space). Their synergy is vital for high performance.
- Optimal Hop Range: Empirical results suggest that a 3-hop range is optimal for the global graph; fewer hops miss patterns, while more hops introduce noise.
Conclusion
SPGL demonstrates that a "self-contrastive" approach can be more effective and efficient than complex multi-branch models. By eliminating the need for data augmentation and focusing on uniformity through Single Positive Optimization, SPGL provides a robust and transferable solution for session-based recommendation. Future work will focus on automated hyperparameter tuning to address sensitivity to the loss weight parameter ($\beta$) and improving performance on noisy, short sessions.
Summary updated