边缘人工智能黑盒部署策略对延迟与模型性能的影响研究
On the Impact of Black-box Deployment Strategies for Edge AI on Latency and Model Performance
AI总结:
本研究通过多算子、多层级的边缘AI部署实验,实证分析不同黑盒部署策略的准确率与延迟权衡,为MLOps工程师在不同约束场景下选择最优部署方案提供依据。
摘要:
对MLOps工程师而言,确定在边缘人工智能各层级间采用何种算子组合以满足特定延迟与模型性能要求,仍是一个悬而未决的问题。本研究旨在通过实证评估不同黑盒边缘人工智能部署策略(即部署算子与部署层级的组合)在准确率与推理时间之间的权衡关系。\n本文针对4种广泛应用的计算机视觉模型开展推理实验,实验涉及3种部署算子(即Partitioning(模型分区)、Quantization(量化)、Early Exit(早退))、3个部署层级(即Mobile(移动端)、Edge(边缘端)、Cloud(云端))及其组合,从MLOps开发者的视角探究最优策略。\n研究结果表明:当需要在中等准确率损失下追求更低延迟时,采用量化+早退混合算子的边缘部署,优于非混合算子方案(边缘端量化/早退、移动端-边缘端分区)。而当以最小化准确率损失为目标时,MLOps工程师应优先选择仅在边缘端使用量化算子的方案,其延迟相较于早退/分区(边缘端/移动端-边缘端)和量化早退(边缘端)算子方案,分别表现为降低或升高。\n在受移动端CPU/RAM资源限制的场景中,跨移动端与边缘端的分区部署比移动端部署更具优势。对于输入数据样本较小的模型(如FCN),受网络约束的云端部署也可能是优于移动端/边缘端部署及分区策略的更佳选择。对于输入数据样本较大的模型(ResNet、ResNext、DUC),具备比云端/移动端更强网络/计算能力的边缘端,是比分区和移动端/云端部署策略更可行的选项。
英文摘要:
Deciding what combination of operators to use across the Edge AI tiers to achieve specific latency and model performance requirements is an open question for MLOps engineers. This study aims to empirically assess the accuracy vs inference time trade-off of different black-box Edge AI deployment strategies, i.e., combinations of deployment operators and deployment tiers. In this paper, we conduct inference experiments involving 3 deployment operators (i.e., Partitioning, Quantization, Early Exit), 3 deployment tiers (i.e., Mobile, Edge, Cloud) and their combinations on four widely used Computer-Vision models to investigate the optimal strategies from the point of view of MLOps developers. Our findings suggest that Edge deployment using the hybrid Quantization + Early Exit operator could be preferred over non-hybrid operators (Quantization/Early Exit on Edge, Partition on Mobile-Edge) when faster latency is a concern at medium accuracy loss. However, when minimizing accuracy loss is a concern, MLOps engineers should prefer using only a Quantization operator on edge at a latency reduction or increase, respectively over the Early Exit/Partition (on edge/mobile-edge) and Quantized Early Exit (on edge) operators. In scenarios constrained by Mobile CPU/RAM resources, a preference for Partitioning across mobile and edge tiers is observed over mobile deployment. For models with smaller input data samples (such as FCN), a network-constrained cloud deployment can also be a better alternative than Mobile/Edge deployment and Partitioning strategies. For models with large input data samples (ResNet, ResNext, DUC), an edge tier having higher network/computational capabilities than Cloud/Mobile can be a more viable option than Partitioning and Mobile/Cloud deployment strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。