Taxes Are All You Need: Integration of Taxonomical Hierarchy Relationships into the Contrastive Loss

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kokilepersaud, Kiran, Yarici, Yavuz, Prabhushankar, Mohit, AlRegib, Ghassan
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929381121720320
author Kokilepersaud, Kiran
Yarici, Yavuz
Prabhushankar, Mohit
AlRegib, Ghassan
author_facet Kokilepersaud, Kiran
Yarici, Yavuz
Prabhushankar, Mohit
AlRegib, Ghassan
contents In this work, we propose a novel supervised contrastive loss that enables the integration of taxonomic hierarchy information during the representation learning process. A supervised contrastive loss operates by enforcing that images with the same class label (positive samples) project closer to each other than images with differing class labels (negative samples). The advantage of this approach is that it directly penalizes the structure of the representation space itself. This enables greater flexibility with respect to encoding semantic concepts. However, the standard supervised contrastive loss only enforces semantic structure based on the downstream task (i.e. the class label). In reality, the class label is only one level of a \emph{hierarchy of different semantic relationships known as a taxonomy}. For example, the class label is oftentimes the species of an animal, but between different classes there are higher order relationships such as all animals with wings being ``birds". We show that by explicitly accounting for these relationships with a weighting penalty in the contrastive loss we can out-perform the supervised contrastive loss. Additionally, we demonstrate the adaptability of the notion of a taxonomy by integrating our loss into medical and noise-based settings that show performance improvements by as much as 7%.
format Preprint
id arxiv_https___arxiv_org_abs_2406_06848
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Taxes Are All You Need: Integration of Taxonomical Hierarchy Relationships into the Contrastive Loss
Kokilepersaud, Kiran
Yarici, Yavuz
Prabhushankar, Mohit
AlRegib, Ghassan
Computer Vision and Pattern Recognition
Artificial Intelligence
In this work, we propose a novel supervised contrastive loss that enables the integration of taxonomic hierarchy information during the representation learning process. A supervised contrastive loss operates by enforcing that images with the same class label (positive samples) project closer to each other than images with differing class labels (negative samples). The advantage of this approach is that it directly penalizes the structure of the representation space itself. This enables greater flexibility with respect to encoding semantic concepts. However, the standard supervised contrastive loss only enforces semantic structure based on the downstream task (i.e. the class label). In reality, the class label is only one level of a \emph{hierarchy of different semantic relationships known as a taxonomy}. For example, the class label is oftentimes the species of an animal, but between different classes there are higher order relationships such as all animals with wings being ``birds". We show that by explicitly accounting for these relationships with a weighting penalty in the contrastive loss we can out-perform the supervised contrastive loss. Additionally, we demonstrate the adaptability of the notion of a taxonomy by integrating our loss into medical and noise-based settings that show performance improvements by as much as 7%.
title Taxes Are All You Need: Integration of Taxonomical Hierarchy Relationships into the Contrastive Loss
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2406.06848