Introduction
Sequential recommendation (SR) systems aim to predict a user's future behavior by analyzing their historical interaction sequences. While traditional models have evolved from simple Markov chains to complex Recurrent Neural Networks (RNNs) and Transformers, they often struggle with two fundamental challenges: the lack of collaborative context and the presence of short-term noise.
Most SR models focus on individual user sequences in isolation, failing to capture "periodical collaborative relationships"—patterns where groups of users exhibit similar behaviors within specific temporal windows. Furthermore, real-world interaction data is frequently contaminated by noise, such as accidental clicks or temporary interests (e.g., purchasing a one-off gift), which do not reflect a user's long-term preferences. Standard models often overfit to this noise, leading to suboptimal recommendations. To address these issues, we present SelfGNN, a framework that integrates high-order relational modeling via Graph Neural Networks (GNNs) with a personalized self-supervised learning (SSL) strategy for robust denoising.
Methodology
SelfGNN employs a three-pronged architecture designed to capture both local temporal dynamics and global collaborative signals while filtering out irrelevant interactions.
1. Short-term Collaborative Graph Encoding
Rather than constructing a single, static global graph, SelfGNN partitions interaction data into multiple time-based snapshots. For each snapshot, the model applies a simplified Graph Convolutional Network (GCN), inspired by LightGCN, to capture the relationships between users and items within that specific interval. This allows the model to identify "peers" who share similar interests during the same time period.
2. Multi-level Long-term Modeling
To capture the evolution of user preferences, SelfGNN processes history at two distinct granularities:
- Interval-level: The model uses a Gated Recurrent Unit (GRU) combined with Self-Attention to track how the embeddings generated from the short-term snapshots evolve over time.
- Instance-level: A standard self-attention mechanism (similar to SASRec) is applied to the raw item-by-item sequence to maintain a high-resolution view of the user's history.
3. Personalized Denoising Self-Augmentation
The core innovation of SelfGNN is its self-supervised task that aligns the "short-term view" (from snapshots) with the "long-term view" (aggregated history). Crucially, the model learns personalized stability weights for each user. For users with highly consistent interests, the model aggressively treats short-term deviations as noise. Conversely, for "exploratory" users with diverse tastes, the model is more lenient, allowing for more variance in the short-term signal. Theoretical analysis indicates that the SSL loss function generates adaptive gradients that specifically weaken the influence of interactions contradicting a user's established profile.
Experimental Setup
The performance of SelfGNN was evaluated on four diverse, real-world benchmark datasets:
- Amazon-book: Product ratings from 2014.
- Gowalla: Location-based social network check-ins.
- Movielens: Movie ratings spanning 2002–2009.
- Yelp: Venue reviews from 2009–2019.
All datasets were pre-processed using a "5-core" setting, ensuring every user and item had at least five interactions to maintain data quality.
Key Results and Discussion
SelfGNN consistently outperformed state-of-the-art baselines, including SURGE, TGSRec, and CLSR, across all tested metrics.
Accuracy and Sparsity
On the Amazon-book dataset, SelfGNN achieved a Hit Rate (HR)@10 of 0.391, representing a significant improvement over the best-performing baseline, SURGE (0.362). The model also demonstrated superior stability for "cold-start" users—those with very few interactions. This suggests that the collaborative signals extracted from short-term graphs effectively compensate for the lack of individual sequence data.
Robustness to Noise
In noise-injection experiments where 20% of real interactions were replaced with random "fake" items, SelfGNN's performance remained remarkably stable. On the Movielens dataset, it maintained nearly 80% of its original accuracy, whereas models like SASRec and SURGE showed much steeper declines. This confirms the effectiveness of the personalized denoising mechanism in distinguishing between genuine interest shifts and random noise.
Conclusion
SelfGNN advances sequential recommendation by recognizing that collaborative signals are temporal and that noise is relative to individual user stability. By slicing the interaction graph into intervals and employing a personalized SSL denoising strategy, the framework provides more accurate and robust recommendations.
Future work will explore adaptive dynamic partitioning to replace fixed-length time intervals, allowing the model to adjust its temporal windows based on interaction density or specific user triggers. While the current multi-snapshot approach increases memory overhead, its gains in accuracy and robustness offer a compelling trade-off for high-stakes recommendation environments.
Summary updated