Scaling Sequential Recommendation Models with Transformers
Pablo Zivic, Hernan Vazquez, Jorge Sanchez
TL;DR
The paper studies how transformer-based sequential recommendation models scale with data and parameter count, testing whether scaling laws similar to those in NLP apply. It introduces the Scalable Recommendation Transformer (SRT), which replaces item ID embeddings with a fixed feature extractor, allowing the model size to grow independently of catalog size and enabling pre-training followed by task-specific fine-tuning. The authors derive empirical scaling laws, propose compute-based and data-based performance estimators, and demonstrate these ideas on the Amazon Product Data at scale, including transfer learning across domains. The work provides practical guidance for designing and deploying large, high-dimensional sequential recommender systems, and shows that pre-trained transformers can yield substantial gains over training-from-scratch baselines.
Abstract
Modeling user preferences has been mainly addressed by looking at users' interaction history with the different elements available in the system. Tailoring content to individual preferences based on historical data is the main goal of sequential recommendation. The nature of the problem, as well as the good performance observed across various domains, has motivated the use of the transformer architecture, which has proven effective in leveraging increasingly larger amounts of training data when accompanied by an increase in the number of model parameters. This scaling behavior has brought a great deal of attention, as it provides valuable guidance in the design and training of even larger models. Taking inspiration from the scaling laws observed in training large language models, we explore similar principles for sequential recommendation. We use the full Amazon Product Data dataset, which has only been partially explored in other studies, and reveal scaling behaviors similar to those found in language models. Compute-optimal training is possible but requires a careful analysis of the compute-performance trade-offs specific to the application. We also show that performance scaling translates to downstream tasks by fine-tuning larger pre-trained models on smaller task-specific domains. Our approach and findings provide a strategic roadmap for model training and deployment in real high-dimensional preference spaces, facilitating better training and inference efficiency. We hope this paper bridges the gap between the potential of transformers and the intrinsic complexities of high-dimensional sequential recommendation in real-world recommender systems. Code and models can be found at https://github.com/mercadolibre/srt
