AutoML in Practice: How to Do Automation, Not Its Illusion

Alexey Ryazantsev3 Apr 2024

Problem

Alfa-Bank runs hundreds of ML models on thousands of features. Data scientists keep rewriting glue code in notebooks around open-source AutoML libraries, which only wrap the model-fitting call. Those libraries also lack some models, are hard to interpret, and build ensembles too complex for production. Each project ends up with a bulky notebook, and trust in the tools stays low.

Example from the article: for a typical task the service collects a table of several million clients and more than 2000 features from 15-20 sources, which then has to be filtered and modeled.

Solution in brief

The team built AutoML as a service rather than a library. The user uploads a client sample, and the service collects features from the Feature Store, filters them, tunes CatBoost, LightGBM and XGBoost with Optuna starting from stored expert configurations, blends the models, reports diagnostics and deploys with one click. Scope is limited to tabular data and the common task types.

Questions this case answers
  • How to automate the repetitive part of building tabular prediction models so that a specialist only checks the result and not the plumbing
  • How to cut a wide automatically assembled feature table down to a trainable subset without losing model quality
  • How to turn routine tabular model building (churn, propensity, scoring) into a self-service service instead of notebooks full of glue code?
  • How to shrink thousands of Feature Store columns to a trainable set without hurting model quality?

Tools and methods

  • Feature Store — the single source of feature marts
  • Apache Spark — data collection and first-pass feature filtering
  • Optuna — hyperparameter search seeded with expert configurations, and score blending
  • CatBoost, LightGBM, XGBoost — the base boosting models
  • SHAP — feature importance for iterative selection and for reports
  • Recursive feature elimination — reduction to a user-defined feature count
  • Population Stability Index (PSI) — drops features unstable over time
Continue reading — it's free

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