RESPECT:基于强化学习的流水线 Coral Edge TPU 边缘调度
RESPECT: Reinforcement Learning based Edge Scheduling on Pipelined Coral Edge TPUs
AI总结:
针对资源受限边缘系统上DNN计算图调度的NP难问题,提出基于强化学习的调度框架RESPECT,在Coral Edge TPUs上实现接近最优的调度,大幅提升推理与优化运行时速度。
摘要:
深度神经网络(DNNs)具有极高的计算和内存需求,其计算图的编译对资源受限(如计算、I/O 和内存受限)的边缘计算系统性能影响巨大。尽管计算图的高效执行需要有效的调度算法,但生成最优调度方案是一个极具挑战性的 NP 难问题。此外,考虑到内存通信开销以及 DNN 规模的不断增长,在流水线多核系统上调度 DNN 计算图的复杂性会进一步增加。本研究利用合成图作为训练数据集,提出了一种基于强化学习(RL)的调度框架 RESPECT,该框架学习最优优化算法的行为,并以极短的求解运行时间开销生成接近最优的调度结果。我们的框架在物理 Coral Edge TPUs 系统上部署了十个流行的 ImageNet 模型,相较于商业编译器,展现了高达约 2.5 倍的真实世界片上推理运行时加速。此外,与精确优化方法相比,所提出的 RL 调度在调度优化运行时间上比商业编译器实现了高达 683 倍的加速,并且在与精确最优解匹配时实现了高达 930 倍的加速。最后,我们进行了全面的可泛化性测试,证明 RESPECT 能够成功模仿最优求解行为,从小型合成图泛化至大型真实世界 DNN 计算图。
英文摘要:
Deep neural networks (DNNs) have substantial computational and memory requirements, and the compilation of its computational graphs has a great impact on the performance of resource-constrained (e.g., computation, I/O, and memory-bound) edge computing systems. While efficient execution of their computational graph requires an effective scheduling algorithm, generating the optimal scheduling solution is a challenging NP-hard problem. Furthermore, the complexity of scheduling DNN computational graphs will further increase on pipelined multi-core systems considering memory communication cost, as well as the increasing size of DNNs. Using the synthetic graph for the training dataset, this work presents a reinforcement learning (RL) based scheduling framework RESPECT, which learns the behaviors of optimal optimization algorithms and generates near-optimal scheduling results with short solving runtime overhead. Our framework has demonstrated up to $\sim2.5\times$ real-world on-chip inference runtime speedups over the commercial compiler with ten popular ImageNet models deployed on the physical Coral Edge TPUs system. Moreover, compared to the exact optimization methods, the proposed RL scheduling improves the scheduling optimization runtime by up to 683$\times$ speedups compared to the commercial compiler and matches the exact optimal solutions with up to 930$\times$ speedups. Finally, we perform a comprehensive generalizability test, which demonstrates RESPECT successfully imitates optimal solving behaviors from small synthetic graphs to large real-world DNNs computational graphs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。