Skip to main content
QUICK REVIEW

[Paper Review] Logarithmic Time One-Against-Some

Hal Daumé, Nikos Karampatziakis|arXiv (Cornell University)|Jun 15, 2016
Machine Learning and AlgorithmsComputer Science13 references13 citations
TL;DR

This paper introduces the Recall Tree, a novel online reduction for multiclass classification that achieves logarithmic time complexity in the number of classes by using a dynamically built tree to select a small subset of candidates for scoring. It combines one-against-some prediction with joint optimization of tree structure, routing functions, and class predictors, enabling performance competitive with one-against-all while offering exponential speedups for large K, with only a factor-of-2 increase in space.

ABSTRACT

We create a new online reduction of multiclass classification to binary classification for which training and prediction time scale logarithmically with the number of classes. Compared to previous approaches, we obtain substantially better statistical performance for two reasons: First, we prove a tighter and more complete boosting theorem, and second we translate the results more directly into an algorithm. We show that several simple techniques give rise to an algorithm that can compete with one-against-all in both space and predictive power while offering exponential improvements in speed when the number of classes is large.

Motivation & Objective

  • To address the challenge of efficient multiclass classification when the number of classes K is very large.
  • To develop a method that maintains predictive accuracy comparable to one-against-all (OAA), the current gold standard, while drastically reducing computational cost.
  • To enable online learning with logarithmic time complexity in K, supporting real-time and scalable learning systems.
  • To reduce memory usage compared to prior tree-based approaches, making it a practical drop-in replacement for OAA.
  • To jointly optimize tree structure, routing functions, and final predictors in an end-to-end, online fashion.

Proposed method

  • The algorithm uses a dynamically constructed tree to recursively narrow down candidate classes to a set of size O(log K), reducing the number of required class scores.
  • At each internal node, a binary classifier (router) determines the path, with routing decisions guided by an empirical recall bound to maximize candidate set coverage.
  • The final prediction is made via one-against-some (OAS) scoring over the leaf node’s candidate classes, using per-class predictors.
  • The tree and predictors are trained jointly in an online manner, enabling end-to-end optimization with minimal memory overhead.
  • Path features are added to examples during inference, encoding the traversal path to improve precision of final predictions.
  • A tightened theoretical analysis, including a new boosting-style bound, supports the algorithm’s performance guarantees.

Experimental results

Research questions

  • RQ1Can a tree-based multiclass classifier achieve both logarithmic time complexity and predictive accuracy competitive with one-against-all?
  • RQ2How can tree structure, routing functions, and final predictors be jointly optimized in an online setting for extreme multiclass problems?
  • RQ3To what extent do path features and multiple predictors per leaf improve performance in the candidate set selection process?
  • RQ4Does the use of an empirical Bernstein bound for regularization significantly improve generalization in low-sample regimes?
  • RQ5Can a method with only a factor-of-2 increase in space outperform OAA in speed while matching its accuracy for large K?

Key findings

  • On the ALOI dataset, the Recall Tree achieved better prediction performance than OAA, despite OAA being faster due to vectorization.
  • For the ODP dataset with ~10^5 classes, OAA training time was comparable to Recall Tree on a single core, but Recall Tree was 300 times faster in inference.
  • The use of an empirical Bernstein bound with multiplier 1 reduced test error from 91% to 78% on the LTCB dataset, demonstrating strong regularization benefits.
  • Adding path features and multiple predictors per leaf significantly improved performance, with all differences being statistically significant (p < 0.0001) except at candidate set size 2.
  • The algorithm achieved a 50% reduction in hyperplane evaluations (50 vs. 1000) on ALOI while maintaining competitive accuracy, showing strong asymptotic benefits for large K.
  • The Recall Tree outperformed LOMTree in both accuracy and space efficiency, using up to 64× less memory while maintaining better predictive performance.

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.