Skip to main content
QUICK REVIEW

[Paper Review] Logarithmic Time Online Multiclass prediction

Anna Choromanska, John Langford|arXiv (Cornell University)|Jun 6, 2014
Machine Learning and AlgorithmsComputer Science28 references47 citations
TL;DR

This paper proposes LOMtree, an online algorithm for multiclass classification with extremely large numbers of classes, achieving logarithmic time complexity in training and inference by constructing a dynamically optimized decision tree. The method uses a novel objective function to create balanced, pure partitions at each node, enabling faster convergence and superior performance compared to existing logarithmic-time methods, especially as class counts grow.

ABSTRACT

We study the problem of multiclass classification with an extremely large number of classes (k), with the goal of obtaining train and test time complexity logarithmic in the number of classes. We develop top-down tree construction approaches for constructing logarithmic depth trees. On the theoretical front, we formulate a new objective function, which is optimized at each node of the tree and creates dynamic partitions of the data which are both pure (in terms of class labels) and balanced. We demonstrate that under favorable conditions, we can construct logarithmic depth trees that have leaves with low label entropy. However, the objective function at the nodes is challenging to optimize computationally. We address the empirical problem with a new online decision tree construction procedure. Experiments demonstrate that this online algorithm quickly achieves improvement in test error compared to more common logarithmic training time approaches, which makes it a plausible method in computationally constrained large-k applications.

Motivation & Objective

  • Address the computational bottleneck in multiclass classification when the number of classes $k$ is extremely large, where standard methods like one-against-all (OAA) scale as $\mathcal{O}(k)$.
  • Achieve both training and inference time complexity of $O(\log k)$, which is information-theoretically optimal in the worst case.
  • Develop a method that dynamically learns the hierarchical structure of labels through online optimization, rather than relying on pre-specified or random partitions.
  • Overcome the challenge of optimizing a non-convex, discrete partitioning objective that is difficult to tractably optimize with gradient-based methods.
  • Design a practical online algorithm that balances theoretical guarantees with empirical performance on real-world multiclass datasets.

Proposed method

  • Propose a new objective function for node splitting in decision trees that promotes both label purity and balance, ensuring logarithmic-depth trees with low entropy leaves.
  • Use a top-down, online decision tree construction procedure to build the hierarchy, where each node's split is optimized using gradient descent on a differentiable approximation of the partition objective.
  • Apply online gradient descent to train linear regressors in each tree node, enabling efficient, incremental learning with minimal memory and computational overhead.
  • Introduce a stopping criterion based on tree depth and swap resistance to control complexity and prevent overfitting during tree expansion.
  • Constrain the tree construction to maintain logarithmic depth while dynamically adapting splits based on data distribution, avoiding fixed or random label hierarchies.
  • Implement a pruning and early-stopping mechanism based on validation error to select optimal hyperparameters (step size, number of passes, stopping threshold).

Experimental results

Research questions

  • RQ1Can a theoretically grounded objective function for dynamic, balanced, and pure label partitioning be formulated and optimized in practice to achieve $O(\log k)$ training and test time?
  • RQ2How does the performance of an online tree construction algorithm based on this objective compare to baseline methods like OAA, Rtree, and Filter tree in terms of accuracy and speed?
  • RQ3To what extent does the proposed method close the gap between $O(\log k)$-time methods and the $O(k)$-time OAA baseline in terms of test error on large-scale multiclass problems?
  • RQ4Does the use of online learning with gradient-based optimization on a non-convex, discrete partitioning objective yield stable and effective tree structures in practice?
  • RQ5How does the method scale with increasing $k$, particularly on petabyte-scale datasets like ImageNet and ODP, where OAA is intractable?

Key findings

  • LOMtree achieves a 12.8× speedup in training time on the Aloi dataset compared to OAA, with a 5.5× improvement in per-example test time.
  • On ImageNet and ODP, LOMtree is 403.8× and 4038.5× faster in per-example test time than OAA, respectively, despite OAA being intractable for training.
  • LOMtree achieves the lowest test error among all logarithmic-time methods on all datasets, outperforming Rtree and Filter tree, with a 6.36% error on Isolet (vs. 15.10% for Filter tree).
  • On high-noise datasets like ImageNet and ODP, LOMtree still outperforms Filter tree (90.17% vs. 92.12% error), though the margin is smaller, indicating robustness under noise.
  • The algorithm converges faster in terms of test error reduction compared to OAA and other logarithmic-time baselines, especially as $k$ increases.
  • LOMtree’s performance is stable across multiple datasets, with confidence intervals showing consistent superiority over Rtree and Filter tree, and strong competitiveness with OAA where feasible.

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.