Beyond One-Hot-Encoding: Injecting Semantics to Drive Image Classifiers

08/01/2023
by   Alan Perotti, et al.
0

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

READ FULL TEXT

page 5

page 7

page 9

page 15

research
08/13/2020

Semantically Adversarial Learnable Filters

We present the first adversarial framework that crafts perturbations tha...
research
04/02/2020

Learning Representations For Images With Hierarchical Labels

Image classification has been studied extensively but there has been lim...
research
03/06/2020

SimLoss: Class Similarities in Cross Entropy

One common loss function in neural network classification tasks is Categ...
research
04/02/2020

Hierarchical Image Classification using Entailment Cone Embeddings

Image classification has been studied extensively, but there has been li...
research
09/09/2022

Improving Model Training via Self-learned Label Representations

Modern neural network architectures have shown remarkable success in sev...
research
11/15/2019

Label-similarity Curriculum Learning

Curriculum learning can improve neural network training by guiding the o...

Please sign up or login with your details

Forgot password? Click here to reset