Sequential recommendation systems typically focus on the order of user interactions, often ignoring the temporal spacing between them. This paper, presented at AAAI-23, argues that the time interval between items is a critical, yet overlooked, signal of user preference stability. We introduce TiCoSeRec, a framework that leverages time-aware data augmentation to transform irregular user histories into more uniform sequences, significantly improving recommendation performance.
The Challenge of Preference Drift
Most existing sequential recommendation models, such as SASRec or BERT4Rec, treat user histories as simple ordered lists. However, human behavior is rarely that tidy. A user might purchase two skincare products three days apart, indicating stable intent, or six months apart, suggesting a shift in needs—a phenomenon known as preference drift.
When interaction intervals are highly variable, standard models struggle to learn coherent transition patterns. The authors demonstrate that recommendation performance is intrinsically linked to the "uniformity" of interaction sequences. Sequences with consistent time intervals are more predictable and easier for models to learn from.
TiCoSeRec: Time-Aware Data Augmentation
To address the noise and drift in non-uniform sequences, the authors propose TiCoSeRec (Time Interval Aware Contrastive Sequential Recommendation). The core innovation lies in five specialized data augmentation operators designed to reduce the variance of time intervals within a sequence:
- Ti-Insert: Bridges large time gaps by inserting contextually relevant items, preventing the model from "forgetting" preferences during long periods of inactivity.
- Ti-Crop: Selects the continuous sub-sequence with the lowest time-interval variance rather than cropping randomly.
- Ti-Mask: Removes items occurring at very small intervals, which often represent redundant noise or "bursty" interactions.
- Ti-Substitute: Replaces items in short-interval clusters with similar items to maintain patterns while introducing variety.
- Ti-Reorder: Shuffles items within uniform sub-sequences to help the model learn position-agnostic features.
These operators are applied strategically based on sequence length and integrated into a contrastive learning objective. This ensures that the augmented, more uniform version of a sequence remains semantically aligned with the original history in the latent space.
Experimental Evaluation
TiCoSeRec was evaluated on four public datasets: Amazon Beauty, Sports, Home, and Yelp. The results show consistent and significant improvements over nine state-of-the-art baselines, including SASRec and CoSeRec.
- Significant Gains: The model showed relative improvements in NDCG@10 and Hit@10 ranging from 5% to 18%.
- Ablation Success: Removing the time-aware logic and reverting to traditional random augmentation led to a noticeable drop in accuracy, confirming that temporal distribution is a key factor in model robustness.
- The 20% Rule: Sensitivity analysis revealed that treating the top 20% most uniform sequences as "anchors" and augmenting the remaining 80% yields the best results.
Conclusion and Future Work
By shifting the focus from simple item ordering to the temporal rhythm of user behavior, TiCoSeRec provides a more robust foundation for sequential recommendation. While the current framework focuses on relative intervals, future work may integrate item category information and absolute time (e.g., seasonality) to further refine preference drift detection.
Summary updated