Partitioning and Placement of Deep Neural Networks on Distributed Edge Devices to Maximize Inference Throughput

Arjun Parthasarathy, Bhaskar Krishnamachari · DOI

Abstract

As Deep Neural Networks (DNNs) move toward the edge, the hardware gap between model requirements and device capabilities becomes a critical barrier. This paper presents a novel framework for partitioning DNNs and placing those partitions across clusters of resource-constrained edge devices. By optimizing the alignment between high-data transfer points in a model and high-bandwidth communication links, the proposed system minimizes bottleneck latency. Experimental results demonstrate up to a 10x throughput improvement over random placement, achieving performance within 9.2% of the theoretical optimal.

Introduction

The migration of AI from centralized data centers to the edge—including retail sensors, wearables, and autonomous systems—is hindered by a significant hardware gap. Modern DNNs are often too computationally intensive or memory-heavy for a single low-power device, such as a Raspberry Pi, to execute efficiently.

While linking these devices into distributed clusters offers a potential solution, simple model splitting is insufficient. In a pipelined inference system, where data flows sequentially through a chain of devices, the system's overall throughput is limited by the slowest stage, known as the bottleneck latency. In edge environments, this bottleneck is frequently caused by slow communication links (e.g., WiFi) rather than local computation. This research addresses the challenge of partitioning complex models and assigning those partitions to specific devices to maximize total inferences per second.

Methodology

The authors propose a two-stage optimization approach to streamline the inference pipeline:

1. Model Linearization

Most DNNs are structured as complex Directed Acyclic Graphs (DAGs). To simplify the distribution process, the authors identify "candidate partition points"—specific layers where the model can be split into sequential segments without violating dependencies. Analysis of 66 popular Keras models revealed that 97% could be effectively linearized using this method.

2. Optimal Partitioning

Using a shortest-path algorithm enhanced with memoization, the system identifies the set of partitions that minimizes total "transfer size" (the volume of data transmitted between devices). This process is constrained by the individual memory limits of each edge node to ensure feasibility.

3. Optimal Placement

Once partitions are defined, the system must assign them to specific hardware nodes. The authors utilize a color-coding k-path algorithm to match partitions with large data outputs to the highest-bandwidth communication links available in the cluster. This global view of network topology prevents "heavy" data transfers from being assigned to low-bandwidth links, a common failure point in simpler greedy algorithms.

Experimental Evaluation

The framework was evaluated using a diverse suite of DNN architectures to ensure general applicability:

  • Standard Benchmarks: ResNet50 for image recognition.
  • Complex Architectures: InceptionResNetV2, featuring parallel branches.
  • Edge-Optimized Models: MobileNetV2 and EfficientNetB1.
  • General Suite: 66 pretrained Keras models were used to calculate the algorithm's approximation ratio.

Key Insights

  • The Communication Dominance: In a typical edge setup (e.g., Raspberry Pi 4 on 6Mbps WiFi), data transfer between layers is approximately 7.5x slower than the computation itself. Consequently, optimizing bandwidth usage is more impactful than optimizing compute cycles.
  • Theoretical Lower Bound: The authors established "Theorem 1," defining the best-case latency as the ratio of the largest data transfer to the fastest available network link. This provides a rigorous benchmark for evaluating heuristic performance.
  • Global vs. Local Optimization: Standard greedy algorithms often fail in large clusters because they lack a global view of network topology. The k-path matching approach significantly outperforms these methods by considering the entire pipeline simultaneously.

Results

The proposed algorithm demonstrates significant performance gains across various scenarios:

  • Throughput Gains: The system reduced bottleneck latency by 10x compared to random distribution and by 35% compared to joint-optimization greedy approaches in 50-node clusters.
  • Near-Optimality: Across the tested model suite, the algorithm consistently produced results within 9.2% of the theoretical optimal bottleneck latency.
  • Scalability: Testing on simulated clusters of up to 50 nodes with varying memory capacities (64MB to 512MB) showed that the performance advantage increases as the cluster size grows.

Conclusion and Future Work

While the framework provides a robust solution for static edge networks, several avenues for future research remain. The current model assumes stable communication links, whereas real-world WiFi bandwidth can be highly volatile. Future iterations aim to incorporate dynamic network adjustments and extend the framework to geographically distributed nodes. Additionally, the authors plan to adapt the system for ultra-low-power micro-controllers, such as the Arduino Uno, which will require even more aggressive memory management and specialized operating systems like RiotOS.

Summary updated

BibTeX
@inproceedings{parthasarathy2022partitioning,
  author = {Arjun Parthasarathy and Bhaskar Krishnamachari},
  title = {{Partitioning and Placement of Deep Neural Networks on Distributed Edge Devices to Maximize Inference Throughput}},
  booktitle = {ITNAC},
  year = {2022},
  url = {https://openreview.net/forum?id=hrPUUvp6dN},
}
Figure