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

当标签具有结构时:通过层次感知交叉熵改进图像分类

When Labels Have Structure: Improving Image Classification with Hierarchy-Aware Cross-Entropy

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology(麻省理工学院电子工程与计算机科学系);Department of Computer Science, University of Milan(米兰大学计算机科学系);Department of Control and Computer Engineering, Politecnico di Torino(都灵理工大学控制与计算机工程系);Eric and Wendy Schmidt Center, Broad Institute of MIT and Harvard(MIT和哈佛大学Broad研究所埃里克和wendy Schmidt中心)

April Chan, Davide D'Ascenzo, Sebastiano Cultrera di Montesano

AI总结:

本文提出层次感知交叉熵(HACE),通过整合已知的类别层次结构来改进图像分类,实验表明在多种架构和数据集上HACE在端到端训练和线性探测任务中均表现出色。

摘要:

标准交叉熵是机器学习中广泛使用的分类损失函数,但其将所有分类错误视为同等,忽略了类别层次结构所编码的语义距离。我们提出了层次感知交叉熵(HACE),这是一种可直接替换标准交叉熵的损失函数,直接将已知的类别层次结构整合到损失中。HACE结合了两个组件:预测聚合,将模型的概率质量向上传播通过类别层次结构,以确保父节点积累其子节点的置信度;以及祖先标签平滑,将真实类的地面真实信号沿从真实类到根节点的路径分布。我们在CIFAR-100、FGVC Aircraft和NABirds上评估HACE,在两种模式下进行:跨六种架构的端到端训练(涵盖卷积和注意力设计)以及冻结DINOv2-Large特征上的线性探测。在端到端训练中,HACE在18种架构-数据集对中的15种中优于标准交叉熵,平均提升4.66%。在冻结DINOv2-Large特征上的线性探测中,HACE在所有三个数据集上均优于所有竞争方法,平均改进2.18%。

英文摘要:

Standard cross-entropy is the default classification loss across virtually all of machine learning, yet it treats all misclassifications equally, ignoring the semantic distances that a class hierarchy encodes. We propose Hierarchy-Aware Cross-Entropy (HACE), a drop-in replacement for standard cross-entropy that incorporates a known class hierarchy directly into the loss. HACE combines two components: prediction aggregation, which propagates the model's probability mass upward through the class hierarchy to ensure that parent nodes accumulate the confidence of their children; and ancestral label smoothing, which distributes the ground-truth signal along the path from the true class to the root. We evaluate HACE on CIFAR-100, FGVC Aircraft, and NABirds in two regimes: end-to-end training across six architectures spanning convolutional and attention-based designs, and linear probing on frozen DINOv2-Large features. In end-to-end training, HACE improves accuracy over standard cross-entropy in 15 out of 18 architecture--dataset pairs, with a mean gain of 4.66\%. In linear probing on frozen DINOv2-Large features, HACE outperforms all competing methods on all three datasets, with a mean improvement of 2.18\% over the next best baseline.

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

↑