Perseus: a framework for universal personalization based on heterogeneous events

Oleg Lashinin21 Jul 2026

Problem

A bank with dozens of services (cards, grocery delivery, travel, insurance, cashback offers) wants every service personalized. Each team keeps its own data, event schemas differ, and a newly launched service or a newly connected partner store has no history to learn from. A model trained on one service's data starts cold there, which can spoil the first impression.

Example from the article: when a new grocery partner is connected, nothing is known about what a customer buys there, but the customer's purchases in other stores are known.

Solution in brief

Put all of a user's events from every service into one time-ordered sequence. Encode each event type with its own learnable encoder, aggregate the sequence with a transformer into one user embedding, and train a task head on top (retrieval, ranking, classification or regression). The open-source Perseus framework describes this whole pipeline in a configuration file.

Questions this case answers
  • How to personalize a new product that has no interaction history by reusing a user's events from other products with different item catalogs and event schemas
  • How to build one reusable user representation from heterogeneous event streams so that several prediction tasks share the same data pipeline
  • How to personalize a newly launched service from a user's behavior in other services of the same ecosystem?
  • How to build one user embedding from event histories whose schemas differ (purchases, listens, searches, likes)?

Tools and methods

  • Perseus — open-source framework that turns heterogeneous event histories into a user embedding and trains task heads
  • SASRec — the sequential transformer recommender the idea started from
  • Event Hub — store that gathers all event domains in one place
  • Text embeddings of items — make the same product look alike across stores
  • Negative sampling — full-catalog cross entropy, random uniform or in-batch negatives for retrieval training
Continue reading — it's free

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