arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1705.10246stat.MLcs.LG
收藏

快速单类分类与Logit分离原理

Fast Single-Class Classification and the Principle of Logit Separation

University of Augsburg(奥格斯堡大学);Ben-Gurion University of the Negev(内盖夫本-古里安大学);Imperial College London(伦敦帝国学院)

Gil Keren, Sivan Sabato, Björn Schuller

摘要:

我们考虑神经网络训练,在应用程序中,有许多可能的类,但在测试时,任务是一个二元分类任务,确定给定的例子是否属于一个特定的类,其中感兴趣的类可以是不同的每次应用分类器。例如,这是实时图像搜索的情况。我们定义了单Logit分类(SLC)任务:训练网络,以便在测试时,可以仅基于该类的输出logit,以计算高效的方式准确识别示例是否属于给定类。我们提出了一个自然的原则,Logit分离原则,作为选择和设计适合SLC的损失的指导方针。我们表明,交叉熵损失函数不符合Logit分离原理。相比之下,有已知的损失函数,以及我们提出的新的批量损失函数,这是符合这一原则。我们总共研究了七个损失函数。我们的实验表明,实际上在几乎所有情况下,与不符合Logit分离原理的损失相比,符合Logit分离原理的损失在SLC任务中获得至少20%的相对准确度提高,有时甚至更多。此外,我们表明,快速SLC不会导致任何下降,在二进制分类的准确性相比,标准的分类,其中所有的logits计算,并产生一个加速增长的类的数量。例如,当类的数量为400,000时,我们演示了10倍的加速。用于优化新批次损失的Tensorflow代码可在https://github.com/cruvadom/Logit Separation上公开获取。

英文摘要:

We consider neural network training, in applications in which there are many possible classes, but at test-time, the task is a binary classification task of determining whether the given example belongs to a specific class, where the class of interest can be different each time the classifier is applied. For instance, this is the case for real-time image search. We define the Single Logit Classification (SLC) task: training the network so that at test-time, it would be possible to accurately identify whether the example belongs to a given class in a computationally efficient manner, based only on the output logit for this class. We propose a natural principle, the Principle of Logit Separation, as a guideline for choosing and designing losses suitable for the SLC. We show that the cross-entropy loss function is not aligned with the Principle of Logit Separation. In contrast, there are known loss functions, as well as novel batch loss functions that we propose, which are aligned with this principle. In total, we study seven loss functions. Our experiments show that indeed in almost all cases, losses that are aligned with the Principle of Logit Separation obtain at least 20% relative accuracy improvement in the SLC task compared to losses that are not aligned with it, and sometimes considerably more. Furthermore, we show that fast SLC does not cause any drop in binary classification accuracy, compared to standard classification in which all logits are computed, and yields a speedup which grows with the number of classes. For instance, we demonstrate a 10x speedup when the number of classes is 400,000. Tensorflow code for optimizing the new batch losses is publicly available at https://github.com/cruvadom/Logit Separation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑