Profile the whole pipeline on the target device first, because preprocessing, postprocessing and data transfer often cost more than the network. Then pick an efficient architecture and the lowest input resolution that keeps accuracy, quantise to INT8 with representative calibration data, and compile with the hardware's own inference runtime. Move preprocessing onto the accelerator, run capture and inference in parallel, and measure latency under sustained load, including thermal throttling.
Why interviewers ask this
Edge deployment is where many vision projects succeed or fail, and interviewers want an engineer who measures before optimising. They listen for whole pipeline profiling, a sensible order of levers from architecture and resolution to quantisation and compilation, and awareness of real device behaviour such as thermal throttling and memory bandwidth. Quoting before and after numbers from a real deployment is far more convincing than listing techniques.
How to structure your answer
- Profile the full pipeline on the real device.
- Choose architecture and input resolution for the budget.
- Quantise and compile for the target runtime.
- Optimise pre and postprocessing and test under sustained load.
Example answer
First I measure on the actual device, end to end, because the network is often not the bottleneck. On one project the model took twelve milliseconds, but decoding, resizing and normalising on the CPU took twenty, and postprocessing in Python took another fifteen. So profiling comes first. Then the big levers, in order. Architecture and input resolution: a smaller backbone at the lowest resolution that keeps accuracy on the hard slices. Quantisation to INT8 with calibration data drawn from real camera frames, which typically gives a large speedup on edge accelerators. Then compiling with the hardware's own inference runtime rather than running a general framework. After that I attack the pipeline: decode and resize on the accelerator, move postprocessing into compiled code, and run capture, inference and output in parallel so the device is never idle. Finally I test under sustained load, because small devices throttle when they get hot, and a model that hits thirty frames per second for two minutes can drop to eighteen after an hour. On that project we went from four frames per second to just over thirty.
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 worksFollow-up questions to expect
- How would you choose between pruning, distillation and quantisation?
- How do you measure latency reliably on an embedded board?
- What would you do if the model still missed the latency budget?
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