Problem
Engagement in iGaming and subscription commerce follows a pattern: new users play often, plateau, then drift. Fixed points and uniform discounts react too late, and by the time a user churns, winning them back costs far more than keeping them would have.
The hard part is knowing when to step in, and by how much, without wasting budget on users who would have stayed anyway.
Approach
Instead of fixed tiers with static rewards, each reward is an action with an uncertain outcome. At every eligible session the system reads the user's context (spend history, session frequency, login recency and weekly active days) and picks a discount between 0 and 30% that maximises the chance they return within 48 hours.
The algorithm is LinUCB. It fits a linear model from user features to the value of each discount, and its upper confidence bound makes it explore uncertain options, especially for new users, while exploiting what already works. Over time it settles on a discount curve for each kind of user, without those profiles being defined up front.
Feedback loop
Inference runs on every eligible session. Model weights update continuously as outcomes arrive.
User state space
Each user sits on two axes: engagement (session frequency, daily logins and recency) and spend (lifetime value weighted towards recent activity). Their quadrant gives the bandit a starting point for the discount, which it then refines from their own history.
Quadrant boundaries shift as the model learns. Discount ranges are starting points, not caps.
Simulated results
Simulated on 10,000 synthetic users over 90 days, against a flat 10% discount for everyone.
Top-spend users averaged a 2.1% discount and high churn-risk users 18.6%. The engine put the spend where it mattered, keeping more users at a lower average cost.
