Exploring User Retrieval Integration towards Large Language Models for Cross-Domain Sequential Recommendation

Tingjia Shen, Hao Wang, Jiaqing Zhang, Sirui Zhao, Liangyue Li, Zulong Chen, Defu Lian, Enhong ChenarXiv 2024 · DOI

Abstract

Sequential Recommendation (SR) systems often struggle with the cold-start problem, where limited user interaction data in a target domain hinders accurate predictions. Cross-Domain Sequential Recommendation (CDSR) attempts to mitigate this by transferring knowledge from a richer source domain. This paper presents URLLM (User Retrieval Integration towards LLMs), a framework that bridges the gap between the structural precision of Graph Neural Networks (GNNs) and the semantic reasoning of Large Language Models (LLMs). By retrieving similar users to serve as few-shot examples for a fine-tuned LLaMA 2 model, URLLM achieves substantial performance improvements over traditional collaborative filtering and standalone LLM approaches, particularly in sparse data environments.

Introduction

Traditional Sequential Recommendation aims to predict a user's next interaction based on their historical sequence. However, in cold-start scenarios—where a user has very few interactions in a specific domain (e.g., "Office Supplies")—prediction accuracy drops significantly. CDSR models address this by borrowing preferences from a source domain (e.g., "Art").

Existing CDSR models typically fall into two categories: collaborative filtering models (like GNNs) that capture structural patterns but ignore semantic content, and LLM-based models that excel at semantic reasoning but struggle to integrate complex user-item relationships or maintain domain-specific constraints. URLLM is designed to unify these strengths while addressing the "hallucination" and domain-alignment issues common in LLM-based recommenders.

The URLLM Framework

The URLLM architecture integrates dual-graph modeling with an LLM-based retrieval-generation pipeline.

URLLM operates through three primary components:

  1. Dual Graph Sequence Modeling: The framework constructs two distinct graph types: an Item-Attribute graph (linking items to semantic features like genre) and Item-Item sequence graphs (capturing transition patterns). GNNs and contrastive learning are employed to align these representations, creating embeddings that encapsulate both semantic identity and collaborative behavior.
  2. User Retrieve-Generation: Instead of zero-shot prediction, URLLM utilizes a KNN (k-Nearest Neighbors) retriever to identify "similar users" from the training set based on dual-graph embeddings. These users' histories are provided to a fine-tuned LLaMA 2-7B model as few-shot prompts, enabling the model to perform analogical reasoning on user behavior.
  3. Domain Grounding & Refinement: To ensure recommendations are valid and domain-appropriate, a BM25-based refinement module maps the LLM's natural language output back to the actual item catalog, filtering for the correct target domain.

Experimental Evaluation

The model was evaluated on two Amazon datasets representing different cross-domain challenges:

  • Movie-Game: A sparse dataset characterized by a high volume of cold-start users.
  • Art-Office: A denser, more standardized dataset.

Performance was measured using Mean Reciprocal Rank (MRR) and Normalized Discounted Cumulative Gain (NDCG@5).

Key Results and Discussion

Performance metrics (MRR and NDCG@5) for URLLM compared to baselines across different domain pairs and start conditions.

URLLM consistently outperformed both traditional GNN-based models (e.g., $C^2DSR$) and LLM-based baselines (e.g., UniSRec).

  • Cold-Start Superiority: In the sparse Movie-Game scenario, URLLM demonstrated a 3.6-fold improvement in accuracy over traditional models.
  • Collaborative Integration: In the Art-Office domain, the performance gap reached a factor of 13x compared to standalone LLMs, highlighting that providing collaborative context via similar-user retrieval is far more effective than relying on the LLM's internal knowledge alone.
  • Domain Alignment: Without the grounding and refinement layer, LLMs were found to suggest out-of-domain items between 2% and 20% of the time, underscoring the necessity of the refinement module for production-ready systems.

Conclusion

URLLM demonstrates that LLMs are most effective in recommendation tasks when treated as analogical reasoners rather than simple encoders. By grounding LLM generation in collaborative graph data and retrieved user patterns, the framework effectively addresses the cold-start problem in cross-domain settings. Future work will focus on reducing the computational latency associated with long-sequence retrieval and exploring the emergent behaviors of larger-scale models (70B+) in this architecture.

Summary updated

BibTeX
@misc{shen2024exploring,
  author = {Tingjia Shen and Hao Wang and Jiaqing Zhang and Sirui Zhao and Liangyue Li and Zulong Chen and Defu Lian and Enhong Chen},
  title = {{Exploring User Retrieval Integration towards Large Language Models for Cross-Domain Sequential Recommendation}},
  year = {2024},
  eprint = {2406.03085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.03085},
}
Figure