Design Real-Time Fraud Scoring With Delayed Chargeback Labels
Last updated: November 29, 2026
Quick Overview
Design an ML system that scores every payment for fraud risk within a tight latency budget during authorisation, trained on labels that mostly arrive as chargebacks weeks or months after the transaction.
Adyen
November 29, 20260
0
0 solved
Design an ML system that scores every payment for fraud risk within a tight latency budget during authorisation, trained on labels that mostly arrive as chargebacks weeks or months after the transaction.
Adyen's risk product scores payments across its whole merchant network, which lets it learn from shopper signals seen at many merchants. Interviewers dig into label delay and selection bias from blocked payments, online feature computation, latency, and how a model is rolled out without hurting conversion.
What the Interviewer Expects
- Frame the objective in money terms: fraud losses versus blocked good revenue
- Handle delayed labels with maturity windows and proxy labels
- Address selection bias from transactions the current system blocks
- Design online features such as velocity counts with point-in-time correctness
- Meet a latency budget with a fallback when the model times out
- Roll out with shadow scoring and holdout traffic
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you estimate the fraud rate of payments you blocked and therefore never observed?
- How do you keep training features identical to what the model saw at serving time?
- A merchant complains that good customers are being refused. How do you investigate?
- How would you adapt quickly to a new card-testing attack that started an hour ago?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Score each authorisation in under about 30 ms at p99, at thousands of requests per second. Output a risk score that merchant-configurable rules turn into accept, challenge with 3D Secure, or refuse. O...
High-Level Design
Online path: the payment service calls the scoring service with the payment context. The scoring service fetches features from a low-latency store (shopper, card token, device, email, IP velocity and ...