Running Through the Showcases of KION. How Content Gets onto the App Showcases

Aleksey Zhiryakov28 Dec 2023

Problem

KION, the MTS online cinema, shows each user a home screen made of shelves of titles. ML models rank shelves and titles by probability, but the product also needs guarantees: no content above the viewer's age limit, no empty shelves after a license expires, and a working screen when the ML service is down. New titles have no viewing statistics, so models rarely promote them, while editors want them shown first.

Example from the article: a rights holder allows a title only on large screens, so a shelf on small screens drops below its minimum length and is removed.

Solution in brief

KION splits the request path into a gateway, a showcase service called Blender that applies more than 50 business rules, and ML services that return personal shelves. ML proposes, the rules service decides. Editors can boost new titles, but the boost switches off per request when the title's CTR falls too far below the visible titles. Every ML change goes through an A/B test.

Questions this case answers
  • How to compose a personalized content feed from several ML sources so that hard business and legal rules are always enforced and a safe default is served when ML fails
  • How to give new items with no interaction history guaranteed exposure in a personalized feed while switching the promotion off when it does not match the user
  • How to serve a personalized home screen from ML models while still guaranteeing business and legal rules?
  • How to promote new titles that have no viewing statistics inside a personalized feed without hurting relevance?

Tools and methods

  • Blender — composes shelves and enforces business rules
  • CatBoost — ranks banner titles from viewing statistics
  • DSSM — finds similar movies for "Watch also"
  • A/B test — gates every ML change, with a playoff of candidates
  • FastAPI — the showcase service framework
Continue reading — it's free

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