Problem
OK, a social network with more than 36 million monthly users in Russia, builds a recommendation feed from posts of groups and people the user has not subscribed to. The candidates are all content ever posted, so a first stage must pick a small subset for an XGBoost ranker. A CTR-popularity source per age and gender group suits new users but is not personalized.
Example from the article: at registration OK knows only a new user's age and gender, so it shows the posts with the highest CTR for that sociodemographic group.
Solution in brief
Embed every post with one vector built from its text, image and video, using a content model per type and a small neural network on top. Take the posts a user recently interacted with as short-term tastes. Cluster six months of liked posts with DBSCAN and take cluster medoids as long-term tastes. Retrieve the nearest posts from a vector index for the ranker.
Questions this case answers
- How to build personalized candidate sources for a feed ranker from content-only item embeddings when items mix text, images and video
- How to represent a user with several long-term interests and one short-term intent so that nearest-neighbor retrieval serves both within the latency of a feed request
- How to add personalized candidate sources to the first stage of a two-stage news feed recommender?
- How to represent a post with text, images and video as one vector for similarity search?
Tools and methods
- Item2vec (two-level post embedding) — per-type content models, then concatenation and a fully connected network
- RoBERTa, CLIP, video transformer on EfficientNet — first-level encoders
- DBSCAN and medoids — turn six months of activity into long-term taste points
- FAISS-based Vector Index fed from Kafka, plus a feature store — nearest-neighbor search over post vectors and per-user taste vectors
- XGBoost ranker — second-stage ranking of the retrieved candidates
Google or a one-time email code. No password.