Problem
An ecosystem has several products: long videos, short clips, a social feed. Each product sees only its own slice of a user's behavior, so its ranker misses interests shown elsewhere. Per-product models also need separate ML pipelines. Short formats produce far more events than long ones, so a joint model overrates short formats.
Example from the article: VK Video, VK Clips and the VKontakte feed. A person who watches many clips about car repair should get a long repair review on the VK Video home page.
Solution in brief
One transformer reads the user's last 1,024 actions across all products as a single sequence. It forms the user tower of a two-tower model, trained in two stages: pre-training on implicit signals, then fine-tuning on "causal sessions" that see only earlier history. Each product's ranking gets the user vector through a shared platform.
Questions this case answers
- How to build a single user representation from behavior sequences spread over several products with very different event rates, so that each product's ranker can reuse it
- How to train a sequential user encoder on logged sessions so that the training setup matches serving and no future events leak into the user vector
- How to build one user interest profile from long videos, short clips and feed posts so that each product's ranking benefits from the user's behavior elsewhere?
- How to train a sequence transformer for recommendations without leaking future actions into the user representation?
Tools and methods
- Two-tower model — a user tower (transformer over event tokens) and an item tower, scored by closeness of their vectors
- Transformer with self-attention — encodes up to 1,024 recent events as one sequence
- Time2Vec — encodes absolute, in-session and between-event time
- Sampled softmax with popularity correction — pre-training over a catalog of millions of items
- Causal fine-tuning — trains on target sessions using only the history before them
- Heimdall — the cross-domain variant that predicts the next content object
Google or a one-time email code. No password.