Uplift Modeling with Cost Optimization

Sean Smith10 Mar 2023

Problem

A brand wants customers to come back and can send ads or discounts of different sizes. A discount raises conversion but eats part of the margin, and showing any treatment costs something. Standard uplift models pick the treatment with the highest conditional average treatment effect (CATE) on conversion probability, so they ignore costs and can favor the most expensive discount. Which treatment, if any, should each customer get once costs are counted?

Example from the article: a simulated campaign with a control and two treatments, where treatment 1 costs 2.5 per conversion and treatment 2 costs 10 per conversion plus 0.02 per impression.

Solution in brief

Redefine the target as net value: expected transaction value minus treatment cost, so the effect is measured in money, not conversions. Either train the X-learner on this net-value effect, or keep a standard CATE model and add a post-model optimizer (the Counterfactual Value Estimator, CVE, from CausalML) that picks the highest-net-value treatment per customer.

Questions this case answers
  • How to assign each unit one of several costly interventions, or none, so that net value rather than response rate is maximized
  • How to compare treatment-assignment policies offline when each treatment has a different cost and the logged data covers only the treatment each unit actually received
  • How to choose which discount, if any, to send to each customer when treatments have different costs?
  • How to make an uplift model optimize profit instead of conversion probability?

Tools and methods

  • Net value CATE — treatment effect in money after conversion and impression costs.
  • X-learner — meta-learner whose pseudo-effects are redefined to use net value.
  • Counterfactual Value Estimator (CVE) — CausalML optimizer that picks the best treatment from three predictions.
  • LightGBM — conversion classifier and expected-value regressor feeding CVE.
  • Backtesting — repeated train-then-test on rolling date windows to judge a policy.
Continue reading — it's free

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