Skip to main content
QUICK REVIEW

[Paper Review] Bonsai -- Diverse and Shallow Trees for Extreme Multi-label Classification

Sujay Khandagale, Han Xiao|arXiv (Cornell University)|Apr 17, 2019
Text and Document Classification TechnologiesComputer Science42 references111 citations
TL;DR

Bonsai introduces a family of XMC methods that use generalized label representations and shallow, high-branching-factor trees to achieve fast training and strong tail-label prediction accuracy, outperforming state-of-the-art tree methods and rivaling one-vs-rest on large-scale datasets.

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}

Motivation & Objective

  • Motivate efficient extreme multi-label classification (XMC) with many tail labels under power-law distributions.
  • Propose a generalized label representation framework that expands beyond input-space label representations.
  • Develop a shallow, high-branching-factor tree architecture to reduce error propagation in cascaded predictions.
  • Demonstrate that combining diverse label representations with shallow trees yields both fast training and high accuracy, especially on tail-labels.

Proposed method

  • Represent each label in three spaces: input-space (sum of active instances), output-space (label co-occurrence with other labels), and a joint space by concatenating input and output representations.
  • Partition the label space using K-means into K clusters per node with K typically large (K ≥ 100) to create shallow trees and diverse partitions.
  • Train K-way one-vs-rest linear classifiers at each non-leaf node to route predictions down the tree, and one-vs-rest classifiers at leaf nodes to predict actual labels.
  • Allow unconstrained, multi-way (K-ary) partitions to encourage diversity and avoid deep error propagation typical of binary trees like Parabel.
  • Use beam search during prediction to traverse the tree and evaluate leaf-node classifiers, mitigating propagation errors.

Experimental results

Research questions

  • RQ1Can generalized label representations improve partition quality and tail-label coverage in XMC?
  • RQ2Does increasing the branching factor to create shallow trees reduce error propagation and improve tail-label accuracy compared to deeper binary trees?
  • RQ3How do input-space, output-space, and joint-space label representations compare in isolation and in combination within Bonsai?
  • RQ4What is the practical training speed and scalability of Bonsai on web-scale label sets (e.g., millions of labels) relative to state-of-the-art methods?
  • RQ5How does Bonsai perform across diverse datasets with varying tail-label distributions and feature counts?

Key findings

  • Bonsai with generalized label representations achieves strong predictive performance and tail-label coverage across multiple datasets.
  • A high-arity, shallow tree (K ≥ 100) reduces error propagation compared to deeper, binary trees, yielding improved tail-label accuracy.
  • Joint input-output representations (Bonsai-io) often outperform input-only (Bonsai-i) and output-only (Bonsai-o), especially when average labels per point are high.
  • On the Amazon-3M dataset with 3 million labels, Bonsai trained much faster (approximately 200x) than a state-of-the-art one-vs-rest method while achieving competitive accuracy.
  • Across datasets (EURLex-4K, Wikipedia-31K, WikiLSHTC-325K, Wikipedia-500K, Amazon-670K, Amazon-3M), Bonsai variants consistently outperform Parabel in precision@k and nDCG@k metrics; DiSMEC sometimes edges Bonsai on certain datasets but with substantially higher training cost.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.