Problem
A marketplace recommender team wants to ship model improvements often, but offline metrics do not reliably predict online results, and full A/B tests with a control group are slow and expensive. Training on a year of orders also leaves recommendations behind the user: new actions reach the feed a day or two later.
Example from the article: the Wildberries personal recommendations team runs WildBERT, a BERT-based recommender, on the home page. It now runs up to three A/B tests a week and serves a second, nearline model that updates within seconds.
Solution in brief
Test model changes head-to-head: two variants of the same BERT recommender, trained on the same data, compete on a small share of traffic through a simplified pipeline, and offline metrics shrink to a sanity filter. Alongside the daily offline model, a smaller nearline model reacts to the user's last actions through Kafka, Triton and an approximate nearest-neighbor index.
Questions this case answers
- How to compare candidate versions of a ranking model online, week after week, when offline metrics do not predict online outcomes and a clean control group is too expensive to keep
- How to serve recommendations that react to a user's latest actions within seconds while keeping a slow long-history model for stable preferences
- How to test new versions of a recommendation model quickly when offline metrics do not match online results?
- How to shorten the delay between a user action and its effect on recommendations from a day to seconds?
Tools and methods
- Head-to-Head (H2H) test — compares baseline and modified model directly, no clean control
- BERT4Rec-style sequential model (WildBERT) — masked-item prediction over user histories
- Hard negatives and in-batch negatives — loss function for training on a 5M-item vocabulary
- Exponential score decay per category — diversity control in the feed
- NVIDIA Triton, Apache Kafka, HNSW index — nearline serving
- Apache Airflow — semi-automatic test loop
Google or a one-time email code. No password.
