The interview problem
Design recommendations for a marketplace where new sellers have useful inventory but no transaction history. Established sellers dominate behavioral ranking. Give eligible newcomers a bounded opportunity to earn evidence without sacrificing buyer trust, and explain how you would measure the effect on the whole marketplace.
Original ML-design practice, not a reported company interview. All quantities below are hypothetical. Technical sources retrieved September 27, 2026; interview date not applicable.
1. Define opportunity and successful trade
Assume physical goods, buyer browsing sessions and a finite supply of listings. The primary outcome is completed, satisfactory transactions per eligible buyer session after a declared return window. Track cancellations, refunds, delivery failures and buyer retention separately. Clicks are a fast diagnostic, not the final objective.
Distinguish a new seller, a new listing from an established seller and a returning seller with little relevant category history. They have different evidence. Define newcomer eligibility using an auditable account and listing policy, not an embedding score. Recreating a listing must not reset its exposure allowance.
Seller-side metrics include the fraction of eligible newcomers receiving a meaningful opportunity, time to first qualified exposure, distribution of exposures and retained active sellers. Report denominators, category and availability. Equal raw impressions across irrelevant categories is neither useful buyer matching nor a defensible opportunity measure.
2. Put eligibility before exploration
catalog + inventory + seller checks → versioned eligible listings
buyer context → content retrieval + established-item retrieval
↓
relevance and fulfillment filters
↓
baseline ranker + bounded exploration slot
↓
final availability check → response
↓
assignment / rendered exposure / mature outcome logs
↓
calibration, exposure accounting and policy evaluationUse text, image, category, price, shipping region and declared attributes to retrieve new listings before they have clicks. Start with a pooled model trained across sellers, with explicit missing-history indicators. Use category-level priors for uncertain outcomes; zero orders without qualified exposure is not evidence of low demand. Zero orders after substantial comparable exposure can be informative, but still does not prove demand is exactly zero.
Keep fraud, prohibited-item and operational eligibility checks outside the reward optimizer. A seller's uncertainty is not permission to bypass verification. At serving time, enforce region, stock and delivery constraints again. An unavailable selected listing produces a logged fallback, not a phantom impression.
Store stable seller and listing lineage, feature timestamps, candidate-set version, policy version, randomization decision and assignment probability. Distinguish returned recommendations from actually rendered impressions and attributed transactions. Repeated event delivery must not consume an allowance twice.
3. Work through uncertainty without granting free trust
For a deliberately simplified conversion model, use a Beta(2,98) prior for a comparable eligible listing. Its prior mean is 2%. After 100 comparable impressions and four conversions, the posterior is Beta(6,194), with mean 3%. A new listing has uncertain conversion potential; the prior does not certify its fulfillment quality.
This conjugate calculation assumes Bernoulli outcomes with a common probability and suitable observation units. Repeated buyers, position effects, changing price and correlated sessions break a literal independent-trial interpretation. The production model should condition on context and validate calibration; it must not use the toy posterior as a universal ranking formula.
A simple launch policy reserves a small, fixed position for randomized selection among relevant, eligible newcomers. Contextual sampling or an uncertainty bonus can follow once logging and guardrails work. Uncertainty bonuses require caps: a listing should not collect endless exposure merely because feedback is delayed or missing.
4. Translate exploration into a feasible budget
Suppose the site has 1,000,000 eligible page requests per day. Ten percent receive one newcomer slot, yielding 100,000 assigned opportunities. With 20,000 eligible newcomers, this is only five opportunities per newcomer per day under ideal equal allocation. Promising every newcomer 100 opportunities requires two million slots, twenty times this budget, even before accounting for mismatched demand.
Allocate within category and shipping-market pools rather than forcing unsuitable listings into pages. Track qualified rendered exposure, not merely assignment, when describing seller opportunity. If rendering probability differs, five assignments need not mean five impressions. Sellers unavailable all day should not remain in an active-opportunity denominator.
If mature transaction probability for a displaced slot is 3% and an exploration slot is 2%, replacing 100,000 otherwise equivalent slots has an illustrative expected immediate cost of 1,000 transactions. This is a counterfactual assumption, not a measured loss: neighboring items, repeated buyers and future seller participation may change the total effect. Run a bounded experiment instead of treating that multiplication as a business forecast.
At 2% conversion, five independent impressions have probability 0.98⁵≈90.39% of no conversion. A newcomer with no order after that exposure should not be labeled a failed seller. Define progression using evidence volume, uncertainty, relevance and operational quality; distinguish lack of demand from lack of opportunity.
5. Make offline policy evaluation identifiable
Historical outcomes exist only for shown alternatives. A deterministic incumbent policy cannot reveal how a never-shown newcomer would perform. Randomized logging provides overlap within its eligible action set; it does not cover listings that were excluded from retrieval.
For a fixed single-slot policy, an inverse-propensity estimate averages reward × target selection probability / logging selection probability over logged decisions. The denominator must be the actual probability of the selected action given the logged context and candidate set. Include the exploration gate and every randomized selection stage; a score is not a probability. If the same listing can be selected through multiple paths, sum the probabilities of those mutually exclusive paths. If evaluation is explicitly conditional on entering the exploration cohort, use that conditional decision population and probability consistently instead of mixing it with all requests.
For example, in 1,000 logged decisions the policy chooses listing A with probability 0.1. Suppose A appears 100 times and produces four mature successes. A target that always chooses A has estimated reward (4/0.1)/1,000=0.04. In this particular sample the estimate equals the observed 4/100 conversion rate for A because its realized assignment count happens to equal its expectation. That equality does not hold for arbitrary realized counts; the all-decisions success rate is a different quantity. This example assumes A was eligible at every decision, comparable contexts, correct randomization and fully observed outcomes.
A tiny propensity creates large weights and variance. Report uncertainty and weight diagnostics; clipping changes the estimand or introduces bias and should be disclosed. A target outside logging support is not evaluable by simply assigning a small denominator. Replay research motivates evaluation with randomized logs, but its guarantees do not automatically extend to inventory depletion or long-term seller responses.
For multi-item slates, marginal item probabilities alone generally do not identify the value of a different slate when items interact. Begin with one controlled exploration position and a stable surrounding policy. Log fallbacks explicitly; removing failed assignments after randomization can introduce selection bias. Use mature assignment-level outcomes for an intention-to-treat experiment.
6. Evaluate a two-sided marketplace
Keep a randomized buyer-side holdout for immediate experience, but recognize interference: treatment can consume stock, change seller behavior and reduce choices for control buyers. An ordinary user experiment estimates effects under that mixed-market allocation, not necessarily the effect of a full launch.
Where feasible, randomize sufficiently separated category-region markets or use carefully designed market-level time blocks. Neither is automatically valid: buyers cross regions, sellers list in multiple categories, carryover persists and inventory evolves. Define the exposure mapping and spillover risk, assess the number of independent clusters and avoid treating every impression as an independent experimental unit.
Measure mature transactions, returns, buyer repeat use, seller opportunity and concentration together. Declare minimum buyer-quality thresholds and a tolerated exploration budget before inspecting results. Segment by truly new sellers and new listings from established sellers; an aggregate gain can come entirely from the latter.
Seller retention takes longer than click feedback. Use a fixed observation horizon and report incomplete cohorts separately. Do not label a recent order successful merely because its return window remains open. Separate short-run launch evidence from a claim about long-run marketplace equilibrium.
7. Fail safely and prevent reset gaming
If feature serving fails, use relevant, eligible content retrieval with a conservative static policy. If eligibility or inventory freshness cannot be established, exclude the affected item. If propensity logging fails, suspend experimental allocation or flag the interval as unusable for off-policy evaluation; inventing probabilities afterward is not recovery.
Bound per-seller and per-listing allocation with durable accounting. Regional workers may consume leased budget slices whose sum respects a global limit; delayed impression acknowledgments require a policy for reserved versus consumed allowance. Reclaiming a reservation before a delayed display arrives can double spend it. Prefer a small conservative loss of opportunity over silently exceeding a promised hard budget.
Link duplicate and relisted inventory to exposure history, with an appeal path for mistaken linkage. Monitor sellers creating many nearly identical listings to capture exploration. Avoid making the anti-abuse rule itself a permanent penalty for legitimate catalog growth.
At a 2,000 request/s peak and 10% exploration rate, expect 200 exploration decisions/s under uniform assignment. A 40 ms mean exploration computation implies eight concurrent computations on average by Little's law; this is not a thread count or a tail-capacity guarantee. Keep policy features precomputed and enforce an end-to-end serving deadline with a logged baseline fallback.
8. Explain the choices and extensions
Fixed exploration is easier to audit and evaluate but spends some traffic on weak candidates. Adaptive exploration can use evidence more efficiently but complicates probabilities, delayed outcomes and policy drift. Pooled priors help sparse sellers yet can suppress unusual products if the comparison group is wrong. Uniform opportunity is interpretable but ignores available buyer demand.
Follow-ups: How would a one-of-a-kind inventory marketplace change the experiment? What if conversion feedback arrives thirty days later? How do you distinguish seller quality from preferential position? How does a new shipping region affect priors? What changes if the exploration slot competes with paid placement? Which rollback signals operate before mature outcomes arrive?
9. Self-review rubric
- Define separate buyer outcomes, seller opportunity and mature outcome windows.
- Retrieve new listings using content without equating missing history with failure.
- Enforce relevance, inventory and trust constraints before exploration.
- Calculate exposure feasibility and explain uncertainty after sparse observations.
- Log real assignment probabilities, support boundaries and fallback behavior.
- Explain why marketplace interference limits a simple buyer A/B test.
- Handle delayed feedback, duplicate events, listing resets and budget failures.
A weak answer says “use a contextual bandit” and optimizes clicks. A strong answer defines the action, evidence, constraints and counterfactual being estimated, then shows how the rollout remains bounded when those assumptions fail.
Sources and related practice
Li, Chu, Langford and Wang: Unbiased Offline Evaluation of Contextual-bandit-based News Article Recommendation Algorithms, submitted March 31, 2010; revised March 1, 2012. Used for the partial-feedback problem and randomized-log evaluation background. Marketplace design and examples here are original, not claims made by that paper.
Continue with selection bias, importance-sampling variance and recommendation diversity.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.