通过对实时流量进行训练来提高分类器的鲁棒性
Improving robustness of classifiers by training against live traffic
摘要:
众所周知,深度学习模型对分布外输入的预测过于自信。当模型在特定的输入数据集上训练,但在实际部署时接收样本数据时,这是一个挑战。最近,已经有关于通过添加正则化项来构建对分布外样本鲁棒的分类器的工作,所述正则化项最大化分类器输出在分布外数据上的熵。然而,考虑到并不总是能够获得分布样本的挑战,作者提出了一种基于GAN的替代方案,该方案独立于分布样本的特定知识。从现有的工作中,我们还知道,访问用于正则化的真实样本分布比使用来自GAN的样本要好得多。在本文中,我们做了以下观察:在实践中,分布样本包含在流量中,击中部署的分类器。然而,流量还将包含未知比例的分布内样本。如果所有流量数据的熵被天真地最大化,这将损害分类器在分布数据上的性能。为了有效地利用这些流量数据,我们提出了一种自适应正则化技术(基于样本的最大预测概率得分),该技术比传入流量中的分布样本更严重地惩罚分布样本。这确保了分类器的整体性能不会在分布内数据上降低,而分布外样本的检测通过利用未标记的流量数据而显著提高。我们通过自然图像数据集上的实验证明了我们的方法的有效性。
英文摘要:
Deep learning models are known to be overconfident in their predictions on out of distribution inputs. This is a challenge when a model is trained on a particular input dataset, but receives out of sample data when deployed in practice. Recently, there has been work on building classifiers that are robust to out of distribution samples by adding a regularization term that maximizes the entropy of the classifier output on out of distribution data. However, given the challenge that it is not always possible to obtain out of distribution samples, the authors suggest a GAN based alternative that is independent of specific knowledge of out of distribution samples. From this existing work, we also know that having access to the true out of sample distribution for regularization works significantly better than using samples from the GAN. In this paper, we make the following observation: in practice, the out of distribution samples are contained in the traffic that hits a deployed classifier. However, the traffic will also contain a unknown proportion of in-distribution samples. If the entropy over of all of the traffic data were to be naively maximized, this will hurt the classifier performance on in-distribution data. To effectively leverage this traffic data, we propose an adaptive regularization technique (based on the maximum predictive probability score of a sample) which penalizes out of distribution samples more heavily than in distribution samples in the incoming traffic. This ensures that the overall performance of the classifier does not degrade on in-distribution data, while detection of out-of-distribution samples is significantly improved by leveraging the unlabeled traffic data. We show the effectiveness of our method via experiments on natural image datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。