Computer Vision Engineer Interview Question

Your training loss will not go down. How do you debug it?

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

Quick answer

Shrink the problem until it works: try to overfit a single small batch. If the model cannot memorise a handful of images, the bug is in the code, not the amount of data. Visualise inputs with their labels after loading and augmentation, check box and coordinate formats, confirm the loss receives what it expects, and check the learning rate, frozen layers and gradients. Then scale back up one change at a time.

Why interviewers ask this

Every practitioner hits this, and the interviewer wants a systematic process rather than random hyperparameter changes. They listen for the overfit one batch test, for inspecting the data pipeline visually, and for knowing the common silent bugs, such as coordinate format mismatches, logits passed where probabilities are expected, and layers accidentally frozen. A calm, ordered approach signals someone who will not burn weeks of compute on a broken pipeline.

How to structure your answer

  • Try to overfit a single small batch.
  • Visualise inputs and labels after the full pipeline.
  • Check loss inputs, formats and the learning rate.
  • Inspect gradients and scale back up gradually.

Example answer

Spoken example, first person

My first step is always to try to overfit one small batch, say eight images, with augmentation switched off. A healthy model should drive the loss close to zero on that. If it cannot, the problem is a bug, not a lack of data. Next I look at what the model actually receives. I draw the labels onto images after loading and augmentation, because coordinate format bugs are extremely common, like boxes stored as centre and size being read as corners, or normalised coordinates treated as pixels. Then the loss: is it receiving raw logits or probabilities, and are the class indices what it expects? Then the learning rate, which I check with a short range test, since too high causes divergence and too low looks like a flat line. I also check for accidentally frozen layers and look at gradient norms per layer. On one project, the loss plateaued because labels had shifted by one class index after a dataset merge, which the batch visualisation exposed in minutes. Once the small case works, I scale up one change at a time.

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

  • What would you check if the loss suddenly became NaN?
  • How do you tell underfitting from a bug?
  • How would you debug a validation loss that rises while training loss falls?

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