The interview problem

Practice prompt

A support-intent classifier has 20,000 labeled real tickets. A generator can produce 200,000 additional labeled examples cheaply. Design an evaluation and release process that determines whether the synthetic data helps real users, including rare intents, without contaminating the test set or mistaking realism for utility.

Original ML-design practice, not a reported company interview. Counts, costs and results are hypothetical. NIST primary evaluation references retrieved September 27, 2026; exact publication dates not established. Interview date: not applicable.

1. Define the intended benefit

Choose a measurable objective: improve recall on rare support intents while preserving common-intent accuracy and calibration. Define label semantics, eligible languages and operational cost of misrouting. More training rows are an input, not the success criterion. A generator that produces fluent but mislabeled text can make the classifier worse.

Separate three questions: does the data resemble useful real examples, does training on it improve the target task, and can its release expose source information? NIST's synthetic-data evaluation resources treat utility and disclosure risk separately. Passing a similarity check does not answer all three questions. This exercise concerns support text; tabular-data tools are methodological references, not automatic validators for this task.

2. Preserve independent evidence

real tickets → entity/time split → training seeds → generator
                    ↓                              ↓
       locked real validation/test        label checks + deduplication
                                                   ↓
                          versioned synthetic training candidates
                                                   ↓
                           ablation training → real-data evaluation

Split the original real data before constructing generation prompts, exemplars or retrieval context. Keep tickets from the same customer conversation or duplicated incident together. Allocate, for example, 14,000 training, 3,000 validation and 3,000 final test cases, provided each partition has sufficient coverage. Do not generate paraphrases from final-test examples and then place them in training.

Record seed IDs, generator version, prompt template, label ontology, sampling settings and filtering rules for each candidate. Restrict generator access to approved training seeds. Deduplicate both exact and near matches across partitions. Semantic similarity is useful for finding suspicious overlap but is not proof of contamination or independence by itself.

Choose mixture ratios and filters using real validation data. After selection, use the untouched real test set once for the final decision. If the generator's pretraining provenance is unknown, state that limitation and collect fresh, independently labeled cases. Synthetic tests generated by the same system can be useful diagnostics but cannot replace real-user evaluation.

3. Compare alternatives that isolate the value

Train a real-only baseline, real-only with additional training steps or resampling, synthetic-only as a diagnostic, and mixed real/synthetic candidates. Keep architecture, preprocessing and evaluation fixed. Report both a matched-compute comparison and any operationally relevant larger-budget comparison; otherwise extra optimization can be mistaken for a data-quality improvement.

Try several synthetic proportions rather than assuming all 200,000 examples should dominate training. At 14,000 real plus 200,000 synthetic rows, uniform row sampling makes synthetic data about 93.46% of sampled examples. A nominal “augmentation” can effectively become synthetic training. Explicit mixture sampling can retain a chosen real-data fraction without duplicating files.

Audit generated labels with independent reviewers and targeted checks for negation, ambiguous requests and multiple intents. A classifier or generator grading its own outputs can share the same blind spots. Track why filters reject examples; keeping only easy, obviously labeled text can eliminate the difficult distribution the classifier must handle.

4. Show how a larger dataset can lose

Consider a 3,000-case real test set with 2,700 common-intent and 300 rare-intent cases. The real-only baseline gets 2,565 common cases and 180 rare cases correct: 95% and 60%, respectively, for 2,745/3,000 = 91.5% overall.

A mixed candidate gets 2,511 common and 225 rare cases correct: 93% and 75%. Overall accuracy is 2,736/3,000 = 91.2%, a drop of 0.3 percentage points despite a 15-point rare-intent improvement. If the release gate permits at most one point of common-intent degradation, this candidate fails because the common slice dropped two points.

Suppose a wrong common-intent route costs one unit and a wrong rare-intent route costs ten units. Baseline loss is 135 + 120 × 10 = 1,335 units. Candidate loss is 189 + 75 × 10 = 939 units, about 29.66% lower. That may motivate a revised product trade-off, but it does not erase a preregistered quality constraint. Owners must decide which objective and constraints reflect the actual workflow before final testing. If they revise the gate after seeing these results, treat this test as development evidence and obtain a new independent acceptance set.

The sample mix matters. These calculations describe this test distribution and assumed costs. Use population weights if the test deliberately oversamples rare intents. Report paired uncertainty and results across training seeds; one favorable run is weak evidence. These aggregate counts alone are insufficient to calculate a paired confidence interval because they omit which individual predictions changed.

5. Detect shortcuts and missing coverage

Inspect whether labels correlate with generated artifacts: every refund example might start with the same phrase, or only one intent might contain a particular punctuation pattern. Build counterexamples that preserve meaning while changing those cues. A real-versus-synthetic discriminator can reveal differences, but high distinguishability does not by itself prove poor downstream utility, and low distinguishability does not prove usefulness.

Break results down by intent, language, ticket length, ambiguity and source time. Test combinations absent from simple templates, such as a polite cancellation with a billing complaint. Maintain an explicit “uncertain or multiple intents” treatment rather than forcing every generated ticket into a clean single label.

Deduplicate by semantic family as well as exact string. Two hundred thousand paraphrases of a few templates are not two hundred thousand independent observations. Keep related synthetic variants together when running diagnostic splits; never use a random split of those variants as the main claim of generalization.

6. Evaluate disclosure and operating cost separately

Synthetic output may reproduce source phrases, identifiers or unusual combinations. Scan for sensitive fields, inspect nearest source matches and perform appropriate disclosure testing against the actual release threat model. Removing exact matches is not a general privacy guarantee. If a formal privacy guarantee is required, evaluate the generation mechanism and its stated assumptions separately from these empirical checks.

At a hypothetical generation cost of $0.002 per candidate, 200,000 candidates cost $400. If filtering retains 40%, 80,000 remain and generation cost is $0.005 per retained row, excluding evaluation and training. Independently auditing 1,000 examples at two minutes each takes 33 hours 20 minutes. “Cheap generation” does not mean cheap trustworthy data.

Store approved synthetic versions with lineage and reversible inclusion in training manifests. If a generator batch is later found faulty, identify affected model runs and roll back or retrain. Monitor post-release misroutes by slice; synthetic coverage measured offline can still fail under new customer language or a changed label taxonomy.

7. Follow-ups and self-review

Follow-ups: Does more diversity always help? Off-task variation can consume capacity or add label noise. Can synthetic-only test accuracy prove real-world benefit? No. Should all generated examples be treated equally? Their label reliability and coverage differ. Is no exact source match proof of privacy? No. Can a lower overall accuracy still reduce business loss? The worked cost example shows how, subject to explicitly accepted constraints.

Score 0–2 each for independent real evaluation, matched ablations, slice/cost arithmetic, artifact detection and reproducible lineage. A strong answer can reject a large synthetic batch while explaining exactly what evidence would justify a smaller targeted one.

Sources and next steps

The support-text experiment, architecture and calculations are original. Compare distillation objectives for learning directly from a teacher's outputs.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.