arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.00907cs.DCcs.AI
收藏

白盒部署策略对边缘AI延迟和模型性能的影响

On the Impact of White-box Deployment Strategies for Edge AI on Latency and Model Performance

Jaskirat Singh, Bram Adams, Ahmed E. Hassan

AI总结:

本研究实证评估边缘AI中白盒与黑盒算子及其组合的准确率-延迟权衡,发现DSPTQ混合算子在边缘端低延迟场景下最优,蒸馏算子在移动端和边缘端表现更佳,并针对文本和图像模型推荐了最佳部署层级。

摘要:

为了帮助MLOps工程师决定在何种部署场景下使用哪种算子,本研究旨在实证评估边缘AI设置中白盒(基于训练)和黑盒(非基于训练)算子及其组合的准确率与延迟之间的权衡。我们进行了推理实验,包括3种白盒算子(即QAT、剪枝、知识蒸馏)、2种黑盒算子(即分区、SPTQ)及其组合算子(即蒸馏SPTQ、SPTQ分区),在3个层级(即移动端、边缘端、云端)上对4种常用的计算机视觉和自然语言处理模型进行评估,以从MLOps工程师的角度识别有效策略。我们的结果表明,当边缘端需要较低延迟且准确率下降幅度小到中等时,蒸馏和SPTQ算子的组合(即DSPTQ)应优先于非混合算子。在非混合算子中,蒸馏算子在移动端和边缘端层级中都是更好的选择,以较小到中等的准确率损失换取较低的延迟性能。此外,涉及蒸馏的算子在资源受限层级(移动端、边缘端)中比涉及分区的算子在移动端和边缘端层级中表现出更低的延迟。对于文本主题模型(其输入数据大小要求较低),云端层级比移动端、边缘端或移动端-边缘端层级(后者用于涉及分区的算子)更适合部署算子。相反,对于基于图像的模型(其输入数据大小要求较高),边缘端层级比移动端、边缘端或其组合更适合部署算子。

英文摘要:

To help MLOps engineers decide which operator to use in which deployment scenario, this study aims to empirically assess the accuracy vs latency trade-off of white-box (training-based) and black-box operators (non-training-based) and their combinations in an Edge AI setup. We perform inference experiments including 3 white-box (i.e., QAT, Pruning, Knowledge Distillation), 2 black-box (i.e., Partition, SPTQ), and their combined operators (i.e., Distilled SPTQ, SPTQ Partition) across 3 tiers (i.e., Mobile, Edge, Cloud) on 4 commonly-used Computer Vision and Natural Language Processing models to identify the effective strategies, considering the perspective of MLOps Engineers. Our Results indicate that the combination of Distillation and SPTQ operators (i.e., DSPTQ) should be preferred over non-hybrid operators when lower latency is required in the edge at small to medium accuracy drop. Among the non-hybrid operators, the Distilled operator is a better alternative in both mobile and edge tiers for lower latency performance at the cost of small to medium accuracy loss. Moreover, the operators involving distillation show lower latency in resource-constrained tiers (Mobile, Edge) compared to the operators involving Partitioning across Mobile and Edge tiers. For textual subject models, which have low input data size requirements, the Cloud tier is a better alternative for the deployment of operators than the Mobile, Edge, or Mobile-Edge tier (the latter being used for operators involving partitioning). In contrast, for image-based subject models, which have high input data size requirements, the Edge tier is a better alternative for operators than Mobile, Edge, or their combination.

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

↑