How to use ML to build professional curated collections better than editors

Denis Krasilnikov20 Aug 2024

Problem

The T-Bank personalization team ranks a content feed in the "City" menu. The carousels at the top were collections made by editors, ranked per user with gradient boosting. Editor-made carousels have fixed themes, and new cards rarely enter the main feed: without statistics a card is not recommended, and without recommendations it gets no statistics. The team wanted personal, thematic carousels built differently from the main feed and better on business metrics.

Example from the article: a carousel such as "Now in cinemas" is always the same carousel with changing content; the user should see why each card is in it.

Solution in brief

Cards are embedded from their text only. SASRec over the user's clicks, with frozen card embeddings, gives a user vector in the same space. A carousel is built around an anchor card, and its score also penalizes distance to the carousel's center, so mixed collections are dropped. The second A/B test raised engagement rate by 15%.

Questions this case answers
  • How to build personalized themed groups of items from a catalog where items churn quickly and have no interaction history, without duplicating the main ranker
  • How to represent a user and new items in one embedding space so cold-start items can be recommended from content alone
  • How to assemble personal thematic collections (carousels) in a content feed instead of ranking editor-made ones?
  • How to recommend brand-new cards that have no clicks or statistics yet?

Tools and methods

  • Text card embeddings — BERT-like model fine-tuned on the cards; 312-dimensional vector from title plus description
  • Content SASRec — transformer next-click model; its last hidden state is the user vector
  • MeanRec — user vector as a weighted mean of clicked cards, the simple baseline
  • Anchor plus center scoring — greedy carousel assembly that keeps one theme
  • TD3+BC — offline RL user encoder, tested next
Continue reading — it's free

Google or a one-time email code. No password.