Computer Vision Engineer Interview Question

Your model scores well on the test set but performs badly in production. How do you debug it?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Get production samples first and label a slice of them, so you can measure the real gap instead of guessing. Then check the usual causes in order: a preprocessing mismatch between training and serving, leakage that made the test set too easy, domain shift in cameras, lighting or compression, a different label definition, and thresholds tuned on the wrong data. Replay the exact production pipeline offline to isolate which stage breaks.

Why interviewers ask this

This is the defining real world vision problem, and the interviewer wants a methodical debugging process rather than a reflex to retrain. They listen for collecting and labelling production data first, a checklist of likely causes, and isolating the pipeline stage at fault. Candidates who mention test set leakage and preprocessing bugs before domain shift show they know which explanations are most common in practice.

How to structure your answer

  • Collect and label production samples to measure the gap.
  • Check preprocessing parity between training and serving.
  • Check for test set leakage and domain shift.
  • Replay the production pipeline offline to isolate the failing stage.

Example answer

Spoken example, first person

The first thing I do is stop guessing. I pull a few hundred production frames, label them, and measure the model on them, because that turns a vague complaint into a number and a set of failure examples. Then I work through the likely causes, starting with the boring ones, because they are the most common. Is the serving pipeline feeding the model what it was trained on, with the same channel order, normalisation, resize method and aspect ratio handling? Was the test set too easy, for example with frames from the same videos as the training set? Then domain shift: different cameras, lenses, compression, lighting or mounting height. And whether the product's definition of the object matches the labelling guideline. To isolate it, I replay production inputs through the exact serving code offline and compare outputs with the training pipeline on the same images. On one deployment, that showed the serving code was stretching images to a square while training had padded them, which squashed every object. Fixing that recovered most of the gap without any retraining, and new site data fixed the rest.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • How would you detect this problem before users report it?
  • How do you decide between fine-tuning on new data and retraining from scratch?
  • How many production samples do you need to label to trust the measurement?

Related computer vision engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot