Introduction
Sequential recommendation systems aim to predict a user's next interaction by analyzing their historical behavior. While these models have achieved significant success, they are traditionally confined to the specific domain in which they were trained. Transferring knowledge from a data-rich source domain (e.g., Movies) to a data-scarce target domain (e.g., Musical Instruments) remains a significant challenge, particularly when user and item IDs are entirely disjoint and no overlapping side information (like text or images) is available.
Existing transfer learning methods often rely on shared entities or semantic metadata to bridge the gap between domains. However, in many real-world scenarios, privacy constraints or sparse catalogs leave researchers with nothing but anonymous item IDs. This paper introduces MetaRec, a novel framework designed for "universal" transfer in sequential recommendation. MetaRec enables effective knowledge transfer across heterogeneous domains by aligning feature spaces through vector quantization and optimizing the transfer process via meta-learning.
The MetaRec Framework
MetaRec addresses the challenges of ID-only transfer through two primary technical innovations: Multi-Head Vector Quantization and Meta-Learning with Gradient Rescaling.
1. Aligning Feature Spaces via Multi-Head Vector Quantization (VQ)
To handle the problem of heterogeneous input spaces—where an ID in one domain has no inherent relationship to an ID in another—MetaRec maps item embeddings into a shared, latent feature space.
Instead of maintaining a massive, separate codebook, MetaRec utilizes a "codebook trick": it reshapes the target domain's own embedding table to serve as the quantization codebook. This approach ensures parameter efficiency and reduces the risk of overfitting. To enhance expressiveness, the framework employs a Multi-Head approach. By splitting embeddings into $H$ distinct heads and quantizing each separately, the model can represent $K^H$ unique combinations, allowing it to capture complex behavioral patterns across diverse domains.
2. Adaptive Transfer via Meta-Learning and Gradient Rescaling
MetaRec utilizes a bi-level optimization strategy to ensure that the knowledge gained from source domains is actually beneficial to the target domain.
- The Meta-Learning Loop: In the inner loop, the model learns from source domain tasks. In the outer loop, it uses a small subset of target domain data to evaluate the effectiveness of that learning. This "learning to transfer" approach optimizes the model parameters for rapid adaptation to new environments.
- Gradient Rescaling: A common pitfall in multi-source transfer is "negative transfer," where irrelevant or dissimilar source data degrades performance on the target task. MetaRec mitigates this by calculating the cosine similarity between source and target gradients. It then rescales the meta-gradients, effectively amplifying the influence of helpful source domains while "muting" those that are contradictory or irrelevant.
Experimental Evaluation
The researchers evaluated MetaRec using the Amazon product dataset, selecting eight diverse categories as source domains (e.g., Electronics, Clothing, Movies & TV) and six distinct categories as target domains (e.g., Video Games, Pet Supplies, Industrial & Scientific). The experiments followed a standard leave-one-out evaluation protocol, comparing MetaRec against state-of-the-art baselines including SASRec, BERT4Rec, and LRURec.
Key Results
- Superior Performance: MetaRec consistently outperformed all ID-based baselines across all six target datasets. On average, the framework achieved a 6.36% improvement in NDCG@10 over the strongest baseline.
- Domain-Specific Gains: In specific data-scarce scenarios, such as the "Industrial & Scientific" dataset, MetaRec demonstrated improvements as high as 8.44%.
- Ablation Insights: An ablation study revealed that the meta-transfer module is the most critical component of the system. Removing this module resulted in a performance drop of approximately 14.86%, confirming that adaptive gradient rescaling is essential for successful cross-domain transfer.
Discussion and Conclusion
MetaRec demonstrates that semantic metadata is not a prerequisite for cross-domain transfer in recommendation systems. By focusing on behavioral "rhythms" and aligning them through vector quantization, the framework proves that ID-only transfer is a viable and powerful strategy. Furthermore, the inclusion of gradient rescaling addresses the long-standing issue of negative transfer in multi-source learning.
While MetaRec offers a robust solution for data-scarce domains, it does come with increased computational costs due to the second-order derivatives required by meta-learning. Future research may explore more efficient optimization paths or the application of this quantization-based alignment to large-scale foundation models in the recommendation space. Ultimately, MetaRec provides a scalable path forward for building universal recommendation engines that can adapt to new domains with minimal data.
Summary updated