Problem
Avito's home page is an endless personal feed of listings. About 50% of all views and 30% of buyer-to-seller contacts go through it. The CatBoost ranker scores each listing on its own, so near-duplicate offers get near-equal scores and sort into blocks. One or two categories can fill the whole top. The user gets little value from the second iPhone in a row, other relevant categories never surface, and a monotonous feed can push the user away.
Example from the article: an iPhone in position one and the same iPhone in another colour in position two.
Solution in brief
Add a diversification layer after ranking: a category blender that samples the next category from the user's interest distribution and takes the best remaining listing of that category. Interest first comes from a hand-made time-decayed event counter, later replaced by a small transformer encoder that predicts the category distribution from user history. A temperature softmax smooths the predictions.
Questions this case answers
- How to diversify a ranked feed, where independent per-item scores make similar items cluster, without a relevance loss
- How to estimate a user's per-category interest distribution from an event history when a hand-tuned decay formula ignores new categories and links between categories
- How to stop a ranked feed from clumping into blocks of near-identical items without losing relevance?
- How to compute a user's interest in each category from event history, and when to replace a hand-made formula with a model?
Tools and methods
- Category blender — post-ranking step that interleaves categories by sampling from the interest distribution
- Time-decayed interest formula — weighted event counts with exponential time discount, the first version of category interest weights
- Transformer Encoder interest model — predicts the distribution of future target events over categories
- Temperature softmax — smooths over-peaked predictions to keep the feed diverse
- CatBoost — the existing ranking model
Google or a one-time email code. No password.