arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.14076cs.LGcs.CVstat.ML
收藏

面向条件模型的带软目标噪声对比估计研究

Towards noise contrastive estimation with soft targets for conditional models

European Bioinformatics Institute(欧洲生物信息研究所);European Molecular Biology Laboratory(欧洲分子生物学实验室)

Johannes Hugger, Virginie Uhlmann

AI总结:

针对标准InfoNCE无法结合软目标的局限,提出兼容概率目标的软目标InfoNCE损失,在ImageNet等基准上性能媲美软目标交叉熵基线、优于硬目标相关损失,且易实现适配现有分类模型。

摘要:

软目标结合交叉熵损失已被证明能提升深度神经网络在监督分类任务上的泛化性能。然而,标准交叉熵损失假设数据服从类别分布,这在实际情况中往往不成立。相比之下,InfoNCE(信息噪声对比估计)不依赖这种显式假设,而是通过负采样隐式估计真实条件分布。遗憾的是,其标准公式无法与软目标结合,阻碍了它与复杂训练策略的搭配使用。在本文中,我们通过提出一种与概率目标兼容的损失函数来解决这一局限。我们提出的新型软目标InfoNCE损失概念简洁、计算高效,且可通过噪声对比估计框架推导得出。通过一个简单示例,我们论证了交叉熵的类别分布假设的缺陷,并讨论了从软分布中采样的影响。我们观察到,在包括ImageNet在内的主流基准测试上,软目标InfoNCE的表现与性能强劲的软目标交叉熵基线相当,且优于硬目标负对数似然(NLL)损失和InfoNCE损失。最后,我们提供了该损失的简易实现,专为监督分类设计,且与使用交叉熵训练的深度分类模型完全兼容。

英文摘要:

Soft targets combined with the cross-entropy loss have shown to improve generalization performance of deep neural networks on supervised classification tasks. The standard cross-entropy loss however assumes data to be categorically distributed, which may often not be the case in practice. In contrast, InfoNCE does not rely on such an explicit assumption but instead implicitly estimates the true conditional through negative sampling. Unfortunately, it cannot be combined with soft targets in its standard formulation, hindering its use in combination with sophisticated training strategies. In this paper, we address this limitation by proposing a loss function that is compatible with probabilistic targets. Our new soft target InfoNCE loss is conceptually simple, efficient to compute, and can be motivated through the framework of noise contrastive estimation. Using a toy example, we demonstrate shortcomings of the categorical distribution assumption of cross-entropy, and discuss implications of sampling from soft distributions. We observe that soft target InfoNCE performs on par with strong soft target cross-entropy baselines and outperforms hard target NLL and InfoNCE losses on popular benchmarks, including ImageNet. Finally, we provide a simple implementation of our loss, geared towards supervised classification and fully compatible with deep classification models trained with cross-entropy.

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

↑