Problem
Large recommender stacks are cascades of microservices, candidate filters and thousands of hand-made features. Quality plateaus: new features, bigger models and more data add less and less, and each extra model adds operating cost. Models are also trained inside one product and do not reuse what other products know about the same user. Yandex met this in Music, Market and Advertising.
Example from the article: the first ARGUS versions ran in batch once a day, compressed a whole history into one vector, used only one service's data and needed a complicated pretraining recipe.
Solution in brief
Treat the user history as a sequence and train one transformer (ARGUS) to predict the next item: generative pretraining, then discriminative fine-tuning for ranking. Put the current context into the sequence as a token, add events from other services, and simplify the loss and negatives. Downstream rankers then use the model as a feature generator or a candidate source.
Questions this case answers
- How to move a mature feature-based cascaded recommender to a sequence model when quality has plateaued and operating many models is costly
- How to train a sequence model on behavior from several services so it improves ranking in one target service
- How to replace a cascade of recommender services and hand-made features with one generative model over user action sequences
- How to make the current context part of a sequential recommender instead of attaching it at the last step
Tools and methods
- ARGUS — autoregressive transformer over user histories, pretrained generatively and fine-tuned for ranking.
- Sampled softmax with logQ correction — pretraining loss with uniform and in-batch negatives.
- In-batch negatives — other items of the batch used as negatives; critical for quality.
- Two-tower model — user and document embeddings, used by the first offline versions.
- DCNv2 towers with multi-hashing — one tower per domain, shared embedding matrix.
- FlashAttention, PyTorch FSDP — attention kernel and data-parallel training.
Google or a one-time email code. No password.
