通过反映生产中的偏差数据来推广神经网络
Generalizing Neural Networks by Reflecting Deviating Data in Production
摘要:
通过足够大的训练和测试数据集进行训练,深度神经网络(DNN)有望推广。然而,在实际部署中,输入可能偏离训练数据集分布。这是使用有限数据集的一个基本问题。更糟糕的是,实际输入可能会随着时间的推移而改变预期分布。总之,这些问题可能会导致部署的DNN在生产中错误预测。在这项工作中,我们提出了一种运行时方法,可以减轻DNN的意外运行时输入引起的DNN错误预测。与之前考虑DNN本身的结构和参数的工作相比,我们的方法将DNN视为黑盒,并专注于DNN的输入。我们的方法有两个步骤。首先,它识别和区分“看不见的”语义保持输入。为此,我们使用了一个基于暹罗网络学习的距离度量的分布分析器。其次,我们的方法将这些意想不到的输入转换为来自训练集的输入,这些输入被识别为具有相似的语义。我们称这个过程为输入反射,并将其表述为训练集上嵌入空间上的搜索问题。该嵌入空间由四元组网络学习,作为主题模型的辅助模型,以提高泛化能力。我们基于上述两步方法实现了一个名为InputReflector的工具,并在CIFAR-10、MNIST和FMINST图像数据集上训练的三个DNN模型上进行了实验评估。结果表明,InputReflector可以有效地区分保留分布语义的输入(例如,模糊的、明亮的、对比的和缩放的图像)和来自正常输入的分布外的输入。
英文摘要:
Trained with a sufficiently large training and testing dataset, Deep Neural Networks (DNNs) are expected to generalize. However, inputs may deviate from the training dataset distribution in real deployments. This is a fundamental issue with using a finite dataset. Even worse, real inputs may change over time from the expected distribution. Taken together, these issues may lead deployed DNNs to mis-predict in production. In this work, we present a runtime approach that mitigates DNN mis-predictions caused by the unexpected runtime inputs to the DNN. In contrast to previous work that considers the structure and parameters of the DNN itself, our approach treats the DNN as a blackbox and focuses on the inputs to the DNN. Our approach has two steps. First, it recognizes and distinguishes "unseen" semantically-preserving inputs. For this we use a distribution analyzer based on the distance metric learned by a Siamese network. Second, our approach transforms those unexpected inputs into inputs from the training set that are identified as having similar semantics. We call this process input reflection and formulate it as a search problem over the embedding space on the training set. This embedding space is learned by a Quadruplet network as an auxiliary model for the subject model to improve the generalization. We implemented a tool called InputReflector based on the above two-step approach and evaluated it with experiments on three DNN models trained on CIFAR-10, MNIST, and FMINST image datasets. The results show that InputReflector can effectively distinguish inputs that retain semantics of the distribution (e.g., blurred, brightened, contrasted, and zoomed images) and out-of-distribution inputs from normal inputs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。