The interview problem
A team wants to prioritize costly dataset cleanup. Design a data-valuation experiment that estimates contribution to a chosen validation utility without treating one score as intrinsic truth.
Original practice, not a reported company interview. All scenarios and worked numbers are illustrative. Interview date: not applicable. Sources retrieved September 30, 2026.
1. Scope and assumptions
Define the learner, training randomness, validation population and utility before assigning value. A record's contribution depends on other records and the task; it is not a universal price or ownership judgment.
2. Worked approach
fixed utility + data groups → sampled orderings → marginal retraining value → uncertainty → cleanup trial
Start with group-level ablations and label audits. For a Shapley-style estimate, sample data orderings, add records or groups along each ordering, retrain or use a validated approximation, and record marginal utility. Average contributions with uncertainty from order sampling and training randomness.
Keep a final untouched test set. Use data values to propose cleanup candidates, then evaluate the resulting dataset change independently. Protect rare valid examples from being removed solely because they reduce an aggregate metric on an unrepresentative validation set.
3. Calculate the example
With two groups A and B, let utility v(empty)=0, v(A)=0.6, v(B)=0.4 and v(A,B)=0.7. A's contribution is half of 0.6 plus half of 0.7−0.4, giving 0.45. B's is half of 0.4 plus half of 0.7−0.6, giving 0.25. They sum to 0.7. Leave-one-group-out drops are 0.3 and 0.1, which sum to 0.4 and answer a different question.
4. Failure cases and trade-offs
Approximate retraining can change the valuation being estimated. A noisy validation set produces unstable rankings. Data leakage may give a contaminated group artificially high value. Removing all individually low-valued records at once can remove complementary information.
Exact subset evaluation is expensive; group valuation and sampled permutations reduce cost but lose granularity or add variance. Simple ablations may be enough for a cleanup decision. Spend compute only when the valuation changes a concrete data action.
5. Validate the result
Verify efficiency on tiny exact examples, repeat seeds and inspect ranking stability. Evaluate proposed removals on a held-out target population and rare slices. Report compute cost and approximation limits alongside values.
6. Interview follow-ups and self-review
How does changing the validation population change values? Can duplicated records share contribution?
Reward task-relative utility, correct marginal arithmetic, uncertainty and validation after cleanup.
Sources and related practice
Technical reference: arxiv.org — Data Shapley primary research; two-group utility example is original.
Exact publication/update date not established in this review. Retrieved September 30, 2026. This reference supports the named technical concept; the proposed workflow and examples are original, not a documented vendor implementation or interview report.
Continue with Design an active-learning annotation loop; Design training-data provenance and deletion.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.