The interview problem

Practice prompt

Design a training pipeline when experts provide noisy rules instead of a large hand-labeled dataset.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume a bounded document category task and a small independently labeled validation set. Run versioned labeling functions that can abstain, measure coverage and overlap, and audit correlated rules. Start with majority vote on covered records and a simple classifier. Use a learned label model only when its dependence assumptions are defensible. Keep untouched human labels for evaluation and sample uncovered regions deliberately.

2. Trace the design or derivation

Version rules
  → emit votes and abstentions
  → inspect conflicts
  → train classifier
  → evaluate gold set

Track which rules fired on each training record so an expert can inspect a surprising label. When a rule is retired, regenerate affected labels rather than retaining stale votes. Evaluate the final classifier on uncovered examples too; the classifier may generalize beyond rule coverage, but that must be demonstrated.

3. Calculate the example

Of 1,000 documents, rules cover 600. If 540 covered labels are correct, covered accuracy is 90%, but the system has supplied no label for 400 documents. Counting abstentions as correct would falsely raise apparent reliability.

4. Failure cases and trade-offs

Five rules derived from the same keyword are not five independent votes. Changes in document templates can break all of them together. More coverage can worsen noise; report coverage and accuracy jointly. Do not tune rules repeatedly against the final test set.

5. Validation, follow-ups and self-review

Evaluate individual rules, overlap conflicts and downstream classifier slices. Follow-up: which records should experts label next? Self-review: expose abstentions, rule dependence and the independent gold evaluation boundary.

Sources and related practice

Technical reference: arxiv.org — Weak supervision with labeling functions and correlation concerns.

Source publication/update: Submitted November 28, 2017. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Design an active-learning annotation loop; Resolve inconsistent reviewer labels before retraining.

Continue your preparation

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