Introduction
Sequential Recommendation (SR) systems aim to predict a user's future preferences by analyzing their historical interaction sequences. While traditional SR focuses on patterns within a single domain, Cross-Domain Sequential Recommendation (CDSR) seeks to leverage knowledge from multiple domains—such as predicting a user's interest in books based on their movie-watching history.
Despite its potential, CDSR faces three significant challenges: inter-domain neglect, where models fail to capture subtle cross-domain connections; multimodal underutilization, where rich data like product images and descriptions are ignored; and domain imbalance, where a data-rich domain biases the model against a data-sparse domain. This paper introduces TEMA-LLM (Tag-Enriched Multi-Attention with Large Language Models), a framework designed to address these hurdles by integrating LLM-generated semantic tags with a hierarchical attention mechanism.
Methodology
The TEMA-LLM framework consists of three primary components: semantic tag generation, multimodal feature fusion, and hierarchical multi-attention.
LLM-Driven Tag Generation and Matching
To overcome the noise inherent in raw item descriptions, TEMA-LLM utilizes a Large Language Model (LLM), such as GPT-4o, to establish a stable, domain-specific "tag vocabulary." To ensure consistency and mitigate LLM hallucinations, the authors employ a self-refine strategy. This involves querying the LLM multiple times and using frequency-based voting to select the most relevant tags. Once the vocabulary is established, the LLM assigns relevance scores to items based on their titles and descriptions, creating a "soft" tag vector that captures multi-faceted item attributes (e.g., a film categorized as both "Drama" and "Crime").
Multimodal Feature Fusion
The model constructs a unified representation for each item by concatenating four distinct embedding types:
- ID Embeddings: Unique identifiers for specific items.
- Visual Features: Extracted via CLIP-ViT from product images.
- Textual Features: Extracted via CLIP-Text from product descriptions.
- Tag Embeddings: The LLM-generated semantic vectors.
Hierarchical Multi-Attention
To resolve domain imbalance, TEMA-LLM processes three separate interaction sequences: Domain X, Domain Y, and the combined chronological sequence (X+Y). Each sequence is processed through its own attention layer. This disentangled approach allows the model to learn domain-specific and cross-domain patterns independently, preventing a high-frequency domain from overwhelming the signal of a lower-frequency domain during the final prediction fusion.
Experimental Setup
The researchers evaluated TEMA-LLM using the Amazon dataset, focusing on two distinct cross-domain pairs:
- Food-Kitchen: Linking grocery habits to kitchenware needs.
- Movie-Book: Aligning cinematic tastes with reading preferences.
The data was filtered to include only users with at least 10 total interactions to ensure the sequences provided sufficient depth for meaningful modeling.
Results and Key Insights
TEMA-LLM consistently outperformed state-of-the-art baselines, including MAN, LLMRec, and IFCDSR, across all primary metrics.
- Performance Gains: In the Food-Kitchen domain, TEMA-LLM achieved a 9.34% MRR (Mean Reciprocal Rank), surpassing LLMRec (9.05%). In the Movie-Book domain, it reached a 6.41% MRR, a notable improvement over IFCDSR’s 6.08%.
- Ablation Studies: Removing the LLM-generated tags resulted in a significant performance drop, confirming that semantic enrichment is a primary driver of the model's success.
- Tags as a Universal Language: The study suggests that mapping items to a structured tag vocabulary creates a "semantic bridge," making it easier to align disparate items across different domains than using raw text alone.
Limitations and Future Work
While effective, TEMA-LLM has limitations regarding computational overhead. The offline processing of massive product catalogs using LLMs and CLIP encoders can be resource-intensive for large-scale retailers. Additionally, the model currently utilizes fixed coefficients to balance domain weights.
Future research will explore adaptive strategies to automatically weight domain importance for individual users and investigate methods for maintaining dynamic tag vocabularies that can evolve in real-time as new product trends emerge.
Summary updated