The interview problem

Practice prompt

A company translates equipment-support articles into five languages. A new model improves its average automated quality score, but reviewers report incorrect quantities, terminology and negation. Design an evaluation and release pipeline that decides whether the model is suitable for this domain.

Original ML-design practice, not a reported company interview. Numerical examples and release criteria are hypothetical. Primary research retrieved September 27, 2026; interview date not applicable.

1. Define fidelity before fluency

Translate the source meaning while preserving quantities, entity references, conditions and domain terminology. A fluent instruction that reverses “do not” is not an acceptable paraphrase. Define supported language pairs and directions, document types, formatting requirements and the treatment of ambiguous source text.

Separate meaning-critical errors, terminology errors, omissions, formatting failures and stylistic preferences. Agree severity definitions with bilingual domain reviewers before comparing models. Reference translations are useful examples, not the only valid wording. If the source is ambiguous or incorrect, flag it rather than rewarding a model for inventing a confident interpretation.

Evaluation should support a deployment decision for a specified domain and workload. A gain on general web sentences cannot establish suitability for maintenance instructions. Translation quality is also distinct from the technical correctness of the original article.

2. Version the entire evaluation path

source documents + approved glossary + language/domain slices
                              ↓
        baseline and candidate under identical source context
                              ↓
 automatic metrics + terminology/number/format diagnostics
                              ↓
        blinded bilingual review and critical-error audit
                              ↓
    per-slice release gates → staged rollout → sampled audits

Keep document identity, source revision, language pair, glossary revision, model version, decoding settings and segmentation policy. Use document-level context when pronouns or terminology depend on earlier paragraphs. When comparing models, preserve the same source units and output completeness checks; dropping hard or failed segments cannot improve the candidate's denominator.

Keep development examples separate from acceptance documents. Split near-duplicate manuals and document families together to reduce template leakage. Add a later source revision or newly written material when benchmark contamination is uncertain. Preserve confidential documents in the approved evaluation environment rather than submitting them to an unapproved scoring service.

3. Combine complementary evidence

Use reproducibly configured lexical metrics to track surface correspondence with references, and a pinned learned metric as another signal. The original COMET research evaluates translation quality using multilingual representations and human-judgment supervision. Its reported correlations motivate using a learned evaluator, not treating any score as a universal guarantee of domain correctness.

Record metric implementation, checkpoint, preprocessing and aggregation. Scores from different checkpoints need not share a scale. Inspect disagreements between automatic metrics and reviewers. High token overlap can coexist with one reversed condition; a legitimate alternate translation can have lower overlap than a worse literal one.

Add diagnostics for numbers, units, placeholders, links and glossary terms. These require semantic alignment: converting “2 hours” to “120 minutes” can preserve meaning, whereas copying every digit does not guarantee correctness. A term may have multiple valid grammatical forms. Treat detector outputs as review candidates and measure their false positives and misses.

4. Show why average gains can fail the release gate

Suppose 1,000 evaluated segments contain 900 routine and 100 meaning-critical segments. Baseline A has mean human quality 4.0 on routine segments and 4.5 on critical segments, using a predefined five-point scale. Candidate B has 4.3 and 3.0 respectively. A's overall mean is (900×4.0+100×4.5)/1,000=4.05. B's is (900×4.3+100×3.0)/1,000=4.17.

The higher 4.17 aggregate hides a 1.5-point decline in the critical slice. Suppose explicit error annotation finds one segment with at least one critical meaning error for A and eight such segments for B among the 100 critical segments. Their observed critical-error rates are 1% and 8%. A predeclared rule forbidding more than 2% observed critical errors would reject B despite its aggregate improvement.

That observed-rate rule is only an illustrative gate, not statistical assurance that the true rate is below 2%. With zero errors in n independent representative cases, the exact one-sided 95% binomial upper bound is 1−0.05^(1/n). It is about 2.95% for n=100 and 0.994% for n=300. Zero failures in a small set cannot establish an arbitrarily small risk.

Segments within a manual are correlated, so treating them as independent can overstate evidence. Use document-level resampling or a sampling design matched to the unit of uncertainty. Oversampled challenge sets measure vulnerability to particular errors; they do not directly estimate production prevalence unless sampling weights and coverage justify that inference.

5. Make human review repeatable

Use bilingual reviewers with domain knowledge, show the source context and glossary, randomize model identity and output order, and score adequacy separately from fluency. Independently double-annotate a subset, investigate disagreement and adjudicate meaning-critical cases. Reviewer agreement is useful evidence about the rubric, not proof the labels are objectively correct.

For paired comparisons, retain per-document outcomes: candidate wins, ties and losses, plus severity-coded errors. Aggregate means alone cannot produce a valid paired confidence interval. Record when both translations are wrong; forced preference between two failures can falsely suggest an acceptable winner.

For one model output per segment, at 1,000 segments and two minutes per single review, one pass costs 2,000 minutes, or 33 hours 20 minutes. Double-reviewing 20% adds 400 minutes, giving 40 reviewer-hours before adjudication and setup. Independently applying this protocol to both baseline and candidate costs 80 hours; a paired side-by-side protocol needs its own measured review time. Budget reviewers by language and specialization; one total headcount does not imply coverage of all five languages.

6. Release the configuration that was evaluated

Gate each supported language/domain slice on completeness, quality and critical-error evidence. A candidate can be approved for routine articles while remaining unapproved for instructions requiring stricter review. Publish that scope and route unsupported material to an independently approved baseline or human review. The scope detector must also be evaluated: misclassifying a critical instruction as routine bypasses the intended gate. Do not hide exclusions when reporting overall coverage.

Pin glossary and model versions together. A glossary update can change outputs even when the model is unchanged. If production adds retrieval, segmentation or post-processing, include those stages in acceptance tests. Re-run targeted regression cases after a change and use fresh held-out examples when repeated tuning would otherwise overfit the gate.

During staged rollout, sample outputs independently of user complaints. Complaint rates are selective and delayed, especially when readers cannot compare the source. Monitor omissions, wrong-language responses, review queue age, latency and cost alongside quality. Keep source revisions and the last approved configuration for rollback; do not replace a current article with an obsolete translation just because it was produced by an older model.

7. Failure analysis and self-review

Test negation, decimal punctuation, changed units, numbered steps, placeholders, pronoun references across paragraphs, mixed-language input and conflicting glossary entries. Include outputs that are fluent but incomplete, and references that use a valid alternative term. Check whether the evaluator notices the failures before using it as a gate.

Trade-offs: Learned metrics scale evaluation but inherit domain and language limitations. Human review provides richer error analysis at greater cost and variability. Challenge sets expose important weaknesses but cannot replace representative sampling. Narrow deployment scope reduces risk while limiting automation coverage.

Follow-ups: Does a higher mean score prove fewer critical errors? No. Does zero observed errors prove zero risk? No. Is exact digit preservation sufficient? No, units and semantic roles matter. Is one reference the only correct translation? No.

Score 0–2 each for fidelity contract, reproducible dataset/configuration, complementary metrics, critical-slice uncertainty and operational release scope. A strong answer makes the acceptance decision auditable rather than choosing the largest headline score.

Sources and next steps

The domain scenario, scoring examples, binomial calculation and release workflow are original. Continue with multilingual retrieval for cross-language search rather than translation fidelity.

Continue your preparation

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