Abstract
Sequential recommender systems rank relevant items by modeling a user's interaction history and computing the inner product between the resulting user representation and stored item embeddings. To avoid the significant memory overhead of storing large item sets, the generative recommendation paradigm instead models each item as a series of discrete semantic codes. Here, the next item is predicted by an autoregressive model that generates the code sequence corresponding to the predicted item. However, despite promising ranking capabilities on small datasets, these methods have yet to surpass traditional sequential recommenders on large item sets, limiting their adoption in the very scenarios they were designed to address. To resolve this, we propose MSCGRec, a Multimodal Semantic and Collaborative Generative Recommender. MSCGRec incorporates multiple semantic modalities and introduces a novel self-supervised quantization learning approach for images based on the DINO framework. Additionally, MSCGRec fuses collaborative and semantic signals by extracting collaborative features from sequential recommenders and treating them as a separate modality. Finally, we propose constrained sequence learning that restricts the large output space during training to the set of permissible tokens. We empirically demonstrate on three large real-world datasets that MSCGRec outperforms both sequential and generative recommendation baselines and provide an extensive ablation study to validate the impact of each component.
Introduction
Recommender systems generally fall into two categories: sequential recommenders and generative recommenders. Traditional sequential models like SASRec represent every item as a high-dimensional embedding, which creates a significant memory bottleneck as item catalogs scale into the millions. Generative recommenders address this by modeling items as sequences of discrete semantic codes, predicting the next item via an autoregressive model. However, generative models have historically struggled to outperform sequential models on large-scale datasets. This performance gap stems from a heavy reliance on text while ignoring visual and collaborative signals, and inefficient training where model capacity is wasted on invalid item code sequences.
Methodology: MSCGRec
To address these limitations, we propose MSCGRec (Multimodal Semantic and Collaborative Generative Recommender). The framework introduces three primary innovations:
1. Collaborative Signals as a Modality
Rather than attempting to embed collaborative information directly into semantic codes, MSCGRec treats it as a distinct modality. It utilizes item embeddings from a pre-trained sequential model (SASRec) and quantizes them into discrete codes. This allows the model to fuse collaborative "wisdom" with traditional semantic features like text and images.
2. Self-Supervised Image Quantization
Unlike models that use frozen, pre-trained image encoders, MSCGRec employs the DINO framework in conjunction with Residual Quantization (RQ). By training the quantizer directly on images using self-distillation rather than reconstruction loss, the model learns hierarchical codes that capture high-level semantics essential for recommendation, rather than low-level pixel details.
3. Constrained Sequence Learning
Standard generative models are trained to predict tokens from the entire vocabulary. MSCGRec restricts the output space during training using a prefix tree (trie) of valid item codes. This "constrained training" ensures the model is only penalized for selecting the wrong valid code, preventing it from overfitting on impossible sequences and focusing its capacity on differentiating between real items.
Experimental Evaluation
The performance of MSCGRec was evaluated on three large-scale datasets that represent a significant scale-up from those typically used in generative recommendation research:
- Amazon Beauty: ~203k items, 6.4M interactions.
- Amazon Sports: ~151k items, 3.4M interactions.
- PixelRec: A massive, image-heavy dataset with ~407k items and 158M interactions.
Results and Analysis
MSCGRec is the first generative model to consistently outperform the state-of-the-art sequential baseline (SASRec) at scale.
Performance Gains
On the PixelRec dataset, MSCGRec achieved a 40.4% improvement in Recall@1 and a 35.8% improvement in NDCG@5 over the best generative baseline. It also surpassed SASRec across nearly all metrics, particularly in Recall@1, demonstrating the advantage of the generative paradigm's ability to directly target specific item codes.
Key Insights
Ablation studies revealed that collaborative information is the most significant contributor to performance. Furthermore, while constrained beam search is common during inference, applying these constraints during training proved crucial for model efficiency. Finally, the DINO-based quantization outperformed CLIP-based alternatives, suggesting that self-distillation is better suited for creating hierarchical codes for recommendation tasks.
Conclusion
MSCGRec demonstrates that generative recommendation can scale effectively by integrating multimodal and collaborative signals. Future work may explore "dino.txt" — applying self-distillation quantization to text — and extending the framework to include video and audio modalities.
Summary updated