arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.05555cs.CV
收藏

基于有效样本数的类平衡损失

Class-Balanced Loss Based on Effective Number of Samples

Cornell University(康奈尔大学);Cornell Tech(康奈尔科技学院);Google Brain(谷歌大脑);Alphabet Inc.(字母表公司)

Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, Serge Belongie

摘要:

随着大规模真实世界数据集的快速增长,解决长尾数据分布问题变得至关重要(即,少数几个类占大部分数据,而大多数类代表性不足)。现有的解决方案通常采用类重新平衡策略,例如基于每个类的观测数量重新采样和重新加权。在这项工作中,我们认为,随着样本数量的增加,新增加的数据点的额外好处将减少。我们引入了一种新的理论框架来测量数据重叠与每个样本相关联的一个小的相邻区域,而不是一个单一的点。有效样本数定义为样本体积,可通过简单公式$(1-β^{n})/(1-β)$计算,其中$n$为样本数,$β\in [0,1)$为超参数。我们设计了一个重新加权方案,使用每个类的有效样本数来重新平衡损失,从而产生类平衡损失。在人工诱导的长尾CIFAR数据集和包括ImageNet和iNaturalist在内的大规模数据集上进行了全面的实验。我们的研究结果表明,当使用所提出的类平衡损失进行训练时,网络能够在长尾数据集上实现显着的性能提升。

英文摘要:

With the rapid increase of large-scale, real-world datasets, it becomes critical to address the problem of long-tailed data distribution (i.e., a few classes account for most of the data, while most classes are under-represented). Existing solutions typically adopt class re-balancing strategies such as re-sampling and re-weighting based on the number of observations for each class. In this work, we argue that as the number of samples increases, the additional benefit of a newly added data point will diminish. We introduce a novel theoretical framework to measure data overlap by associating with each sample a small neighboring region rather than a single point. The effective number of samples is defined as the volume of samples and can be calculated by a simple formula $(1-β^{n})/(1-β)$, where $n$ is the number of samples and $β\in [0,1)$ is a hyperparameter. We design a re-weighting scheme that uses the effective number of samples for each class to re-balance the loss, thereby yielding a class-balanced loss. Comprehensive experiments are conducted on artificially induced long-tailed CIFAR datasets and large-scale datasets including ImageNet and iNaturalist. Our results show that when trained with the proposed class-balanced loss, the network is able to achieve significant performance gains on long-tailed datasets.

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

↑