Leveraging Class Hierarchies with Metric-Guided Prototype Learning

Vivien Sainte Fare Garnot, Loic Landrieu
7/6/2020
cs.LGcs.CVstat.ML

Official code: VSainteuf/metric-guided-prototypes-pytorch (30 stars, Jupyter Notebook, MIT, PyTorch, last commit 2021-10-20).

Abstract

In many classification tasks, the set of target classes can be organized into a hierarchy. This structure induces a semantic distance between classes, and can be summarised under the form of a cost matrix, which defines a finite metric on the class set.

Show full abstract

In this paper, we propose to model the hierarchical class structure by integrating this metric in the supervision of a prototypical network. Our method relies on jointly learning a feature-extracting network and a set of class prototypes whose relative arrangement in the embedding space follows an hierarchical metric. We show that this approach allows for a consistent improvement of the error rate weighted by the cost matrix when compared to traditional methods and other prototype-based strategies. Furthermore, when the induced metric contains insight on the data structure, our method improves the overall precision as well. Experiments on four different public datasets - from agricultural time series classification to depth image semantic segmentation - validate our approach.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

PyTorch implementation of Metric-Guided Prototype Learning for hierarchical classification.

304Jupyter Notebook, PythonJul 4, 20205 years agoMIT
classificationclassification-algorithimsdeep-learningdeeplearninghierarchical+6 more

Similar Papers

Cite this paper

@article{garnot2020leveraging,
  title  = {Leveraging Class Hierarchies with Metric-Guided Prototype Learning},
  author = {Vivien Sainte Fare Garnot and Loic Landrieu},
  year   = {2020},
  eprint = {2007.03047},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.03047}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.03047.svg)](https://codeofpaper.com/paper/2007.03047)

Discussion