In brief

Should AI run at the edge or in the cloud?

Run inference at the edge when decisions need very low latency, connectivity is unreliable or costly, raw data is sensitive or too large to transmit, and the model fits the device. Use the cloud when models are large, workloads vary, central analysis is needed and connectivity is dependable. Many solutions combine both.

Where a model runs affects cost, performance, privacy, reliability and how the system is maintained. The decision is often made implicitly, based on where a team is most comfortable. Making it explicit leads to better designs.

Five factors to weigh

FactorFavours edgeFavours cloud
LatencyDecisions needed in milliseconds, such as rejecting a part on a moving lineSeconds of delay are acceptable
ConnectivityRemote, mobile or unreliable networksStable, affordable connectivity
Data volume and privacyHigh-volume video or audio; data should stay on siteModerate data volumes; central processing permitted
Model sizeModel can be optimised to fit device memory and powerLarge models or frequent heavy workloads
Fleet managementOrganisation can manage, secure and update devicesCentralised operations preferred

The middle ground: on-premises and near-edge

The choice is not binary. A local server in a factory, store or campus can run larger models than individual devices while still keeping data on site and avoiding round trips to distant data centres. This near-edge layer suits multi-camera analytics, local language model inference and aggregation across many sensors.

Hidden costs on each side

Edge

  • Hardware procurement, installation, enclosures and power.
  • Physical maintenance, cleaning and replacement.
  • Secure provisioning and signed over-the-air updates across a fleet.
  • Harder debugging when models misbehave in the field.

Cloud

  • Bandwidth for transmitting video or high-frequency sensor data.
  • Usage-based inference charges that scale with volume.
  • Dependence on connectivity for real-time functions.
  • Data transfer, residency and compliance considerations.

A common hybrid pattern

  1. Devices or near-edge servers run optimised models for real-time detection.
  2. Only results, summaries and selected samples are sent to the cloud.
  3. The cloud hosts training, evaluation, model registry and fleet dashboards.
  4. Improved models are deployed back to devices through controlled rollouts.

This pattern keeps responses fast and data exposure low while retaining central oversight and continuous improvement.

Test on the target hardware early

Model accuracy and speed on a development GPU say little about performance on an edge accelerator after quantisation. Benchmark candidate models on the actual target hardware, under realistic conditions such as temperature and concurrent streams, before committing to an architecture.

Dr. Rohit

About the author: Co-Founder, Director and Chief Technology Officer, AARHIT Systems. Writes on technology strategy, AI architecture, agents, evaluation and AI governance. More articles by Dr. Rohit