Bonsai -- Diverse and Shallow Trees for Extreme Multi-label Classification

Sujay Khandagale, Han Xiao, Rohit Babbar
4/17/2019
cs.LGstat.ML

Official code: xmc-aalto/bonsai (29 stars, BSD-3-Clause, last commit 2019-07-27).

Abstract

Extreme multi-label classification (XMC) refers to supervised multi-label learning involving hundreds of thousand or even millions of labels. In this paper, we develop a suite of algorithms, called Bonsai, which generalizes the notion of label representation in XMC, and partitions the labels in the representation space to learn shallow trees. We show three concrete realizations of this label representation space including : (i) the input space which is spanned by the input features, (ii) the output space spanned by label vectors based on their co-occurrence with other labels, and (iii) the joint space by combining the input and output representations. Furthermore, the constraint-free multi-way partitions learnt iteratively in these spaces lead to shallow trees. By combining the effect of shallow trees and generalized label representation, Bonsai achieves the best of both worlds - fast training which is comparable to state-of-the-art tree-based methods in XMC, and much better prediction accuracy, particularly on tail-labels. On a benchmark Amazon-3M dataset with 3 million labels, \bonsai outperforms a state-of-the-art one-vs-rest method in terms of prediction accuracy, while being approximately 200 times faster to train. The code for Bonsai is available at \url{https://github.com/xmc-aalto/bonsai}

View on arXivView PDF

Code Implementations(1)

xmc-aalto/bonsaiOfficial100%
BSD-3-Clause

code for paper submission "Bonsai - Diverse and Shallow Trees for ExtremeMulti-label Classification"

298C, C++Jun 13, 20197 years agoBSD-3-Clause
classificationextreme-multi-label-classificationmulti-label-classificationsupervised-learning

Similar Papers

Cite this paper

@article{khandagale2019bonsai,
  title  = {Bonsai -- Diverse and Shallow Trees for Extreme Multi-label Classification},
  author = {Sujay Khandagale and Han Xiao and Rohit Babbar},
  year   = {2019},
  eprint = {1904.08249},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.08249}
}

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/1904.08249.svg)](https://codeofpaper.com/paper/1904.08249)

Discussion