INDEPENDENT PERSPECTIVES. INTELLIGENT FUTURES.FOLLOW @THESITIMES ↗
The Super Intelligence Times.
AI · SUPERINTELLIGENCE · ROBOTICS · TECHNOLOGYTHE WORLD, REIMAGINED.
← Artificial Intelligence deskArtificial Intelligence / ORIGINAL EXPLAINER

Fast AI is a property of the whole request

Prediction latency includes preparation, communication and waiting, not just model execution.

Alice and Bob Cryostat
Alice and Bob Cryostat. · Illustrative archive photograph. Nilhope / Wikimedia Commons · CC BY-SA 4.0. Resized for display; image rights remain with the credited creator.

Follow the full path

Computational performance depends on the estimator, input representation, batch size and surrounding system. A fast model can sit behind slow data preparation or network calls. Conversely, batching can improve throughput while increasing the wait for an individual request. Teams should distinguish latency, the time one request takes, from throughput, the amount of work completed over a period.

An interactive catalogue

Imagine a design tool suggesting matching materials as a user types. A prediction that takes only a few milliseconds is not enough if retrieving metadata takes a second. Users experience the complete delay. The team should measure each stage and prioritize the actual bottleneck rather than repeatedly replacing the model in search of a faster benchmark.

Typical speed can hide bad days

Averages obscure slow requests, cold starts and bursts of traffic. Input size may also change runtime: a long description or dense feature vector can behave differently from a short example. Test representative and demanding cases on the intended hardware. Measure under realistic concurrency so that a demonstration on an idle laptop does not become an unsupported production promise.

Choose a useful service level

For the catalogue, decide which suggestions must be immediate and which can arrive after a short pause. Cache stable information, avoid unnecessary preparation and provide a graceful fallback when results are delayed. Compare quality and speed together. The best optimization is the one readers or operators can feel without losing the distinctions the model was built to provide, not the one that produces the most impressive isolated timing number. Measure a realistic sequence of user actions, because repeated requests, partial inputs and cancellations can expose delays that a single isolated benchmark never exercises.

Sources & further reading

scikit-learn.org — computational performance ↗

AI-assisted editorial explainer. Sources are provided for verification.

Suggest a correction ↗

Continue reading

The quiet power of a straight line ↗

Probability is not a verdict ↗

The hidden decision inside every AI classifier ↗

Subscribe to the Times ↗

Explore the Times.