How to use the Perseus framework to solve tasks

Anna Nikiforova11 Sep 2026

Problem

A bank ecosystem has many services (payments, offers, retail, marketplace), each logging different events, and one client may use several of them. The tasks on top of this history differ: recommendations, ranking, a yes/no prediction, a spend forecast. The authors present Perseus as a way to avoid rewriting code from scratch when a feature, a source of events or the sequence backbone changes.

Example from the article: in the T-ECD dataset (Marketplace domain, small version) the team predicts which products a user clicks on the next day. It adds Retail orders and Offers events to the click history and swaps the sequence backbone.

Solution in brief

Perseus keeps all events in one Event Hub and builds a client history for every training sample, a (client_id, timestamp) pair called a basis object. A YAML config picks events, features, encoders, backbone and task head. Adding features, events from neighbouring services or a new backbone is a config edit and a few commands, not new code.

Questions this case answers
  • How to build user-level models of several task types on top of heterogeneous event sequences from many services with one config-driven pipeline
  • How to bring events with different schemas from neighbouring domains into one user history so that a target-task model improves
  • How to train candidate generation, ranking, classification and regression models on one user event history without writing separate pipelines?
  • How to add features, events from neighbouring services and a different sequence backbone to a recommender by editing a config?

Tools and methods

  • Perseus — open-source framework: Event Hub, encoders, backbone, task heads, train and inference commands
  • HSTU / ModernBERT — interchangeable history backbones (also bert, ligr, danet, mamba)
  • Polars — data preparation for events and basis files
  • ClearML — optional training progress tracking
  • Popularity baseline — top items by training clicks for retrieval and ranking
Continue reading — it's free

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