Problem
Sber runs many pilots in its branch network: a new staff role, opening or moving an office, new offers to customers. Few branches take part, branches sit in very different regions, and a clean split into independent groups cannot be made beforehand. Branch-level numbers are too few for a significance test, so the team moves the evaluation to the customer level and picks a control group afterwards. Matching must hold the customer profile and the city fixed, otherwise the group difference cannot be read as the pilot effect.
Example from the article: to judge a changed process in a branch, compare operating income of matched customers of pilot and non-pilot branches, not only the totals of the branches.
Solution in brief
Turn every customer into an embedding built from profile features and transactions, then find two or three nearest customers from the same city with an approximate nearest-neighbor index. The matches can be precomputed for the whole customer base as a data mart, so a pilot is evaluated with a few queries. The team compares Spark brute force, FAISS and Annoy and checks match quality on pre-pilot behavior.
Questions this case answers
- How to estimate the effect of a change rolled out to a few sites when a randomized split is impossible and the control group must be matched afterwards
- How to match every treated unit to similar control units at the scale of millions of records within a reasonable compute time
- How to evaluate a pilot run in a few branches when randomized A/B groups cannot be built in advance?
- How to pick a comparable control group of customers for each customer in a target group?
Tools and methods
- Customer embeddings (PyTorch-Lifestream) — vector form of profile and transactions.
- Distance measures — Euclidean, Manhattan, cosine, Hamming, Mahalanobis.
- FAISS — k-means partition of the space, GPU support.
- Annoy — binary tree of plane splits.
- Apache Spark — cross-join brute force as the baseline.
Google or a one-time email code. No password.