[Paper Review] Collaborative Execution of Deep Neural Networks on Internet of Things Devices
This paper proposes a collaborative, model-parallel approach for executing deep neural networks (DNNs) in real time on resource-constrained Internet of Things (IoT) devices by distributing computation across a network of idle devices. By applying novel model-parallelism techniques—particularly output splitting and layer-wise load balancing—it achieves up to 6× speedup on VGG16 and 2.6× on C3D using only Raspberry Pi 3s, enabling efficient, privacy-preserving, edge-based inference without cloud dependency.
With recent advancements in deep neural networks (DNNs), we are able to solve traditionally challenging problems. Since DNNs are compute intensive, consumers, to deploy a service, need to rely on expensive and scarce compute resources in the cloud. This approach, in addition to its dependability on high-quality network infrastructure and data centers, raises new privacy concerns. These challenges may limit DNN-based applications, so many researchers have tried optimize DNNs for local and in-edge execution. However, inadequate power and computing resources of edge devices along with small number of requests limits current optimizations applicability, such as batch processing. In this paper, we propose an approach that utilizes aggregated existing computing power of Internet of Things (IoT) devices surrounding an environment by creating a collaborative network. In this approach, IoT devices cooperate to conduct single-batch inferencing in real time. While exploiting several new model-parallelism methods and their distribution characteristics, our approach enhances the collaborative network by creating a balanced and distributed processing pipeline. We have illustrated our work using many Raspberry Pis with studying DNN models such as AlexNet, VGG16, Xception, and C3D.
Motivation & Objective
- To enable real-time, single-batch inference of deep neural networks on low-power, resource-constrained IoT devices without relying on cloud computing.
- To address memory and compute limitations in IoT devices by distributing DNN workloads using model-parallelism techniques.
- To create a balanced, distributed processing pipeline that minimizes latency and communication overhead across heterogeneous IoT nodes.
- To develop a general-purpose framework that supports various DNN architectures (e.g., AlexNet, VGG16, C3D, ResNet50, Xception) without model- or hardware-specific tuning.
- To reduce deployment time and improve efficiency by avoiding custom optimizations and instead using heuristics for optimal layer distribution.
Proposed method
- Proposes a collaborative network of IoT devices (e.g., Raspberry Pi 3s) to jointly execute DNN inference in real time.
- Introduces model-parallelism techniques—specifically output splitting and layer-wise partitioning—for convolutional and fully-connected layers to reduce memory footprint and balance load.
- Employs a heuristic-based distribution strategy that considers both computation cost and communication overhead to achieve balanced pipeline execution.
- Uses monitoring tools to measure per-layer latency on Raspberry Pi devices and guide optimal layer assignment across nodes.
- Applies three model-parallelism methods (e.g., spatial, channel, and output splitting) to the heaviest layers (e.g., second conv layer in C3D) to reduce bottleneck latency.
- Deploys the system on up to 11 Raspberry Pi 3s to evaluate performance across multiple DNNs, including AlexNet, VGG16, C3D, ResNet50, and Xception.
Experimental results
Research questions
- RQ1How can DNN inference be efficiently executed on resource-constrained IoT devices without relying on cloud offloading?
- RQ2What model-parallelism techniques are most effective for reducing memory footprint and balancing load across IoT devices?
- RQ3To what extent can collaborative IoT devices achieve real-time performance for single-batch inference in a distributed pipeline?
- RQ4How do different DNN architectures (e.g., VGG16 vs. C3D) respond to model-parallelism under memory and compute constraints?
- RQ5Can a general-purpose, hardware-agnostic framework be designed to distribute any DNN model efficiently on existing IoT devices?
Key findings
- Using 11 Raspberry Pi 3s, the system achieved up to 6× speedup for VGG16 inference compared to random distribution, due to optimized layer partitioning and model parallelism.
- For the C3D model, applying model parallelism to its heaviest convolutional layer (second conv layer) on three devices yielded a 2.6× speedup, significantly reducing latency.
- AlexNet achieved approximately 2× speedup with 4 or 6 devices, but further gains were limited due to low per-layer latency (<0.2s) and memory constraints on the first dense layer.
- ResNet50 and Xception showed minimal benefit from model parallelism due to their short per-layer latency (<0.2s), but achieved linear speedup via data parallelism as the number of nodes increased.
- The proposed heuristic-based distribution strategy successfully balanced the pipeline by identifying and offloading bottleneck layers, improving overall throughput.
- The framework demonstrated feasibility for real-time, privacy-preserving inference by keeping data local and eliminating cloud dependency, even with limited device resources.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.