Problem
Recommendations on the Avito home page bring about half of all listing views and about 30% of buyer-to-seller contacts. They were ranked by CatBoost, which grew from 19 simple counters on 80 thousand feeds in 2020 to about 200 features on over 1 million feeds in 2026. It then stalled: several times more data gave no quality gain, embeddings had to be squeezed into dot products and counters, and every new signal needed hand-made features.
Example from the article: the same item can be good or bad for a person depending on what they recently viewed and were interested in.
Solution in brief
CatBoost stays at the second ranking stage (L2) and cuts about 5,000 candidates to a top 300. A neural ranker at L3 reorders them. It started as an MLP with a listwise loss (ListMLE) and won after the last step: the user's 50 latest target events and the candidates go through one transformer pass.
Questions this case answers
- How to move a production ranking model from gradient boosting to a neural network when the first versions lose online and the candidate pool is too large to score with the new model
- How to condition candidate scores on a user's event history in a single model pass for a whole ranked list
- How to replace a gradient-boosting ranker in a recommendation feed with a neural ranker that wins in online A/B tests?
- How to prepare real-valued features, categorical features and item embeddings for a neural ranker trained on millions of feeds?
Tools and methods
- CatBoost — L2 ranker, picks the top 300
- ListMLE — listwise loss that trains the order of the whole feed
- Quantile encoding — maps real-valued features to with 128 bins
- Transformer over history and candidates — conditions candidate scores on user events
- Deep & Cross Network (DCN) — final scoring head
- Rank blending — mixes CatBoost and neural ranks
- ONNX Runtime, NVIDIA Triton — serving
Google or a one-time email code. No password.