Problem
Customers of a food delivery platform file false complaints to get refunds, and at scale these claims drain money. Fraud tactics keep changing, so a supervised model needs many labels, and labels come from manual review. At Swiggy only 0.15% of about 6M refund claims are labeled. DevNet, a semi-supervised anomaly model, treats the unlabeled rest as normal, yet it holds fraud (about 20% in the authors' experiment). This contamination blurs the normal profile the model learns.
Example from the article: a customer complains about the food, and reviewers label the claim 0 if genuine or 1 if fraud or abuse is found.
Solution in brief
Keep DevNet, but weight the loss of each unlabeled claim by its similarity to labeled claims. A KNN model fitted on the labeled data assigns the claim to the fraud or non-fraud cluster, and its average distance to that cluster becomes a weight between 0 and 1. At fixed precision this gave about 6% more recall and 1.3% more block rate than plain DevNet.
Questions this case answers
- How to train a fraud classifier when manual labels cover well under 1% of the data and the unlabeled data holds a large share of fraud
- How to weight unlabeled samples in a loss by their similarity to a small labeled set so that contamination hurts training less
- How to detect fraudulent refund claims when only a tiny share of the data is labeled?
- How to train a semi-supervised anomaly model when the unlabeled data is heavily contaminated with fraud?
Tools and methods
- DevNet (deviation network) — semi-supervised anomaly scorer trained with a deviation loss on a few labeled anomalies.
- K-nearest neighbors (KNN) — assigns each unlabeled claim to a cluster and gives its distance to it.
- Variational scaling factor — per-sample weight in the DevNet loss, built from that distance.
- Recall and block rate at fixed precision — the evaluation metrics.
Google or a one-time email code. No password.