Triple Sequence Learning for Cross-domain Recommendation

Haokai Ma, Ruobing Xie, Lei Meng, Xin Chen, Xu Zhang, Leyu Lin, Jie Zhou

Cross-domain recommendation (CDR) has long been the "holy grail" for solving the data sparsity problem in recommender systems. If a user has only bought two books but has watched hundreds of movies, can we use their cinematic tastes to predict their next read?

While traditional methods focus on the "dual-relation" between a source and target domain, a new paper from researchers at Tencent and Shandong University argues that we are missing a crucial piece of the puzzle: the Mixed Sequence.

TL;DR

The authors propose Tri-CDR, a framework that jointly models three behavior sequences: the source domain, the target domain, and a chronologically mixed sequence of both. By using a novel triple attention mechanism and a contrastive learning strategy that balances similarity with domain distinction, Tri-CDR significantly outperforms state-of-the-art models across multiple real-world datasets.

What Problem Does This Paper Address?

Sequential Recommendation (SR) models usually struggle when a user has few interactions in a specific category (the "cold-start" or "data sparsity" problem). Cross-domain recommendation attempts to fix this by transferring knowledge from a data-rich "source" domain to a "target" domain.

However, most existing CDR models treat the two domains as separate entities and try to map them together. The authors point out that this ignores the Mixed Behavior Sequence—the actual chronological path a user takes across all domains. For example, a user might buy a book about AI, then watch an AI movie, then buy a robot toy. Only by looking at the mixed sequence can a model truly understand the user’s underlying "action logic" and global interests.

Methods

Tri-CDR is a model-agnostic framework, meaning it can be wrapped around various existing sequential encoders like SASRec or GRU4Rec. Its architecture consists of three main pillars:

  1. Triple Sequence Encoding: The model independently encodes three sequences for every user: the Source ($S^S$), the Target ($S^T$), and the chronologically ordered Mixed sequence ($S^M$).
  2. Triple Cross-domain Attention (TCA): Not all historical behaviors are equally relevant. TCA uses an attention mechanism to highlight items in the source and mixed sequences that specifically align with the user’s current target-domain preferences and global interests.
  3. Triple Contrastive Learning (TCL): This is the "secret sauce" of the paper. It employs two types of constraints:
  4. Coarse-grained Similarity Modeling (CSM): This pulls the representations of the same user from different domains closer together in the embedding space.
  5. Fine-grained Distinction Modeling (FDM): To prevent "model collapse" (where the model decides all domains are identical), FDM uses a margin-based triplet loss. It ensures that while the sequences are related, the Mixed sequence remains closer to its constituents (Source and Target) than the Source and Target are to each other.

Datasets

The authors evaluated Tri-CDR on six cross-domain settings derived from two major public datasets:

  • Amazon: Combinations of Toy & Game and Book & Movie.
  • Douban: Combinations of Book and Music.

These datasets represent different levels of sparsity and cross-domain overlap, providing a robust testing ground for the model's universality.

Key Insights and Ideas

  • The Power of the "Mixed" View: The mixed sequence acts as a bridge. It captures the "preference evolution" that is lost when you look at domains in isolation.
  • Similarity is Not Enough: In contrastive learning, simply maximizing mutual information can lead to "negative transfer" if the domains are too different. The introduction of Fine-grained Distinction Modeling (FDM) is a key innovation; it acknowledges that a user's "book self" and "movie self" are related but distinct.
  • Universal Compatibility: Because Tri-CDR is model-agnostic, it can benefit from future breakthroughs in single-domain sequential modeling. The authors demonstrated this by showing consistent gains whether using RNN-based or Transformer-based encoders.

Key Results

Tri-CDR achieved significant improvements over all baselines (including SOTA models like $C^2DSR$ and DASL):

  • Performance Gains: On the Amazon "Game $\to$ Toy" task, Tri-CDR improved NDCG@10 by 4.52% over the best baseline.
  • Sparsity Resilience: The model showed the most significant improvements in settings where the target domain was particularly sparse, proving its effectiveness at knowledge transfer.
  • Visualization: t-SNE plots confirmed that Tri-CDR successfully clusters representations by user (showing it learns identity) while maintaining a "triangle" of distinct domain information (showing it preserves domain-specific nuances).

Limitations and Future Work

  • Training Stability: The authors noted that training from scratch can be unstable due to feature space conflicts between domains. They solved this using a two-step training strategy (pre-training on single domains first), but a more end-to-end stable solution would be ideal.
  • Modality Expansion: Currently, the model relies on ID-based embeddings. The authors suggest that incorporating multi-modal information (like item descriptions or images) could act as even stronger "semantic bridges" between domains.
  • Complexity: While the inference time is comparable to other models, training three separate encoders increases the computational overhead during the learning phase.

Summary updated

BibTeX
@article{ma2024triple,
  author = {Haokai Ma and Ruobing Xie and Lei Meng and Xin Chen and Xu Zhang and Leyu Lin and Jie Zhou},
  title = {{Triple Sequence Learning for Cross-domain Recommendation}},
  journal = {ACM Trans. Information Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=XrK6mysouI},
}
Figure