Probabilistic Label Trees for Efficient Large Scale Image Classification

Baoyuan Liu, Fereshteh Sadeghi, Marshall F. Tappen, Ohad Shamir, Ce LiuCVPR 2013

Abstract

Large-scale recognition problems with thousands of classes pose a particular challenge because applying the classifier requires more computation as the number of classes grows. The label tree model integrates classification with the traversal of the tree so that complexity grows logarithmically. In this paper, we show how the parameters of the label tree can be found using maximum likelihood estimation. This new probabilistic learning technique produces a label tree with significantly improved recognition accuracy.

Introduction

In large-scale image recognition, datasets often encompass thousands of categories, such as the full ImageNet corpus. Standard classifiers, including Support Vector Machines (SVMs) and multinomial logistic regression, typically scale linearly with the number of classes $K$. For a classification task involving 10,000 classes, the requirement to compute $K$ dot products per image becomes a significant computational bottleneck for real-time applications.

Label trees offer a solution by organizing classes into a hierarchy, reducing classification cost to $O(\log K)$ by traversing from root to leaf. However, traditional label tree methods frequently suffer from "hard-decision" errors: a single misstep at a high-level node is irrecoverable, leading to substantial accuracy degradation compared to "flat" linear classifiers.

Probabilistic Label Tree Methodology

This work introduces the Probabilistic Label Tree, which moves away from rigid, hard-coded partitions. Instead, the probability of a label $y$ given an image $x$ is modeled as the sum of probabilities across all valid paths in the tree.

Learning via Maximum Likelihood

The model parameters are optimized using Maximum Likelihood Estimation (MLE). By defining a learning criterion based on the log-likelihood of training data, the system simultaneously learns routing parameters (which branch to follow) and leaf-level classification weights. To maintain computational feasibility, the authors utilize Jensen's Inequality to derive a lower bound on the log-likelihood, effectively decoupling nodes for independent, recursive stagewise training.

Probabilistic class distributions at different nodes illustrate how the model learns soft groupings of similar categories.

Soft Decisions and Tunable Efficiency

A core advantage of this probabilistic approach is the ability to learn "soft" groupings. Rather than relying on fixed taxonomies, the tree learns which classes are visually similar and should be grouped together. At inference time, this allows for a tunable trade-off between speed and accuracy: one can follow only the most probable path for maximum speed or explore multiple high-probability branches to improve accuracy.

Experimental Evaluation

The proposed method was evaluated on two large-scale benchmarks: ILSVRC2010 (1,000 classes, 1.2M images) and ImageNet10K (10,184 classes, ~9M images).

Key Results

The probabilistic approach significantly outperformed previous margin-based label tree methods. On ILSVRC2010, a tree with 32 children per node ($T_{32,2}$) achieved 21.38% accuracy, nearly doubling the 11.9% reported for prior state-of-the-art tree models.

The accuracy vs. dot product curve demonstrates that the proposed ML-based training significantly outperforms hard partitioning across different computational budgets.

Furthermore, the model achieved test-time speedups of 10x to 40x compared to flat linear classifiers. On the 10,000-class ImageNet10K dataset, the model demonstrated a 204x speedup over flat classifiers while maintaining competitive performance. While a "flat" LIBLINEAR model reached 24.84% accuracy, the probabilistic tree reached ~21% at 10x the speed, offering a much more favorable efficiency frontier.

Discussion and Future Work

Despite these gains, a performance gap remains between tree-based and flat classifiers, particularly as tree depth increases. Future work could involve integrating more complex, non-linear features, such as those from deep convolutional neural networks, into the probabilistic tree framework. Additionally, managing training complexity for even larger scales (e.g., 100,000 classes) remains an open challenge, as the probabilistic nature theoretically allows every sample to influence every node.

Summary updated

BibTeX
@inproceedings{liu2013probabilistic,
  author = {Baoyuan Liu and Fereshteh Sadeghi and Marshall F. Tappen and Ohad Shamir and Ce Liu},
  title = {{Probabilistic Label Trees for Efficient Large Scale Image Classification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  url = {https://openreview.net/forum?id=SybGwAbObr},
}
Figure