Collaborative Inference for AI-Empowered IoT Devices

Nir Shlezinger, Ivan V. Bajić · DOI

Abstract

Artificial intelligence (AI) technologies, and particularly deep learning systems, are traditionally the domain of large-scale cloud servers, which have access to high computational and energy resources. Nonetheless, in Internet-of-Things (IoT) networks, the interface with the real-world is carried out using edge devices that are limited in hardware and can communicate. The conventional approach to provide AI processing to data collected by edge devices involves sending samples to the cloud, at the cost of latency, communication, connectivity, and privacy concerns. Consequently, recent years have witnessed a growing interest in enabling AI-aided inference on edge devices by leveraging their communication capabilities to establish collaborative inference. This article reviews candidate strategies for facilitating the transition of AI to IoT devices via collaboration. We identify the need to operate in different mobility and connectivity constraints as a motivating factor to consider multiple schemes, which can be roughly divided into methods where inference is done remotely, i.e., on the cloud, and those that infer on the edge. We identify the key characteristics of each strategy in terms of inference accuracy, communication latency, privacy, and connectivity requirements, providing a systematic comparison between existing approaches. We conclude by presenting future research challenges and opportunities arising from the concept of collaborative inference.

The Challenge: Bridging the Gap Between Cloud and Edge

Deep Learning (DL) has revolutionized AI, but it faces a significant deployment hurdle in the Internet-of-Things (IoT) ecosystem. State-of-the-art Deep Neural Networks (DNNs) often consist of millions or billions of parameters, requiring substantial memory and computational power. In contrast, IoT devices—such as smartwatches, industrial sensors, and autonomous drones—are hardware-limited and battery-dependent.

Traditionally, developers have faced a binary choice:

  1. Cloud-Centric Processing: Sending raw data to a powerful server, which introduces high latency, massive bandwidth usage, and significant privacy risks.
  2. Edge-Centric Processing: Running a highly compressed model locally, which often results in a significant loss of accuracy and an inability to handle complex tasks.

Collaborative inference emerges as a paradigm shift, allowing resource-constrained devices to execute powerful AI models by sharing the workload with clouds or neighboring devices.

Strategies for Collaborative Inference

Collaborative strategies can be broadly categorized into two main approaches based on where the primary computation occurs.

Cloud-Centric Collaboration (Edge-Cloud Split)

In this model, the DNN is "split" between the device and the cloud. The IoT device runs the initial layers (the encoder) to extract essential features. These features are then compressed and transmitted to the cloud, which executes the remaining layers (the decoder). This approach is often more bit-efficient than sending raw data and provides an inherent layer of privacy by not transmitting raw pixels or signals.

Edge-Centric Collaboration

When cloud connectivity is unreliable or latency is critical, devices can collaborate locally:

  • Compact DNNs: Utilizing model-based design or network compression (distillation and pruning) to fit models onto single devices.
  • DNN Partitioning: Slicing a large DNN and distributing the segments across multiple neighboring devices.
  • Edge Ensembles: Multiple devices run different lightweight versions of the same model and aggregate their predictions to achieve high accuracy.
Visualizing collaborative strategies: Compact DNNs, DNN partitioning, and Edge ensembles.

Performance Insights and the "Bitrate Sweet Spot"

A critical finding in collaborative inference is the existence of a "bitrate sweet spot." There is a specific range of available upload speeds where collaborative edge-cloud inference is faster than both pure local and pure cloud inference. While edge inference offers constant latency (as no data is uploaded), collaborative methods significantly outperform cloud-only methods when bandwidth is limited.

Inference latency vs. available bitrate, highlighting the interval where collaborative inference is the optimal choice.

Numerical studies using the CIFAR-10 dataset demonstrate the "strength in numbers" of edge ensembles. For instance, an ensemble of 16 devices using highly compressed MobileNetV2 models can approach the accuracy of a full-sized centralized model (~80% accuracy) once inter-device communication reliability passes a certain threshold.

Future Directions and Challenges

Despite its promise, several hurdles remain for widespread adoption:

  • Privacy Metrics: Moving beyond standard "Differential Privacy" to better measure information leakage in shared features to prevent model inversion attacks.
  • Hybrid Designs: Developing systems that can seamlessly transition between edge-cloud and edge-edge collaboration based on real-world conditions.
  • Hardware-Algorithm Co-design: Creating AI models specifically optimized for the unique hardware accelerators found in modern IoT silicon.
  • Over-the-Air Computation: Leveraging the physics of wireless signals to aggregate data during transmission, potentially eliminating traditional communication overhead.

Summary updated

BibTeX
@inproceedings{shlezinger2022collaborative,
  author = {Nir Shlezinger and Ivan V. Bajić},
  title = {{Collaborative Inference for AI-Empowered IoT Devices}},
  booktitle = {IEEE Internet Things Mag},
  year = {2022},
  url = {https://openreview.net/forum?id=n3wgZKi3PW},
}
Figure