Are All Wolves Scary: AUF or How to Tame Uplift?

Viktor Melnikov28 Mar 2025

Problem

Alfa-Bank data scientists need uplift models to decide which customers should get a push, SMS or discount, so that the campaign adds sales that would not happen anyway. Existing libraries (scikit-uplift, CausalML, EconML, Pylift) supply building blocks, but the data scientist assembles the pipeline and must avoid bugs. The authors say one uplift model takes 1-2 weeks, and each new business hypothesis stretches that.

Example from the article: a client interested in the Alfa-Smart subscription has not connected it, so the bank sends an SMS or push describing the benefits and wants to know whom it tips over.

Solution in brief

AUF (Automatic Uplift Framework) is an open-source Python library. One UpliftPipeline class checks the data, removes treatment leaks, ranks features, trains five model families tuned with Optuna, picks the best by a bootstrapped metric and prints a quality report. The authors say this cuts one iteration from a couple of weeks to a few hours.

Questions this case answers
  • How to build and select an uplift model for targeting an intervention when every new business hypothesis restarts weeks of manual model assembly
  • How to verify that treatment assignment in historical campaign data was random enough to estimate a clean effect
  • How to build an uplift model in hours instead of weeks without wiring together several libraries by hand
  • How to check that treatment assignment in campaign data was random and find features that leak the treatment

Tools and methods

  • AUF UpliftPipeline — one object for loading data, feature selection, training, model choice and reports
  • S-, T-, X-learner, Uplift Tree, Uplift Random Forest — the model families AUF trains
  • CatBoost — classifier that tries to predict treatment, to find leaks
  • Optuna — tunes hyperparameters per model class and feature set
  • Qini curve and uplift by percentile — offline quality of uplift models
  • MLflow — optional logging of all pipeline results
Continue reading — it's free

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