arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.06440cs.LGcs.PF
收藏

面向自适应优化算法的灵活精度导向深度学习模块推理延迟预测框架

Towards A Flexible Accuracy-Oriented Deep Learning Module Inference Latency Prediction Framework for Adaptive Optimization Algorithms

Southern University of Science and Technology (SUSTech)(南方科技大学);University of Thessaly(塞萨利大学);Research Institute for Trustworthy Autonomous Systems(可信自主系统研究院)

Jingran Shen, Nikos Tziritas, Georgios Theodoropoulos

AI总结:

本文提出一种灵活精度导向的深度学习模块推理延迟预测框架,支持可配置输入参数并自动选择回归模型,同时提出轻量级MEDN模型,在提升整体预测精度和R平方值的同时降低时间与空间消耗。

摘要:

随着深度学习的快速发展,越来越多的云端和边缘应用倾向于利用大型深度神经网络(DNN)模型来提高任务执行效率和决策质量。由于内存限制,模型通常通过压缩、剪枝和划分算法进行优化,以便能够部署到资源受限的设备上。随着计算平台中的条件动态变化,已部署的优化算法应相应地调整其解决方案。为了及时对这些解决方案进行频繁评估,通常训练回归模型(RM)来预测相关的解决方案质量指标,例如所产生的DNN模块推理延迟,这也是本文关注的重点。现有的预测框架规定了不同的RM训练工作流,但没有一个框架允许针对不同模块灵活配置输入参数(例如批量大小、设备利用率)以及所选择的RM。本文提出了一种深度学习模块推理延迟预测框架,该框架i)承载一组可定制的输入参数,利用自生成数据集为每个DNN模块(例如卷积层)训练多个不同的RM,并且ii)自动选择一组训练好的RM,以实现尽可能高的整体预测精度,同时尽可能降低预测时间/空间消耗。此外,本文提出了一种新的RM,即MEDN(多任务编码器-解码器网络),作为替代解决方案。综合实验结果表明,MEDN快速且轻量,能够实现最高的整体预测精度和R平方值。与MEDN单一选择方案相比,时间/空间高效的自动选择算法还将整体精度提高了2.5%,R平方值提高了0.39%。

英文摘要:

With the rapid development of Deep Learning, more and more applications on the cloud and edge tend to utilize large DNN (Deep Neural Network) models for improved task execution efficiency as well as decision-making quality. Due to memory constraints, models are commonly optimized using compression, pruning, and partitioning algorithms to become deployable onto resource-constrained devices. As the conditions in the computational platform change dynamically, the deployed optimization algorithms should accordingly adapt their solutions. To perform frequent evaluations of these solutions in a timely fashion, RMs (Regression Models) are commonly trained to predict the relevant solution quality metrics, such as the resulted DNN module inference latency, which is the focus of this paper. Existing prediction frameworks specify different RM training workflows, but none of them allow flexible configurations of the input parameters (e.g., batch size, device utilization rate) and of the selected RMs for different modules. In this paper, a deep learning module inference latency prediction framework is proposed, which i) hosts a set of customizable input parameters to train multiple different RMs per DNN module (e.g., convolutional layer) with self-generated datasets, and ii) automatically selects a set of trained RMs leading to the highest possible overall prediction accuracy, while keeping the prediction time / space consumption as low as possible. Furthermore, a new RM, namely MEDN (Multi-task Encoder-Decoder Network), is proposed as an alternative solution. Comprehensive experiment results show that MEDN is fast and lightweight, and capable of achieving the highest overall prediction accuracy and R-squared value. The Time/Space-efficient Auto-selection algorithm also manages to improve the overall accuracy by 2.5% and R-squared by 0.39%, compared to the MEDN single-selection scheme.

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

↑