Hybrid Losses for Hierarchical Embedding Learning
Haokun Tian, Stefan Lattner, Brian McFee, Charalampos Saitis
TL;DR
The paper addresses how traditional cross-entropy training fails to capture label similarity by exploiting a tree-structured hierarchy of fine-grained labels. It introduces a hybrid multi-task framework that combines a generalised triplet loss with various hierarchy-aware classification losses to shape the embedding space and enable generalisation to unseen classes. Key contributions include the definition of Leaf, Binary, and Per-Level losses, a tree-based triplet sampling strategy, and novel evaluation metrics that assess how well embeddings reflect the hierarchy and predict unseen classes, demonstrated on the OrchideaSOL dataset. The findings show that hierarchy-aware, multi-task hybrids (notably Per-Level alone or in combination with Triplet) improve classification, retrieval, embedding structure, and unseen-class generalisation, with potential applicability to other hierarchical labeling tasks and larger multi-label datasets like AudioSet.
Abstract
In traditional supervised learning, the cross-entropy loss treats all incorrect predictions equally, ignoring the relevance or proximity of wrong labels to the correct answer. By leveraging a tree hierarchy for fine-grained labels, we investigate hybrid losses, such as generalised triplet and cross-entropy losses, to enforce similarity between labels within a multi-task learning framework. We propose metrics to evaluate the embedding space structure and assess the model's ability to generalise to unseen classes, that is, to infer similar classes for data belonging to unseen categories. Our experiments on OrchideaSOL, a four-level hierarchical instrument sound dataset with nearly 200 detailed categories, demonstrate that the proposed hybrid losses outperform previous works in classification, retrieval, embedding space structure, and generalisation.
