arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.05666cs.CVcs.AIcs.LG
收藏

Jaccard度量损失:使用软标签优化Jaccard指数

Jaccard Metric Losses: Optimizing the Jaccard Index with Soft Labels

KU Leuven(鲁汶大学);Tsinghua University(清华大学)

Zifu Wang, Xuefei Ning, Matthew B. Blaschko

AI总结:

提出Jaccard度量损失(JMLs),解决传统IoU损失无法处理软标签的问题,在4个数据集和13种架构上显著提升语义分割性能并超越现有知识蒸馏与半监督方法。

摘要:

交并比损失是直接优化Jaccard指数的替代方法。在语义分割任务中,将交并比损失作为损失函数的一部分,已被证明比仅优化交叉熵损失等逐像素损失具有更优的性能。然而,我们发现这些损失在支持标签平滑、知识蒸馏和半监督学习等关键训练技术时缺乏灵活性,主要原因是它们无法处理软标签。为了解决这一问题,我们提出了Jaccard度量损失,它在硬标签的标准设置下与软Jaccard损失完全相同,但完全兼容软标签。我们将Jaccard度量损失应用于软标签的三个重要用例:标签平滑、知识蒸馏和半监督学习,并展示了其提升模型准确性和校准的潜力。我们的实验表明,在4个语义分割数据集(Cityscapes、PASCAL VOC、ADE20K、DeepGlobe Land)和13种架构(包括经典CNN和最新的视觉Transformer)上,该方法相比交叉熵损失取得了持续提升。值得注意的是,我们这种直接的方法显著优于最先进的知识蒸馏和半监督学习方法。代码可在https://github.com/zifuwanggg/JDTLosses获取。

英文摘要:

Intersection over Union (IoU) losses are surrogates that directly optimize the Jaccard index. Leveraging IoU losses as part of the loss function have demonstrated superior performance in semantic segmentation tasks compared to optimizing pixel-wise losses such as the cross-entropy loss alone. However, we identify a lack of flexibility in these losses to support vital training techniques like label smoothing, knowledge distillation, and semi-supervised learning, mainly due to their inability to process soft labels. To address this, we introduce Jaccard Metric Losses (JMLs), which are identical to the soft Jaccard loss in standard settings with hard labels but are fully compatible with soft labels. We apply JMLs to three prominent use cases of soft labels: label smoothing, knowledge distillation and semi-supervised learning, and demonstrate their potential to enhance model accuracy and calibration. Our experiments show consistent improvements over the cross-entropy loss across 4 semantic segmentation datasets (Cityscapes, PASCAL VOC, ADE20K, DeepGlobe Land) and 13 architectures, including classic CNNs and recent vision transformers. Remarkably, our straightforward approach significantly outperforms state-of-the-art knowledge distillation and semi-supervised learning methods. The code is available at \href{https://github.com/zifuwanggg/JDTLosses}{https://github.com/zifuwanggg/JDTLosses}.

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

↑