Problem
Teams building a sequential recommender have to pick an open-source library. Popular ones target research and often cannot process production-size data without heavy rework. Training and prediction time is a business constraint too: it sets the cost and decides whether recommendations are ready on time. Public benchmarks such as MovieLens are small, so they say little about a catalog of millions of items.
Example from the article: on the Zvuk music dataset (1.5 million tracks), the same SASRec trained in RecBole took 127,592 s, about 6 times longer than in RePlay (20,782 s), and scored lower on every quality metric.
Solution in brief
Sber's RePlay team ran SASRec in RePlay, RecBole and Microsoft Recommenders on identical train, validation and test splits. They scored all outputs with one external metric tool and timed every stage. The gaps come from two design choices: the loss is computed at every sequence position or only at the last one, and the library augments the data or does not.
Questions this case answers
- How to compare several implementations of the same sequential recommender when each one splits data, filters seen items and computes the loss differently
- How to train a transformer recommender with a loss over every sequence position when the logits tensor does not fit in GPU memory
- How to choose an open-source library for a sequential recommender that must handle a catalog of millions of items?
- How to compare recommender libraries fairly on quality and on training and inference time?
Tools and methods
- RePlay — open-source recommender toolkit from Sber with Pandas, Polars and Spark back ends; the library under test.
- RecBole — PyTorch library with 73 models according to its authors, used as a competitor.
- Microsoft Recommenders — TensorFlow library, used as a competitor.
- SASRec — self-attentive sequential recommender, the common model for the comparison.
- PyTorch Lightning — runs RePlay multi-GPU training (DDP, FSDP).
Google or a one-time email code. No password.