Improving inference time in multi-TPU systems with profiled model segmentation
Jorge Villarrubia, Luis Costero, Francisco D. Igual, Katzalin Olcoz
TL;DR
This work address the memory-bound bottleneck of Edge TPU inference caused by limited on-chip memory and host memory transfers. It combines profiling-guided model segmentation with pipelined multi-TPU execution to distribute weights and computation across up to four devices. The study shows substantial gains, including up to 46x speedups for fully connected and up to 6x for convolutional models over a single TPU, demonstrating the practical impact of memory-aware partitioning. These results guide deployment of edge accelerators by balancing device memory usage and pipeline latency, with implications for energy efficiency and hybrid CPU-TPU workflows in future work.
Abstract
In this paper, we systematically evaluate the inference performance of the Edge TPU by Google for neural networks with different characteristics. Specifically, we determine that, given the limited amount of on-chip memory on the Edge TPU, accesses to external (host) memory rapidly become an important performance bottleneck. We demonstrate how multiple devices can be jointly used to alleviate the bottleneck introduced by accessing the host memory. We propose a solution combining model segmentation and pipelining on up to four TPUs, with remarkable performance improvements that range from $6\times$ for neural networks with convolutional layers to $46\times$ for fully connected layers, compared with single-TPU setups.
