AnyLoss:将分类指标转化为损失函数
AnyLoss: Transforming Classification Metrics into Loss Functions
AI总结:
本文提出AnyLoss,一种将任何基于混淆矩阵的指标转化为可微损失函数的通用方法,通过近似函数实现,有效处理不平衡数据并保持高效学习速度。
摘要:
在二分类任务中,有多种评估指标可用于衡量模型性能。然而,其中大多数指标源自混淆矩阵,且形式不可微,这使得生成能够直接优化这些指标的 differentiable 损失函数变得非常困难。缺乏解决这一挑战的方案,不仅阻碍了我们解决诸如不平衡学习等难题的能力,还要求在模型选择过程中部署计算成本高昂的超参数搜索过程。在本文中,我们提出了一种通用方法,将任何基于混淆矩阵的指标转化为损失函数,即 AnyLoss,该函数可在优化过程中使用。为此,我们使用一个近似函数使混淆矩阵以可微形式表示,这种方法使得任何基于混淆矩阵的指标都能直接用作损失函数。我们提供了近似函数的机制以确保其可操作性,并通过给出导数证明了我们损失函数的可微性。我们在多种神经网络和多个数据集上进行了广泛实验,证明了该方法对任何基于混淆矩阵的指标的普遍适用性。我们的方法在处理不平衡数据集方面尤其表现出色,并且与多个基线模型相比,其具有竞争力的学习速度凸显了其效率。
英文摘要:
Many evaluation metrics can be used to assess the performance of models in binary classification tasks. However, most of them are derived from a confusion matrix in a non-differentiable form, making it very difficult to generate a differentiable loss function that could directly optimize them. The lack of solutions to bridge this challenge not only hinders our ability to solve difficult tasks, such as imbalanced learning, but also requires the deployment of computationally expensive hyperparameter search processes in model selection. In this paper, we propose a general-purpose approach that transforms any confusion matrix-based metric into a loss function, \textit{AnyLoss}, that is available in optimization processes. To this end, we use an approximation function to make a confusion matrix represented in a differentiable form, and this approach enables any confusion matrix-based metric to be directly used as a loss function. The mechanism of the approximation function is provided to ensure its operability and the differentiability of our loss functions is proved by suggesting their derivatives. We conduct extensive experiments under diverse neural networks with many datasets, and we demonstrate their general availability to target any confusion matrix-based metrics. Our method, especially, shows outstanding achievements in dealing with imbalanced datasets, and its competitive learning speed, compared to multiple baseline models, underscores its efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。