Cross-Domain Sequential Recommendation via Neural Process

Haipeng Li, Jiangxia Cao, Yiwen Gao, Yunhuai Liu, Shuchao PangarXiv 2024 · DOI

Introduction

Sequential Recommendation (SR) systems aim to predict a user's future preferences by analyzing their historical interaction sequences. While traditional SR models focus on single-domain data, Cross-Domain Sequential Recommendation (CDSR) seeks to enhance recommendation quality by transferring knowledge across multiple domains—for instance, leveraging a user's purchase history in electronics to improve predictions in the home appliances category.

However, a significant bottleneck in current CDSR methodologies is their heavy reliance on "overlapped users"—individuals who have active histories in both source and target domains. In real-world scenarios, these users represent only a small fraction of the total user base. Most users are "non-overlapping," interacting with only one domain. Traditional models often fail to provide meaningful cross-domain benefits to these users because they lack a behavioral "bridge" to facilitate knowledge transfer. This paper introduces CDSRNP (Cross-Domain Sequential Recommendation via Neural Process), a framework designed to unleash the potential of non-overlapped users by treating cross-domain recommendation as a stochastic process.

Methodology

Neural Processes for User Modeling

The core innovation of CDSRNP is the integration of Neural Processes (NPs). Unlike standard neural networks that learn a fixed mapping function, NPs learn a distribution over functions. This approach is particularly suited for recommendation tasks as it effectively models the inherent stochasticity and uncertainty in human behavior. By representing user interests as a distribution rather than a point estimate, the model can better generalize across different domains.

Support and Query Sets

To facilitate knowledge transfer, CDSRNP adopts a meta-learning workflow. The model utilizes a Support Set consisting of overlapped users who possess rich, cross-domain interaction data. These users serve as a reference library of behavioral patterns. The Query Set includes the non-overlapped users for whom the model needs to make predictions. By aligning the patterns found in the support set with the limited data in the query set, the model can "infer" potential cross-domain interests for users who have never visited the target domain.

Distribution Alignment and Interest Adaptation

The framework employs two critical mechanisms to ensure effective transfer:

  1. Distribution Alignment: Using the principle of KL divergence, the model aligns the "prior" distribution (derived from the support set) with the "posterior" distribution (derived from the query set). This creates a mathematical bridge that allows non-overlapped users to benefit from the collective knowledge of the overlapped population.
  2. Fine-Grained Interest Adaptive Layer: Recognizing that not all overlapped users are relevant to every non-overlapped user, the authors implemented a cross-attention mechanism. This layer identifies specific interests within the support set that are most relevant to a particular query user, ensuring that the knowledge transfer is personalized and contextually appropriate.

Experimental Evaluation

Datasets and Setup

The researchers evaluated CDSRNP using two large-scale scenarios from the Amazon dataset:

  • Cloth-Sport: Interactions between Clothing and Sporting goods.
  • Phone-Elec: Interactions between Cell Phones and Electronics.

To test the model's robustness against data sparsity, the study introduced a "non-overlapping ratio" ($K_u$). This allowed the researchers to simulate environments where the vast majority of users (up to 75%) were non-overlapping, reflecting the challenges of real-world production environments.

Performance Results

CDSRNP consistently outperformed state-of-the-art baselines, including C²DSR and AMID. Key findings include:

  • Significant Accuracy Gains: On the Cloth-Sport dataset, CDSRNP achieved an improvement of up to 16.94% in NDCG@10, a critical metric for ranking quality.
  • Robustness to Sparsity: The model's performance remained strong even when the proportion of non-overlapping users was high ($K_u = 75\%$). This suggests that the NP-based approach is highly effective at extracting value from "data-poor" users.
  • Ablation Studies: Tests confirmed that both the Interest Adaptive Layer and the domain-specific embedding strategy were essential to the model's success; removing either component led to a measurable decline in recommendation accuracy.

Discussion and Future Work

CDSRNP represents a shift away from simple point-estimate modeling toward a more nuanced, distribution-based understanding of user behavior. By leveraging overlapped users as a global knowledge base, the framework successfully bridges the gap for the non-overlapping majority.

Despite these strengths, the authors note several areas for future exploration. The computational complexity of Neural Processes and cross-attention mechanisms may impact inference latency in real-time systems. Additionally, the model assumes that the overlapped users are representative of the broader population; if these users exhibit highly idiosyncratic behavior, the transfer might introduce bias. Future research will focus on scaling this approach to "Universal Recommendation" across dozens of domains simultaneously and optimizing the selection of the support set to ensure maximum representativeness.

Summary updated

BibTeX
@misc{li2024cross,
  author = {Haipeng Li and Jiangxia Cao and Yiwen Gao and Yunhuai Liu and Shuchao Pang},
  title = {{Cross-Domain Sequential Recommendation via Neural Process}},
  year = {2024},
  eprint = {2410.13588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.13588},
}
Figure