Abstract
Sequential recommendation (SR) using Large Language Models (LLMs) often encounters two critical issues: embedding collapse, where high-dimensional token spaces are underutilized, and catastrophic forgetting, where item relationship information is lost during quantization. This paper introduces MME-SID, a novel framework that addresses these challenges by integrating multimodal embeddings (textual, visual, and collaborative) with a specialized quantization technique. By utilizing a Multimodal Residual Quantized Variational Autoencoder (MM-RQ-VAE) and Maximum Mean Discrepancy (MMD) loss, MME-SID preserves item relationships and maximizes LLM capacity. Experimental results on Amazon datasets demonstrate that MME-SID significantly outperforms existing baselines, achieving up to a 10.47% improvement in nDCG@5.
Introduction
Sequential recommendation aims to predict a user's next interaction based on historical behavior. While Large Language Models (LLMs) offer powerful reasoning capabilities for this task, current LLM-based recommendation (LLM4SR) approaches face significant roadblocks. First, embedding collapse occurs when low-dimensional item IDs are projected into the massive, high-dimensional token space of an LLM (e.g., 4096 dimensions), resulting in a low-rank embedding matrix that wastes over 98% of the model's capacity. Second, catastrophic forgetting arises when items are converted into discrete "Semantic IDs" via quantization, discarding the distance and relationship information learned during the quantization process.
Methodology
To mitigate these issues, we propose the MME-SID framework, built upon the Llama3-8B-instruct model. The architecture focuses on preserving rich item information and ensuring effective utilization of the LLM's parameter space.
Multimodal RQ-VAE and MMD Loss
MME-SID incorporates textual (titles) and visual (images) data processed via LLM2CLIP alongside collaborative item IDs. These are fed into a Multimodal Residual Quantized Variational Autoencoder (MM-RQ-VAE) to generate Semantic IDs. Unlike standard VAEs that use Mean Squared Error (MSE), which can destroy relative distance relationships, we employ Maximum Mean Discrepancy (MMD) reconstruction loss. MMD preserves the statistical distribution of distances between items, ensuring that item similarity in the original space is reflected in the quantized space.
Smart Initialization and Fusion
To prevent catastrophic forgetting, Semantic ID embeddings in the LLM are initialized using the trained codebook embeddings directly from the MM-RQ-VAE rather than random initialization. This allows the model to retain significantly more distance information. Furthermore, we introduce a Multimodal Frequency-Aware Fusion module. This module dynamically weights text, image, and ID modalities based on item popularity, addressing the long-tail problem in recommendation systems. The LLM is efficiently fine-tuned using LoRA, updating only 0.19% of the total parameters.
Results and Discussion
We evaluated MME-SID on three categories of the Amazon 5-core dataset: Beauty, Toys & Games, and Sports & Outdoors. MME-SID consistently outperformed all baselines, including SASRec and multimodal methods like TIGER-MM.
Mitigation of Embedding Collapse
Empirical singular value analysis confirms that MME-SID effectively mitigates embedding collapse. While baseline models like SASRec show singular values collapsing after the 64th dimension, MME-SID maintains a healthy, non-collapsed distribution across the entire 4096-dimensional space. This indicates that the inclusion of rich multimodal features forces the model to utilize the high-dimensional capacity of the LLM more effectively.
Accuracy Gains
MME-SID achieved substantial improvements in accuracy, notably a 10.47% increase in nDCG@5 on the Beauty dataset compared to the second-best performing models. The reuse of VAE codebook weights for initialization was shown to retain ~27% of original distance information, a significant improvement over the ~5% retained by random initialization.
Conclusion
MME-SID represents a significant step forward in LLM-based sequential recommendation. By combining multimodal embeddings with distribution-preserving quantization and smart initialization, the framework overcomes the dual hurdles of embedding collapse and catastrophic forgetting. While the model currently depends on high-quality multimodal data, future research will explore handling missing modalities and scaling to billion-item industrial systems where real-time latency is critical.
Summary updated