TL;DR
ICSRec (Intent Contrastive Learning with Cross Subsequences) is a new sequential recommendation framework that models latent user intentions by looking at patterns across different users. By grouping subsequences that lead to the same target item and applying a two-tiered (coarse and fine-grained) contrastive learning approach, it achieves significant performance boosts—up to 44% in ranking metrics—without the noise typically introduced by random data augmentation.
What Problem Does This Paper Address?
Sequential Recommendation (SR) aims to predict a user's next interaction based on their chronological history. While effective, these models often miss the "why" behind a purchase—the latent intention (e.g., buying a watch for decoration vs. buying one for sports).
Existing methods to capture intent usually fall into two traps:
- Reliance on Auxiliary Info: They use labels like item categories or action types, which are often sparse, noisy, or simply unavailable.
- Stochastic Data Augmentation: They use techniques like cropping or masking sequences to create "views" for contrastive learning. However, randomly dropping items can fundamentally change the underlying intent of a sequence, introducing harmful noise.
The authors argue that intent is better captured by looking at cross-subsequence patterns: if two different users eventually buy the same "target item," their preceding behavior subsequences likely share a similar underlying intent.
Methods
ICSRec introduces a multi-task learning framework consisting of three main components:
- Supervisory Signal Construction: Instead of treating a user's history as one long string, the model uses a dynamic sliding window to break sequences into multiple subsequences. It then groups subsequences from different users that share the same "target item" (the next item in the sequence).
- Coarse-grain Intent Contrastive Learning (CICL): The model assumes that subsequences sharing a target item share a coarse intention. It uses a contrastive loss to pull the representations of these "positive pairs" closer together in the latent space. To prevent errors, they implement a False Negative Mask (FNM) to ensure they don't accidentally treat subsequences with the same intent as negatives.
- Fine-grain Intent Contrastive Learning (FICL): Recognizing that the same item can be bought for different reasons (e.g., a tie as a gift vs. for a wedding), the model performs K-means clustering on all intent representations to discover "intent prototypes." It then encourages each subsequence representation to move closer to its assigned fine-grained prototype.
- The Backbone: The model uses SASRec (a Transformer-based architecture) as the underlying encoder, ensuring it benefits from state-of-the-art self-attention mechanisms.
Datasets
The authors evaluated ICSRec on four widely used real-world datasets:
- Amazon Sports, Beauty, and Toys: Three subsets of Amazon reviews characterized by relatively short sequences and high sparsity.
- MovieLens-1M (ML-1M): A dense dataset containing 1 million movie ratings with much longer user sequences.
Key Insights and Ideas
- Intent is Universal, Not Just Individual: Most SR models look at a single user's history to find patterns. ICSRec realizes that "intent" is a shared concept across the entire dataset. By looking at what different users did before buying the same item, the model finds more robust signals than it could by looking at one user in isolation.
- Target Items as "Anchor" Labels: In the absence of explicit category labels, the "next item" serves as a proxy for the goal of the preceding subsequence.
- Avoiding the "Augmentation Trap": By using actual historical subsequences as positive pairs for contrastive learning rather than synthetically altered ones, the model avoids the "semantic shift" problem where dropping a key item changes the meaning of the sequence.
Key Results
- State-of-the-Art Performance: ICSRec consistently outperformed 13 baseline models (including popular ones like DuoRec, ICLRec, and CoSeRec).
- Significant Gains: On the sparse Amazon datasets, ICSRec improved NDCG@5 by 23.69% to 44.39% over the best-performing baselines.
- Robustness to Noise: In experiments where random "noise" items were added to user histories, ICSRec maintained its performance much better than SASRec or DuoRec, proving that its intent-based modeling filters out irrelevant interactions.
- Efficiency: While training is slower than the basic SASRec (about 2-3x longer due to the clustering and contrastive tasks), it is significantly faster than other contrastive models like DuoRec. Crucially, inference speed is identical to SASRec, making it practical for real-time deployment.
Limitations and Future Work
- Clustering Sensitivity: The model relies on K-means clustering to define fine-grained intents. The choice of the number of clusters ($K$) impacts performance, and the authors had to tune this per dataset.
- Computational Overhead: Although faster than some competitors, the E-step (clustering) and M-step (multi-task optimization) add complexity to the training pipeline.
- Future Directions: The authors suggest exploring more sophisticated auxiliary learning objectives and applying the "cross-subsequence" philosophy to other types of recommendation models beyond Transformers.
Summary updated