EARLIN:资源高效协作推理的早期分布外检测
EARLIN: Early Out-of-Distribution Detection for Resource-efficient Collaborative Inference
摘要:
协作推断使得资源受限的边缘设备能够通过上传输入(例如,图像)到服务器(即,云),运行重型深度学习模型。虽然这种设置对于成功的推理具有成本效益,但当模型面对未对其进行训练的输入样本(称为分布外(OOD)样本)时,它的表现严重不足。如果边缘设备至少可以检测到输入样本是OOD,则可以通过不将这些输入上传到服务器进行推理工作负载来潜在地节省通信和计算资源。在本文中,我们提出了一种新的轻量级OOD检测方法,该方法从预训练的CNN模型的浅层中挖掘重要特征,并基于在缩减特征空间上定义的距离函数将输入样本检测为ID(分布内)或OOD。我们的技术(a)适用于预先训练的模型,而无需对这些模型进行任何重新训练,并且(b)不会将自己暴露于任何OOD数据集(所有检测参数都是从ID训练数据集获得的)。为此,我们开发了EARLIN(EARLy OOD detection for Collaborative INference),它采用预先训练的模型,并在OOD检测层对模型进行分区,并将相当小的OOD部分部署在边缘设备上,其余部分部署在云端。通过使用真实数据集和原型实现进行实验,我们表明,当在基准数据集上预训练的流行深度学习模型上对流行的OOD数据集进行测试时,我们的技术在整体准确性和成本方面比其他方法取得了更好的结果。
英文摘要:
Collaborative inference enables resource-constrained edge devices to make inferences by uploading inputs (e.g., images) to a server (i.e., cloud) where the heavy deep learning models run. While this setup works cost-effectively for successful inferences, it severely underperforms when the model faces input samples on which the model was not trained (known as Out-of-Distribution (OOD) samples). If the edge devices could, at least, detect that an input sample is an OOD, that could potentially save communication and computation resources by not uploading those inputs to the server for inference workload. In this paper, we propose a novel lightweight OOD detection approach that mines important features from the shallow layers of a pretrained CNN model and detects an input sample as ID (In-Distribution) or OOD based on a distance function defined on the reduced feature space. Our technique (a) works on pretrained models without any retraining of those models, and (b) does not expose itself to any OOD dataset (all detection parameters are obtained from the ID training dataset). To this end, we develop EARLIN (EARLy OOD detection for Collaborative INference) that takes a pretrained model and partitions the model at the OOD detection layer and deploys the considerably small OOD part on an edge device and the rest on the cloud. By experimenting using real datasets and a prototype implementation, we show that our technique achieves better results than other approaches in terms of overall accuracy and cost when tested against popular OOD datasets on top of popular deep learning models pretrained on benchmark datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。