Engineering

Latency Is a Feature

A more accurate answer that arrives too late is a less accurate answer. Build the time budget into the evaluation, not the retrospective.

Model quality is usually evaluated as though time does not exist. You compare two models on accuracy, pick the better one, and treat latency as an engineering detail to be sorted out afterwards.

It is not a detail. It is part of the quality.

Three places I have watched this bite:

Recommendations. A ranker that is 70 ms slower can miss the render window on a mobile connection. A meaningful share of users scroll past before the carousel populates. The better model produced a worse product because its output arrived after the user had moved on.

Voice agents. Past roughly two seconds of silence, a caller assumes something is wrong. They say "hello?", the turn-taking logic fires, and both parties talk over each other. The best possible response, delivered late, destroys the conversation. A slightly worse response delivered in 800 ms does not.

Edge detection. A 40 ms inference on a device that takes 90 ms to preprocess the frame is not a 40 ms system. Optimising the model while ignoring the loop is how you spend a week to gain nothing you can perceive.

The pattern in all three: accuracy was measured in isolation, latency was measured afterwards, and the interaction between them was measured never.

What fixes it is cheap. Put the time budget in the evaluation itself.

  • Decide the budget from the interaction, not from what the model happens to do. Carousel render window. Conversational silence tolerance. Frame rate.
  • Report accuracy and p95 latency together, as a pair, on every candidate model. Never one without the other.
  • Treat a model that misses the budget as failing, regardless of its accuracy. Not "needs optimisation". Failing.
  • Measure the whole loop, on the real device, under real network conditions.

A model you cannot afford to run is not a better model. It is a research result.