Introduction
Sequential Recommendation (SR) aims to predict a user's next interaction based on their historical behavior. However, SR models frequently encounter the "cold-start" and "data sparsity" problems, where short interaction sequences provide insufficient signal for accurate predictions. Cross-Domain Sequential Recommendation (CDSR) addresses this by leveraging user behavior across multiple domains (e.g., movies and books). Despite its potential, existing CDSR methods often struggle to capture the complex, time-varying transitions between domains or fail to mitigate the underlying sparsity of the data.
In this work, we present DDGHM (Dual Dynamic Graph with Hybrid Metric Training), a framework designed to bridge these gaps by modeling user behavior through synchronized dual dynamic graphs and optimizing the embedding space via hybrid metric training.
Methodology
Dual Dynamic Graph Modeling
DDGHM moves beyond single-sequence modeling by constructing two types of graphs at each timestamp to capture the synchronicity of user interests:
- Local Dynamic Graphs: These capture intra-domain transitions, focusing on item-to-item relationships within a specific domain (e.g., movie-to-movie).
- Global Dynamic Graphs: These capture inter-domain transitions (e.g., book-to-movie) by mapping all items from multiple domains into a shared feature space.
To integrate these perspectives, the authors developed the Fuse Attentive Gate (FAG). The FAG utilizes sequence-aware, self-attentive, and neighbor-attentive mechanisms to selectively filter information from the global graph that is most relevant to the local prediction task. This ensures that cross-domain knowledge enhances rather than noises the intra-domain signal.
Hybrid Metric Training
To further combat data sparsity, DDGHM incorporates a hybrid training objective that goes beyond standard cross-entropy loss. It optimizes the geometry of the embedding space using two key metrics:
- Collaborative Metric (Alignment): Utilizing a Weighted Approximate-Rank Pairwise (WARP) loss, this metric pulls representations of similar user-item pairs closer together in the latent space.
- Contrastive Metric (Uniformity): Through an "Item Mask" augmentation strategy, the model learns to maintain a uniform distribution of features. This prevents representation collapse and ensures the model can distinguish between diverse items even with limited data.
Experimental Evaluation
Datasets and Setup
The framework was evaluated using the Amazon Dataset, focusing on two complementary domain pairs:
- Movie & Book: Comprising 58k movie items and 104k book items.
- Food & Kitchen: Comprising 47k food items and 53k kitchen items.
The study focused on "overlapped users"—those with at least 10 interactions across both domains—to ensure a robust cross-domain signal for learning transitions.
Performance Results
DDGHM consistently outperformed state-of-the-art baselines, including GRU4Rec, BERT4Rec, and specialized CDSR models like π-Net and DA-GCN.
- Accuracy Boost: On the Movie domain, DDGHM achieved a Hit Ratio (HR@20) of 0.3257, a significant improvement over DA-GCN's 0.2989.
- Sparsity Resilience: The model's strength was most evident in data-poor scenarios. For sequences with an average length of approximately 10 items, DDGHM demonstrated an 11.5% improvement over the best-performing baseline, proving its effectiveness when user history is minimal.
- Embedding Efficiency: Analysis showed that performance plateaus at an embedding dimension of 256, identifying an optimal balance between model capacity and computational efficiency.
Discussion and Insights
The success of DDGHM highlights several key insights into the nature of cross-domain recommendation:
- Synchronicity of Interests: Intra-domain and inter-domain interests evolve synchronously. Effective models must update local interest representations the moment an inter-domain action occurs.
- Geometric Optimization: Simply aggregating cross-domain data is insufficient. Explicitly managing the alignment and uniformity of latent representations is crucial for robustness against sparse data.
- Local-Global Synergy: While the local graph remains the primary driver for predictions, the global graph serves as a vital "contextual booster," providing the necessary background to interpret sparse local sequences.
Conclusion
DDGHM introduces a robust approach to Cross-Domain Sequential Recommendation by combining dual dynamic graph modeling with hybrid metric training. While the model introduces some computational complexity due to its dual-graph structure and contrastive learning components, its ability to handle sparse data and capture complex cross-domain transitions represents a significant advancement. Future research may explore more diverse data augmentation strategies and the application of this framework to less complementary domains.
Summary updated