KatInterview

Designing a Credit Offer Recommendation Engine

Machine LearningModel answer
HardModel answerMachine Learningrecommendation systemsfeature engineeringdelayed feedback

Last updated

Design an end-to-end ML system that serves personalized financial product offers to millions of users, handling sparse delayed conversion signals and strict latency requirements.

Credit Offer Recommendation Engine

A consumer finance platform wants to surface relevant credit products — cards, personal loans, balance-transfer offers — to the right users at the right moment. Your task is to design the ML system that powers these recommendations end-to-end.

Context and constraints

  • Traffic: 50 million daily active users, response required in under 200ms (p99).
  • Catalog: Several thousand active offers from multiple issuing partners.
  • Available data: User profiles, periodic credit score snapshots, historical application records, and interaction logs (impressions, clicks, dismissals, application events).
  • Signal problem: Approval or funding events — the most valuable conversions — arrive days to weeks after the original recommendation, and they are rare relative to impressions.

What to cover

  1. Objective framing: What should the system actually optimize for, and why is raw click-through rate the wrong target?
  2. Candidate generation and ranking pipeline: How do you narrow thousands of offers to a ranked shortlist within the latency budget?
  3. Features: Which signals are most predictive of credit product propensity? How do you keep real-time and batch features consistent between training and serving?
  4. Delayed and sparse labels: How do you train reliably when the most meaningful conversion signal lags by weeks and positive examples are scarce?
  5. High-level architecture: Describe the key components — retrieval index, feature store, ranking service, logging pipeline — and how data flows through them.
  6. Offline and online evaluation: How do you measure model quality before and after deployment?

Cover trade-offs, realistic scale numbers, and the most common failure modes at each stage.

Hints

Hint 1

Before designing anything, think about what a single recommendation is actually worth. The answer changes the loss function you use and the features you prioritize.

Hint 2

A two-stage pipeline (cheap retrieval followed by expensive ranking) is standard, but the latency budget tells you exactly how much time each stage can spend. Work backwards from 200ms to allocate that budget.

Hint 3

Delayed conversions and sample-selection bias are two distinct problems that require different fixes. Make sure you can name both and explain why a naive approach fails for each.