ARTEM(L): Automating Model Retraining and Redeployment at Alfa-Bank

Nastya Bondareva25 Oct 2024

Problem

Alfa-Bank's marketing propensity models decay in production: features, the target and data quality drift, and models lose up to tens of percent in accuracy per year. Manual retraining needs expert time, code review, functional and load testing and a separate deployment. It took up to 10% of data scientists' time in 2023, and the growing portfolio would push it to 25–35% in 2024.

Example from the article: a campaign model with precision at the top 10,000 clients fell from 69% to 34% during 2023. With 10,000 calls a month at 400 rubles per call and 800 rubles per sale, the campaign went from +1,520,000 to -1,280,000 rubles a month. Break-even precision is 50%.

Solution in brief

A Python library (ARTEML) drives training, inference, monitoring and model comparison from one YAML config. An MLOps pipeline runs monitoring on a schedule. A failed check triggers retraining, a quality gate compares the new model with the production one, and a better model is promoted automatically.

Questions this case answers
  • How to detect degradation of a deployed predictive model and replace it automatically with a better retrained version, with no manual review per update
  • How to keep propensity models accurate in production without manual retraining
  • How to decide automatically when a deployed model needs retraining
  • How to promote a retrained model to production without a second round of review and testing

Tools and methods

  • ARTEML — in-house config-driven library for training, inference, monitoring and quality-gate steps
  • AutoGluon — AutoML core that ensembles CatBoost, LightGBM, XGBoost, random forest and linear models
  • MLflow — experiment tracking and model registry; the production version is read from it
  • Apache Airflow — DAGs for monitoring and inference on a schedule
  • PSI — stability of features, score and target between periods
Continue reading — it's free

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