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.
翻译:协作推断使资源受限制的边缘设备能够通过将输入样本(如图像)上传到一个服务器(即云层)进行深层学习模型运行的服务器(即云层),从而做出推断。虽然这一设置对成功的推断具有成本效益作用,但当模型面对模型未经过培训的输入样本(称为“OOOD”样本)时,它就会严重不合格。如果边缘设备至少能够检测到输入样本是OOOD,通过不将这些输入输入上传到服务器进行推断工作,从而可能节省通信和计算资源。在本文件中,我们提议采用新的轻重量 OOOD检测方法,从事先经过培训的CNN模型的浅层中挖掘重要特征,然后在模型(Indistration)或OOD在功能缩小的距离功能上发现一个输入样本。我们的技术(a) 在没有进行大众再培训这些模型的情况下,预先测试模型是OOOD,并且(b)不会暴露OOD数据设置的任何 OOD数据设置(所有检测模型都是通过内部的测试模型获得的 IM Aredigradude a real dead ex ex ex demogradual demod sal demod) laveal deal deals the west the west the west the wes the laveal deal deal deal deal dece the wece ex develment the ex deald ex dece ex a ex the wes to wece sal demodal deal detrad sal deced sald sald sald sald sald sald saldsts tod sald saldss sald salds salds salds salds sals sald sal sal sals tods) lats)。