Inference Latency (Edge)
When a smart camera sees a person, or a wake-word device hears “Hey Assistant,” the useful question is not just whether the model is correct—it is how long the device takes to respond. Inference latency is that waiting time: the delay between providing an input to a trained model and receiving its prediction on the edge device itself.
What the measurement includes
For a single image, audio chunk, or sensor window, latency is usually measured in milliseconds. A meaningful edge measurement covers more than the neural-network layers:
- Pre-processing: resizing a camera frame, converting pixels, or computing audio features.
- Model execution: running operators such as convolutions, attention, or fully connected layers on a CPU, GPU, DSP, or NPU.
- Post-processing: decoding object boxes, applying thresholds, or choosing the top label.
It is like timing a restaurant order from the moment it reaches the kitchen to when the finished plate is handed over—not merely timing the stove. A model runtime such as TensorFlow Lite, ONNX Runtime, or Core ML can change latency substantially by selecting optimized kernels or a hardware accelerator.
Why edge latency is more demanding
At the edge, there is no server cluster to absorb delays. A wake-word detector must process audio faster than audio arrives; otherwise it falls behind. A drone’s obstacle detector needs low, predictable latency so its control loop can react in time. For interactive applications, a 25 ms average is not enough if periodic 200 ms pauses make the interface feel unresponsive.
Measuring what users feel
Engineers report latency across many runs, especially p50 (typical) and p95/p99 (slow-tail) latency. They measure on the deployed device, not a development laptop, and test sustained operation: heat can trigger thermal throttling, while memory pressure or competing tasks can delay inference. Reducing input resolution, quantizing a model to INT8, or using an NPU can lower latency, but each choice must preserve enough accuracy and fit the device’s power budget.
Inference latency (edge) is the elapsed time for a deployed model to produce an output from an input on an edge device, including relevant preprocessing, model execution, and postprocessing. It is commonly measured per request or frame, in milliseconds. Low latency enables responsive local decisions in applications such as camera perception, speech control, and anomaly detection, while excessive latency can miss real-time deadlines or degrade user experience.
Inference latency is like the pause between asking someone a question and getting their answer. For an AI feature, it is the time from when a device receives something—such as a photo, spoken command, or sensor reading—to when the AI produces its result.
On a phone or smart camera, low latency makes an AI feel immediate. A face-unlock feature should respond almost instantly; a delay would feel frustrating. In Edge AI, this timing matters because the device does the work itself, often without waiting for an internet connection. Faster responses can make features safer, smoother, and more natural to use.