Introduction
Modern recommendation systems increasingly rely on sequential data to predict user preferences. However, traditional models often operate within single domains, suffering from data sparsity when user interaction history is limited. Cross-Domain Sequential Recommendation (CDSR) addresses this by transferring knowledge across related domains—for instance, using a user's movie preferences to inform book recommendations.
The proposed HAF-VT (Hierarchical Attention Fusion of Visual and Textual) framework introduces a cognitive-inspired approach to CDSR. By integrating visual and textual item features through a frozen CLIP model and a hierarchical attention mechanism, HAF-VT mimics human decision-making processes, significantly outperforming existing state-of-the-art (SOTA) methods.
Problem Statement: Beyond ID-Centricity
Current CDSR models face two primary challenges:
- ID-Centricity: Most systems rely heavily on unique Item IDs. This ignores the semantic richness of product images and descriptions, which are the primary drivers of human interest.
- Domain Bias: Balancing intra-domain (within one category) and inter-domain (across categories) relationships is difficult. Models often fail to capture the nuanced "bridge" behaviors that link different domains.
The HAF-VT Framework
The HAF-VT architecture is structured into three distinct stages designed to capture multimodal preferences and cross-domain dynamics.
1. Multimodal Feature Preparation
Instead of relying solely on IDs, HAF-VT leverages a frozen CLIP (Contrastive Language-Image Pretraining) model. CLIP generates high-dimensional embeddings for both product images and titles, mapping them into a shared semantic space. This allows the model to recognize that a "sleek modern toaster" (visual) might be related to a "minimalist coffee maker" (visual), even if their IDs share no historical overlap.
2. Preference Simulation via Hierarchical Attention
The core of the model is a hierarchical attention mechanism that processes three sequences: Domain X, Domain Y, and a merged chronological sequence ($S^{X+Y}$). Using a Query-Key-Value (QKV) mechanism across three modalities (ID, Image, Text), the model generates nine distinct sequence representations. This hierarchy captures how interests evolve both within a single domain and across domain boundaries.
3. Decision Generation
The final recommendation is produced by calculating similarity scores between the user's current state and candidate items across all three modalities. A weighted fusion, controlled by hyperparameters $\alpha$ and $\beta$, balances the influence of visual aesthetics, textual descriptions, and historical ID patterns.
Experimental Evaluation
The model was evaluated using the Amazon dataset across two scenarios: Food-Kitchen and Movie-Book.
Key Results
HAF-VT consistently outperformed SOTA models like MIFN and Tri-CDR:
- Accuracy Gains: In the Food-Kitchen task, HAF-VT achieved an MRR (Mean Reciprocal Rank) of 9.16 for the Food domain, a significant improvement over the 8.35 achieved by Tri-CDR.
- Ablation Insights: Adding visual fusion alone improved the baseline MRR by approximately 0.6 points. The highest performance was achieved when textual, visual, and hierarchical attention components were combined, demonstrating their synergistic effect.
Key Insights
- Cognitive Alignment: By incorporating a visual "pathway," the model captures the "gut-level" preferences humans form based on appearance, even when textual descriptions are similar.
- Foundation Model Efficiency: Using a frozen CLIP model provides high-quality semantic understanding without the prohibitive cost of training multimodal encoders from scratch.
- Hierarchical Modeling: Treating the cross-domain sequence as a unique entity allows the attention mechanism to specifically identify "bridge" behaviors that link disparate categories.
Conclusion and Future Work
HAF-VT demonstrates the power of multimodal, cognitive-inspired architectures in solving the data sparsity issues of sequential recommendation. While the current model uses a frozen CLIP, future work could involve fine-tuning on e-commerce-specific data to further enhance performance. Additionally, scaling the hierarchical attention mechanism to handle more than two domains simultaneously remains a promising area for research.
Summary updated