Problem
A recommender usually has two stages: the first generates candidates covering the user's interests, the second personalizes and orders them. The first stage may combine more than a dozen models. Other candidate generators fight popularity bias, and a neural baseline such as BERT4Rec sets the quality bar.
The Wildberries team wanted a simple, interpretable, parallelizable first-stage model that also works for users with few positive events.
Example from the article: a user's log of views, clicks and cart events is cut down to a chain of positive-event item IDs, for example [171350921, 111232192, 162802784, 148455972, 171350921].
Solution in brief
Treat each user session (a chain of positive events) as a document and each item ID as a word, then rank items with a normalized TF-IDF score. Tune which events and users enter the corpus. Find nearest neighbors of "anchor" items with faiss, then filter and balance the output by clusters and quotas. In an offline retro-test the second iteration reached quality comparable to BERT4Rec.
Questions this case answers
- How to build a cheap, interpretable first-stage candidate generator from implicit feedback that matches a neural sequential model offline and does not collapse into popular items
- How to retrieve relevant candidates for users with few positive interactions when only item-level behavior logs are available
- How to build a simple, parallelizable candidate generator for personalized recommendations without training a neural model?
- How to make a candidate generator less biased toward top-selling items?
Tools and methods
- TF-IDF over sessions — scores items by frequency in a session and rarity across sessions.
- Anchor events — keeps only the last N items of a category from the user's history as the base for search.
- FAISS — nearest-neighbor search over the item vectors.
- Cluster quotas and filters — balance the final list by the user's interest per cluster.
Google or a one-time email code. No password.
