Preparing your design workspace

Loading the problem and your latest saved attempt…

Select and Improve a Short-Audio Speech Recognizer

Compare four ASR architectures for ten-second recordings, then diagnose training and held-out errors before a safe model release.

Problem statement

For this exercise, assume a service receives one recorded, at-most-ten-second English speech clip from an opted-in user and returns a final transcript.

Design the ML system that prepares labeled audio, compares four candidate speech-recognition architectures, selects a model under the stated resource and quality constraints, and changes the training plan when development and held-out metrics disagree.

The interviewer report mentions ten-second audio, comparing four supplied architectures, and revising an architecture or hyperparameters after seeing train/test metrics; the specific candidates and numbers below are exercise assumptions.

A transcript may include ordinary punctuation, but scoring normalizes case, punctuation, and approved number forms before word error rate (WER) is computed. Approved clips and transcripts may be used for training; rejected or revoked clips must not enter a later dataset.

The same speaker or recording session must not straddle training and held-out evaluation. Each released model must pin its dataset, preprocessing, tokenizer, model, decoder and evaluation versions.

Focus on model and data choices rather than designing a general live-call platform, speaker identity system, translation service, or audio-generation model.

What to build

  1. Accept approved short clips and corrected transcripts; validate audio and label quality, retain lineage, and build versioned speaker/session-disjoint train, development and held-out datasets.
  2. Train or adapt four supplied recognizer families on a common data and normalization contract; measure quality, inference latency, memory, and slice behavior before choosing a feasible candidate.
  3. Release one reviewed model package and return a final transcript with the model/decoder version and an explicit failure when recognition cannot finish.
  4. Use training, development and exposed held-out results to diagnose failures; compare revised candidates on development or separate diagnosis data, then run the selected package once against a fresh sealed release set.

At scale

  • For this exercise, assume ten million approved labeled clips are available, up to 200,000 new eligible clips arrive daily, and peak inference load is 500 completed clips per second.
  • For this exercise, target a final transcript within two seconds at p95 after a ten-second upload completes, with at most two gigabytes of model-plus-decoder memory per inference replica.
  • For this exercise, a release candidate must achieve at most 18 percent WER overall and at most 30 percent WER on each predefined noisy-speech and accent slice on an independent held-out set; declare any unmeasurable slice rather than silently passing it.
  • For this exercise, version consent and training eligibility: after revocation is acknowledged, no new training run may include the clip, and a future dataset version must omit it. Historical model handling follows a documented retraining policy rather than instant unlearning.