arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.14049cs.DCcs.LG
收藏

一种高效灵活的推理系统,用于服务深度神经网络的异构集成

An efficient and flexible inference system for serving heterogeneous ensembles of deep neural networks

TotalEnergies SE(道达尔能源公司);Univ. Lille(里尔大学);CNRS(法国国家科学研究中心)

Pierrick Pochelu, Serge G. Petiton, Bruno Conche

摘要:

深度神经网络(DNN)的集成已经实现了定性预测,但它们是计算和内存密集型的。因此,要求它们用可用的计算资源来回答繁重的请求工作量的需求正在增长。与最近关于推理服务器和推理框架的举措不同,这些举措专注于单个DNN的预测,我们提出了一个新的软件层,以提供DNN的灵活性和效率。我们的推理系统设计了几个技术创新。首先,我们提出了一个新的过程来找到设备(CPU或GPU)和DNN实例之间的良好分配矩阵。它连续运行最差拟合以将DNN分配到存储器设备中,并运行贪心算法以优化分配设置并加速集成。其次,我们设计的推理系统基于多个进程异步运行:搜索,预测和组合规则与一个有效的内部通信方案,以避免开销。实验表明,在极端情况下的灵活性和效率:它成功地服务于12个重DNN到4个GPU的合奏,相反,一个单一的DNN多线程到16个GPU。它还优于简单的基线,包括优化DNN的批量大小,在图像分类任务上加速高达2.7倍。

英文摘要:

Ensembles of Deep Neural Networks (DNNs) have achieved qualitative predictions but they are computing and memory intensive. Therefore, the demand is growing to make them answer a heavy workload of requests with available computational resources. Unlike recent initiatives on inference servers and inference frameworks, which focus on the prediction of single DNNs, we propose a new software layer to serve with flexibility and efficiency ensembles of DNNs. Our inference system is designed with several technical innovations. First, we propose a novel procedure to find a good allocation matrix between devices (CPUs or GPUs) and DNN instances. It runs successively a worst-fit to allocate DNNs into the memory devices and a greedy algorithm to optimize allocation settings and speed up the ensemble. Second, we design the inference system based on multiple processes to run asynchronously: batching, prediction, and the combination rule with an efficient internal communication scheme to avoid overhead. Experiments show the flexibility and efficiency under extreme scenarios: It successes to serve an ensemble of 12 heavy DNNs into 4 GPUs and at the opposite, one single DNN multi-threaded into 16 GPUs. It also outperforms the simple baseline consisting of optimizing the batch size of DNNs by a speedup up to 2.7X on the image classification task.

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

↑