KatInterview

Design a Conversion-Optimized Product Ranking Engine

Machine LearningModel answer
HardModel answerMachine Learningrankingmulti-task-learningdelayed-feedback

Last updated

Design an end-to-end ML ranking system for a financial product marketplace that maximizes revenue while managing delayed labels, sparse conversions, and cold-start challenges.

Context

You're building the ranking layer for a marketplace that surfaces financial products — think loans, credit cards, deposit accounts — to users who visit the platform. The platform earns a commission when users complete certain actions: sometimes it's an approved application, sometimes a funded account, sometimes just a qualified click. These payouts vary by product and by funnel stage.

Your job is to design the full ML system that decides which products to show each user and in what order.

What to cover

Architecture. Walk through the end-to-end pipeline: how you collect and serve features, how you train and deploy models, and how a ranking request flows through the system at inference time. Include rough latency targets for each stage and explain how you stay within a 100ms p99 budget.

Funnel modeling. A user journey from seeing a product to completing a funded account passes through several intermediate steps. Explain how you model this chain of events, why naively training a single "conversion" model causes problems, and what architectural choices address those problems.

Delayed and sparse labels. Most impressions never convert. Among those that do, the final outcome may arrive weeks later. Describe at least two concrete techniques for training with incomplete labels and explain the trade-offs of each.

Ranking objective. Define the score you actually rank by. How do you combine predicted conversion probability with revenue? What terms would you add to protect user trust or account for the cost of a declined application? How do you set and tune the relative weights?

Cold start. A new product launches with zero historical data. A new user arrives with no on-platform history. Describe a different strategy for each case.

Monitoring. Once the system is live, what signals tell you something has drifted — either in model quality or in business outcomes? What would trigger a rollback versus a retrain?

Constraints and assumptions

  • 100k daily active users, each generating roughly 3 sessions.
  • Millions of rows of historical impression and event logs are available.
  • End-to-end ranking latency must be under 100ms at p99.
  • The final conversion event (e.g., funded account) arrives on average 7–30 days after the impression.
  • Expect an impression-to-funded rate around 0.3%.

What a strong answer looks like

A strong answer reasons from first principles, gives concrete numbers where useful (QPS, label volume, window lengths), names specific modeling approaches with their trade-offs, and anticipates failure modes. It does not just list buzzwords.

Hints

Hint 1

Start by estimating label volumes at each funnel stage from the given numbers. The gap between impression volume and funding volume drives almost every architectural decision downstream.

Hint 2

Think about why training a single model on funded-account labels introduces two distinct problems: one is about bias in which examples you see, the other is about freshness. Treat them separately.

Hint 3

The ranking score is a business policy, not just a model output. Sketch it as a formula and reason about what happens at the extremes — what does a product with high payout but low approval odds look like under different formulations?