移动边缘与云上的分布式推理:一种基于数据制图的聚类方法
Distributed Inference on Mobile Edge and Cloud: A Data-Cartography based Clustering Approach
AI总结:
本文提出基于数据制图的分布式推理方法\our{},通过评估样本复杂度在移动、边缘和云端分配计算任务,在GLUE数据集上降低超43%推理成本且准确率下降不足0.5%。
摘要:
DNN的庞大模型规模给其在移动、边缘和IoT等资源受限设备上的部署带来了巨大挑战。为解决这一问题,可以采用分布式推理框架。在该框架中,小规模DNN(初始层)部署在移动设备上,较大版本部署在边缘设备上,完整DNN部署在云端。低复杂度(简单)样本可在移动端处理,中等复杂度(中等)样本在边缘设备处理,高复杂度(困难)样本在云端处理。由于每个样本的复杂度事先未知,分布式推理中的关键问题在于确定样本复杂度以进行适当的DNN处理。我们引入了一种名为\our{}的新方法,该方法利用了最初为增强DNN泛化能力而提出的数据制图方法。通过采用数据制图,我们评估样本复杂度。\our{}旨在提高准确率,同时考虑从移动端到边缘/云的卸载成本。我们在涵盖各种NLP任务的GLUE数据集上的实验结果表明,与所有推理都在云端执行相比,我们的方法将推理成本显著降低了43%以上,同时准确率下降幅度极小,不到0.5%。源代码可在 https://anonymous.4open.science/r/DIMEC-1B04 获取。
英文摘要:
The large size of DNNs poses a significant challenge for deployment on devices with limited resources, such as mobile, edge, and IoT platforms. To address this issue, a distributed inference framework can be utilized. In this framework, a small-scale DNN (initial layers) is deployed on mobile devices, a larger version on edge devices, and the full DNN on the cloud. Samples with low complexity (easy) can be processed on mobile, those with moderate complexity (medium) on edge devices, and high complexity (hard) samples on the cloud. Given that the complexity of each sample is unknown in advance, the crucial question in distributed inference is determining the sample complexity for appropriate DNN processing. We introduce a novel method named \our{}, which leverages the Data Cartography approach initially proposed for enhancing DNN generalization. By employing data cartography, we assess sample complexity. \our{} aims to boost accuracy while considering the offloading costs from mobile to edge/cloud. Our experimental results on GLUE datasets, covering a variety of NLP tasks, indicate that our approach significantly lowers inference costs by more than 43\% while maintaining a minimal accuracy drop of less than 0.5\% compared to performing all inferences on the cloud. The source code is available at https://anonymous.4open.science/r/DIMEC-1B04.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。