[Paper Review] Pipeline Parallelism for Inference on Heterogeneous Edge Computing
EdgePipe is a distributed inference framework that uses dynamic programming-based pipeline parallelism to accelerate large vision transformer models on heterogeneous edge devices without accuracy loss. It achieves up to 11.88× throughput speedup on 16-device clusters by optimally partitioning models across devices with varying compute, memory, and network capabilities.
Deep neural networks with large model sizes achieve state-of-the-art results for tasks in computer vision (CV) and natural language processing (NLP). However, these large-scale models are too compute- or memory-intensive for resource-constrained edge devices. Prior works on parallel and distributed execution primarily focus on training -- rather than inference -- using homogeneous accelerators in data centers. We propose EdgePipe, a distributed framework for edge systems that uses pipeline parallelism to both speed up inference and enable running larger (and more accurate) models that otherwise cannot fit on single edge devices. EdgePipe achieves these results by using an optimal partition strategy that considers heterogeneity in compute, memory, and network bandwidth. Our empirical evaluation demonstrates that EdgePipe achieves $10.59 imes$ and $11.88 imes$ speedup using 16 edge devices for the ViT-Large and ViT-Huge models, respectively, with no accuracy loss. Similarly, EdgePipe improves ViT-Huge throughput by $3.93 imes$ over a 4-node baseline using 16 edge devices, which independently cannot fit the model in memory. Finally, we show up to $4.16 imes$ throughput improvement over the state-of-the-art PipeDream when using a heterogeneous set of devices.
Motivation & Objective
- Address the challenge of deploying large, accurate vision transformer models (e.g., ViT-Large, ViT-Huge) on resource-constrained, heterogeneous edge devices where models do not fit in memory.
- Overcome the limitations of existing pipeline parallelism frameworks, which are designed for homogeneous data centers and not optimized for edge environments with heterogeneous compute, memory, and network resources.
- Develop an optimal partitioning strategy that balances workloads across heterogeneous edge devices to maximize inference throughput while preserving model accuracy.
- Demonstrate the effectiveness of pipeline parallelism in real-world edge testbeds, including scenarios where individual devices cannot store the full model.
Proposed method
- Apply pipeline parallelism to partition large vision transformer models into multiple stages, each assigned to a different edge device.
- Use a dynamic programming (DP) algorithm to determine the optimal partition mapping that accounts for heterogeneous device capabilities, including compute, memory, and network bandwidth.
- Model microbatch processing to enable overlapping of computation and communication, improving pipeline efficiency.
- Implement a communication-optimized data flow where each worker sends outputs only to the next stage, avoiding collective synchronization.
- Integrate with model compression techniques (e.g., DeiT) to further enhance performance, showing complementary benefits.
- Evaluate on a real edge testbed using diverse edge devices (e.g., MinnowBoard, RCC-VE Network Boards) to validate performance under realistic conditions.
Experimental results
Research questions
- RQ1Can pipeline parallelism be effectively applied to heterogeneous edge devices to accelerate inference of large vision transformers without accuracy loss?
- RQ2What is the optimal partitioning strategy for pipeline parallelism in the presence of heterogeneous compute, memory, and network resources in edge systems?
- RQ3How does EdgePipe’s performance compare to state-of-the-art frameworks like PipeDream and GPipe in heterogeneous edge environments?
- RQ4To what extent can pipeline parallelism and model compression be combined to further improve edge inference throughput?
- RQ5Can EdgePipe enable inference of models that are too large to fit in the memory of individual edge devices?
Key findings
- EdgePipe achieves 10.59× and 11.88× throughput speedup on 16-device homogeneous clusters for ViT-Large and ViT-Huge models, respectively, with no accuracy loss.
- In a 4-node baseline where individual devices cannot fit ViT-Huge, EdgePipe improves throughput by 3.93× using 16 devices.
- EdgePipe achieves up to 4.16× higher throughput than PipeDream when using a heterogeneous set of edge devices.
- Compressed models (e.g., DeiT-Small, DeiT-Tiny) show even better scalability with EdgePipe, achieving up to 17.23 images per second on 16 devices.
- The dynamic programming-based partitioning strategy effectively balances workloads across heterogeneous devices, enabling efficient pipeline execution.
- Pipeline parallelism and model compression are complementary: EdgePipe maintains speedup even when models are compressed, demonstrating synergy between techniques.
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.