The interview problem
Design a training and evaluation plan to transfer a costly query-document scorer into a low-latency first-stage retriever.
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 an offline teacher and a bounded candidate pool per query. Score candidates with the teacher, retain human judgments where available and train a student embedding model against relative teacher scores. Include queries and documents outside the teacher-mined comfort zone. Version teacher, candidate generation and score normalization. Evaluate first-stage recall at a fixed retrieval budget, then end-to-end ranking quality.
2. Trace the design or derivation
Generate candidate pool → score with teacher → train student → build index → evaluate retrieval budget
Teacher score scales can vary across queries, so a within-query ranking target may be more stable than raw regression. Preserve the original judgments to detect cases where the student faithfully imitates a wrong teacher. Rebuilding the document index is part of the student release, not a separate optional optimization.
3. Calculate the example
A teacher can rerank 100 candidates but cannot recover a relevant document missing from all 100. If the student retrieves relevant evidence for 90 of 100 queries, even a perfect downstream reranker is limited to those 90 under this candidate definition.
4. Failure cases and trade-offs
Teacher mistakes and biased candidate pools transfer to the student. Matching score values is not the same as preserving top-k recall. Distillation reduces serving cost but can lose fine interactions. Keep a human-judged evaluation set and compare against the pre-distillation retriever.
5. Validation, follow-ups and self-review
Test rare entities, paraphrases and domain shifts at equal latency. Follow-up: how would multiple teachers disagree? Self-review: separate teacher quality, candidate coverage and student representation limits.
Sources and related practice
Technical reference: arxiv.org — Dense candidate retrieval and negative examples; the distillation rollout is an original proposal.
Source publication/update: Submitted April 10, 2020; revised September 30, 2020. 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 Choose targets and losses for model distillation; Migrate an embedding model without mixing vector spaces.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.