The interview problem
Design an annotation loop for a support-ticket classifier. You have one million unlabeled tickets and a weekly budget of 10,000 annotation judgments. Choose which examples to label, improve the model over successive rounds and demonstrate whether active selection beats random sampling at the same total cost.
Original ML design practice, not a reported interview. Counts and policies are hypothetical. Foundational technical research retrieved September 27, 2026.
1. Optimize learning value under a real budget
Clarify the taxonomy, deployment population and error costs. A useful ticket classifier may prioritize recall for urgent categories while respecting a routing-error budget. Overall accuracy alone can hide failure on rare but important categories. Begin with a small representative labeled seed and a simple baseline, rather than assuming an uncertain initial model knows where all useful examples are.
Count judgments, adjudication time and model-scoring compute separately. Ten thousand judgments do not necessarily produce ten thousand new training examples. Hard cases can consume several reviewers and remain ambiguous. An acquisition rule should consider labelability and cost as well as estimated information gain.
2. Build a versioned collection loop
The architecture is eligible-data intake → deduplicated unlabeled pool → versioned model scoring → acquisition planner → annotation queue → quality checks → dataset manifest → training → independent evaluation. Store ticket version, source and permitted use, deduplication group, acquisition round, model version, score, sampling rule and raw label provenance.
Exclude evaluation examples and related duplicate groups from the acquisition pool. Freeze each round's selected IDs before dispatch. Use task IDs and idempotent submissions so queue retries do not create extra labels or consume the budget twice. Distinguish an unavailable task from a rejected annotation and preserve the reason.
Train only from a completed dataset manifest with a documented aggregation policy. Link the resulting model to that manifest and its hyperparameters. Late labels can enter a later round rather than changing the meaning of an already evaluated model version.
3. Compare uncertainty with useful information
For a binary classifier, predictive entropy is H(p) = −p log₂ p − (1−p) log₂(1−p). A ticket with predicted probability 0.5 has entropy one bit; one with probability 0.9 has about 0.469 bits. Entropy sampling therefore prioritizes the first. Small maximum-class probability or a narrow top-two margin offer other simple uncertainty rankings for multiclass tasks.
Uncertainty is not automatically reducible model ignorance. A ticket saying only “help” may remain ambiguous even with excellent training. A model ensemble can distinguish some disagreement between plausible models from consistently ambiguous predictions, but its members must represent meaningful uncertainty; several nearly identical models can confidently share a mistake.
Combine an uncertainty component with diversity and random exploration. Otherwise, thousands of near-identical borderline tickets can fill the batch while unfamiliar but confidently misclassified topics remain undiscovered. Cluster or deduplicate by content and customer context, cap redundant selections and audit a random sample for blind spots.
For this initial policy, allocate a mixture to uncertain examples, coverage gaps and random exploration, with proportions selected on development evidence. Log selection probabilities where the scheme supports them. Deterministic top-k selection has zero inclusion probability for many records, so it cannot support arbitrary unbiased population estimates through simple reweighting.
4. Work through the annotation budget
Reserve 2,000 of the 10,000 weekly judgments for a separately sampled monitoring set that stays out of training. Use 7,000 judgments to label 7,000 newly acquired training examples once. Use the remaining 1,000 judgments as second reviews of selected examples. This yields at most 7,000 unique newly labeled training records, some with a second judgment, not 8,000 or 10,000, and disagreements may need additional capacity.
Assume 45 seconds per judgment on average. Ten thousand judgments require 450,000 seconds, or 125 productive reviewer-hours. At 25 productive hours per person each week, five reviewer-equivalents are needed before administration and extra adjudication. If all 7,000 acquired examples average 90 seconds for their first judgment while monitoring and second reviews stay at 45 seconds, total effort rises to 212.5 hours: 7,000 × 90 plus 3,000 × 45 seconds. A fixed judgment count is not a fixed labor cost.
Scoring the million-ticket pool at 2,000 tickets/s takes 500 seconds for one model pass. Five full ensemble passes require 2,500 model-seconds at that rate, or about 41.67 minutes if run sequentially. Parallel execution may reduce elapsed time but not the total inference work. Cache versioned scores and refresh only when justified by a new model or changed data.
5. Treat disagreement as diagnostic evidence
Give reviewers a stable rubric, examples and an abstention path. Hide model predictions where they could anchor judgments. Distinguish genuine multi-intent tickets from annotation error; the taxonomy may need a multi-label representation or a clarification class. Do not force every item into an arbitrary single label to make the training pipeline happy.
Audit a random subset of easy-looking labels as well as disputed examples. Only reviewing uncertain cases can miss confidently wrong labels or systematic rubric misunderstandings. Track reviewer agreement by category and source, and use experts for high-cost classes. Preserve raw labels when aggregation or rubric versions change.
If the selected pool becomes dominated by out-of-domain spam, route those examples through a documented eligibility policy. Removing inconvenient examples after seeing their labels can change both the learning target and evaluation meaning, so record exclusions and keep monitoring the deployment distribution.
6. Prove value against the right baseline
Compare active selection with random selection using the same seed data, model-training procedure and total budget. Run repeated acquisition simulations on a fully labeled development pool where possible, revealing labels only when selected. Keep a final held-out test set untouched by acquisition-policy tuning. Offline simulations can miss production annotation delays and ambiguity, so validate the operational loop too.
Plot quality against cumulative labeling hours or dollars as well as unique labeled examples. A method that reaches the same quality with fewer examples may still cost more if those examples are much slower to label. Include scoring and retraining costs when they materially affect the decision.
Evaluate on representative held-out data and important slices. Accuracy on the actively selected hard examples is not deployment accuracy. Repeatedly viewing the monitoring set to choose models makes it development evidence; use fresh confirmation data for a final claim. Report variability across seeds and rounds instead of showcasing one favorable learning curve.
7. Decide when to stop or change strategy
Stop a round when the budget is exhausted, marginal improvement is too small relative to cost, or label quality prevents useful learning. If the model is confidently wrong on a new topic, increase exploration and update the coverage strategy. If uncertainty reflects irreducible ambiguity, improve the input workflow or label definition rather than repeatedly purchasing the same uncertain labels.
Distribution drift can make yesterday's informative pool irrelevant. Refresh source coverage and compare current monitoring slices with the acquisition pool. A failed model release should not automatically trigger indiscriminate relabeling; diagnose whether the cause is missing data, a serving bug or a changed business objective.
Foundation: explain why entropy sampling prefers p = 0.5. Senior: calculate the cost of slower annotations and preserve independent evaluation. Staff: detect a confidently wrong blind spot and redesign the acquisition policy.
Score 0–2 each for the learning objective, acquisition trade-offs, budget arithmetic, label reliability and fair evaluation. Continue with preference collection and selection bias.
Sources and next steps
- Deep Bayesian Active Learning with Image Data — primary research on uncertainty-based acquisition with deep models, first submitted March 8, 2017.
The ticket workflow, acquisition mixture and staffing calculations are original. This historical paper motivates techniques; its image-task results do not guarantee gains on support tickets or establish a recent interview attribution.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.