超越独热编码:注入语义以驱动图像分类器
Beyond One-Hot-Encoding: Injecting Semantics to Drive Image Classifiers
AI总结:
针对独热编码忽略类别语义相似性的问题,提出一种从任何语义信息推导额外损失项的通用方法,用于训练图像分类器,提升了模型的可解释性、可信度及对抗鲁棒性。
摘要:
图像中蕴含着与现实世界本体相关的语义信息:犬种之间共享哺乳动物的相似性,食物图片通常在家庭环境中呈现,等等。然而,在训练用于图像分类的机器学习模型时,对象类别之间的相对相似性通常与独热编码标签配对。根据这种逻辑,如果一张图像被标记为“勺子”,那么在训练损失方面,“茶匙”和“鲨鱼”是同样错误的。为了克服这一局限性,我们探索了整合反映本体和语义知识的额外目标,以提高模型的可解释性和可信度。我们提出了一种通用方法,允许从关于分类标签的任何类型的语义信息中推导出额外的损失项。首先,我们展示了如何将该方法应用于本体和词嵌入,并讨论了由此产生的信息如何驱动监督学习过程。其次,我们使用语义增强的损失来训练图像分类器,并分析了准确率、错误严重程度和所学内部表示之间的权衡。最后,我们讨论了如何在可解释性和对抗鲁棒性方面进一步利用该方法。代码仓库:https://github.com/S1M0N38/semantic-encodings
英文摘要:
Images are loaded with semantic information that pertains to real-world ontologies: dog breeds share mammalian similarities, food pictures are often depicted in domestic environments, and so on. However, when training machine learning models for image classification, the relative similarities amongst object classes are commonly paired with one-hot-encoded labels. According to this logic, if an image is labelled as 'spoon', then 'tea-spoon' and 'shark' are equally wrong in terms of training loss. To overcome this limitation, we explore the integration of additional goals that reflect ontological and semantic knowledge, improving model interpretability and trustworthiness. We suggest a generic approach that allows to derive an additional loss term starting from any kind of semantic information about the classification label. First, we show how to apply our approach to ontologies and word embeddings, and discuss how the resulting information can drive a supervised learning process. Second, we use our semantically enriched loss to train image classifiers, and analyse the trade-offs between accuracy, mistake severity, and learned internal representations. Finally, we discuss how this approach can be further exploited in terms of explainability and adversarial robustness. Code repository: https://github.com/S1M0N38/semantic-encodings
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。