The interview problem

Practice prompt

A live event needs translated captions before each speaker finishes a sentence. Design a streaming translation pipeline that controls latency without repeatedly rewriting committed text.

Original practice, not a reported company interview. All worked numbers are illustrative. Interview date: not applicable. Written October 3, 2026.

1. Scope and assumptions

Assume one source language and one target language initially. Speech recognition and translation both have unstable prefixes. Language word order can require future context; zero delay and perfect accuracy are incompatible goals.

2. Architecture and decisions

Audio → partial recognition → stable source prefix → translation policy → provisional caption → committed caption

Keep source-token timing and revision identities through the pipeline. Translate stable prefixes with a policy that decides whether to wait for more source context or emit target text. Display provisional text separately from committed text, and bound the editable suffix. A wait-k policy is a useful conceptual baseline for text streams, but speech timing and tokenization require their own measurement.

Delay commitment around ambiguous names, negation and clause endings. Preserve a correction channel for material errors after commitment instead of silently changing a caption the viewer already read. Apply terminology dictionaries with versioned context and avoid treating dictionary matches as guaranteed disambiguation.

3. Work through the example

With an illustrative source rate of 3 words per second, waiting for 6 source words creates about 2 seconds of initial lexical delay. Adding 300 ms recognition and 200 ms translation gives roughly 2.5 seconds before initial output, excluding network and rendering. This is a simplified startup estimate, not the formal average-lagging metric.

4. Failure cases and trade-offs

Premature translation can reverse a sentence’s meaning when negation arrives late. ASR revisions can invalidate downstream text. Larger wait budgets improve context but hurt live usability. Quality differs by language pair; a policy tuned to similar word orders may fail badly for another pair.

5. Validation and acceptance

Evaluate translation quality alongside timed latency and revision burden. Include negation, long clauses, names and rapid speaker changes. Align metrics to source audio time so a fast translator cannot hide a slow recognizer. Have bilingual reviewers assess meaning-changing errors.

6. Follow-ups and self-review

Which text can be committed irreversibly? Reward explicit provisional state, language-pair evaluation, end-to-end timing and a correction policy.

Sources and related practice

STACL introduces prefix-to-prefix simultaneous translation and wait-k policies; the speech pipeline and timing example are original.

Read the primary technical reference

Reference retrieved October 3, 2026. Retrieval date is not an interview or source publication date. The reference supports the named concept; scenario, architecture, examples and rubric are original.

Continue with Evaluate a domain translation service; Align supplied subtitles to speech.

Continue your preparation

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