arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.07288cs.LGstat.ML
收藏

交叉熵损失函数:理论分析与应用

Cross-Entropy Loss Functions: Theoretical Analysis and Applications

Courant Institute of Mathematical Sciences(柯朗数学科学研究所);Google Research(谷歌研究院)

Anqi Mao, Mehryar Mohri, Yutao Zhong

AI总结:

本研究理论分析了comp-sum损失族(含交叉熵),首次给出其H-一致性界,并引入平滑对抗comp-sum损失,提出新对抗鲁棒性算法,实验优于现有方法。

摘要:

交叉熵是一种在应用中广泛使用的损失函数。当使用softmax时,它等同于应用于神经网络输出的逻辑损失。但是,当使用交叉熵作为替代损失时,我们能依赖什么保证呢?我们对一大类损失函数——comp-sum损失——进行了理论分析,这类损失函数包括交叉熵(或逻辑损失)、广义交叉熵、平均绝对误差以及其他类似交叉熵的损失函数。我们首次为这些损失函数给出了$H$-一致性界。这些是非渐近保证,对于特定的假设集$H$,用替代损失的估计误差来上界零一损失估计误差。我们进一步证明了我们的界是紧的。这些界依赖于称为最小化间隙的量。为了使它们更明确,我们对comp-sum损失的这些间隙进行了具体分析。我们还引入了一类新的损失函数,即平滑对抗comp-sum损失,它们是通过在对应的comp-sum损失中添加一个相关的平滑项而得到的。我们通过证明这些损失函数具有$H$-一致性界,表明它们在对抗设置中是有益的。这导致了新的对抗鲁棒性算法,这些算法包括最小化正则化的平滑对抗comp-sum损失。虽然我们的主要目的是理论分析,但我们也进行了广泛的实证分析,比较了comp-sum损失。我们进一步报告了一系列实验的结果,表明我们的对抗鲁棒性算法优于当前最先进的方法,同时实现了更优的非对抗精度。

英文摘要:

Cross-entropy is a widely used loss function in applications. It coincides with the logistic loss applied to the outputs of a neural network, when the softmax is used. But, what guarantees can we rely on when using cross-entropy as a surrogate loss? We present a theoretical analysis of a broad family of loss functions, comp-sum losses, that includes cross-entropy (or logistic loss), generalized cross-entropy, the mean absolute error and other cross-entropy-like loss functions. We give the first $H$-consistency bounds for these loss functions. These are non-asymptotic guarantees that upper bound the zero-one loss estimation error in terms of the estimation error of a surrogate loss, for the specific hypothesis set $H$ used. We further show that our bounds are tight. These bounds depend on quantities called minimizability gaps. To make them more explicit, we give a specific analysis of these gaps for comp-sum losses. We also introduce a new family of loss functions, smooth adversarial comp-sum losses, that are derived from their comp-sum counterparts by adding in a related smooth term. We show that these loss functions are beneficial in the adversarial setting by proving that they admit $H$-consistency bounds. This leads to new adversarial robustness algorithms that consist of minimizing a regularized smooth adversarial comp-sum loss. While our main purpose is a theoretical analysis, we also present an extensive empirical analysis comparing comp-sum losses. We further report the results of a series of experiments demonstrating that our adversarial robustness algorithms outperform the current state-of-the-art, while also achieving a superior non-adversarial accuracy.

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

↑