arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.08662cs.DC
收藏

PICO:面向多样移动设备上通用CNN的流水线推理框架

PICO: Pipeline Inference Framework for Versatile CNNs on Diverse Mobile Devices

Xiang Yang, Zikang Xu, Qi Qi, Jingyu Wang, Haifeng Sun, Jianxin Liao, Song Guo

AI总结:

本文提出PICO流水线协作框架,通过通用图划分和多对多映射算法解决异构移动设备上CNN推理的调度与通信难题,显著提升吞吐量。

摘要:

近年来,为在不损失精度的前提下实现实时推理,将卷积神经网络(CNN)的推理分布到多个移动设备上已被广泛研究。然而,如何将CNN映射到设备上仍是一项挑战。一方面,由于CNN的结构是有向无环图(DAG)而非简单的链式结构,使用多个设备调度最先进的CNN工作负载属于NP-Hard问题。另一方面,由于无线环境和异构设备的存在,分布推理工作负载会面临昂贵的通信开销和计算不均衡问题。本文提出了PICO,一个流水线协作框架,旨在加速多样移动设备上通用CNN的推理。其核心特性包括:(1)一种通用图划分算法,考虑任意给定CNN的特性,并将其编排为具有合适粒度的模型分片列表;(2)一种多对多映射算法,为异构设备生成最佳的流水线配置。在使用2至8台Raspberry-Pi设备的实验中,在不同CPU频率下,吞吐量可提升1.8至6.8倍。

英文摘要:

Distributing the inference of convolutional neural network (CNN) to multiple mobile devices has been studied in recent years to achieve real-time inference without losing accuracy. However, how to map CNN to devices remains a challenge. On the one hand, scheduling the workload of state-of-the-art CNNs with multiple devices is NP-Hard because the structures of CNNs are directed acyclic graphs (DAG) rather than simple chains. On the other hand, distributing the inference workload suffers from expensive communication and unbalanced computation due to the wireless environment and heterogeneous devices. This paper presents PICO, a pipeline cooperation framework to accelerate the inference of versatile CNNs on diverse mobile devices. At its core, PICO features: (1) a generic graph partition algorithm that considers the characteristics of any given CNN and orchestrates it into a list of model pieces with suitable granularity, and (2) a many-to-many mapping algorithm that produces the best pipeline configuration for heterogeneous devices. In our experiment with 2 ~ 8 Raspberry-Pi devices, the throughput can be improved by 1.8 ~ 6.8x under different CPU frequencies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑