Learning and using taxonomies for fast visual categorization

Gregory Griffin, Pietro Perona

Abstract

As visual recognition scales to thousands of categories, standard one-vs-all classification becomes computationally prohibitive. This paper introduces a method for automatically discovering hierarchical taxonomies from confusion matrices using spectral clustering. By replacing linear search with a logarithmic tree of binary classifiers, the approach achieves significant speedups (up to 20x) on benchmarks like Caltech-256 with a manageable trade-off in classification accuracy.

The Linear Bottleneck in Visual Recognition

The "linear bottleneck" is a major hurdle in scaling visual recognition. Most traditional multi-class classifiers use a "one-vs-all" approach: to identify an image, the system must test it against every single known category. While manageable for small datasets, the computational cost becomes a wall as the number of categories grows toward human-level scales ($10^4$ to $10^5$).

Humans do not perform exhaustive searches; we instinctively navigate mental hierarchies. To replicate this efficiency, the authors propose moving from $O(N)$ (linear) complexity to $O(\log N)$ (logarithmic) complexity by organizing categories into a structured taxonomy.

Comparison of standard one-vs-all classification (top) versus the proposed hierarchical cascade (bottom).

Methodology: Discovering Taxonomies from Confusion

The core of the proposed system is a hierarchical cascade of classifiers. Instead of one massive decision, the system uses a tree of simpler binary "branch" classifiers. The process involves four key steps:

  1. Base Classification: The system utilizes Spatial Pyramid Matching with SIFT features and Support Vector Machines (SVMs) as the underlying classification engine.
  2. Taxonomy Discovery: To build the tree, a standard classifier is run on the training set to generate a confusion matrix. This matrix reveals which categories the system naturally finds similar (e.g., mistaking a "gorilla" for a "chimp").
  3. Spectral Clustering: A greedy variant of spectral clustering recursively splits categories into two subsets that are "minimally confused." This ensures that the most difficult distinctions are saved for the leaf nodes of the tree.
  4. The Cascade: During inference, an image starts at the root. A fast binary classifier decides which branch to take. As the image descends, the number of potential categories drops exponentially, drastically reducing the total number of tests required.

Key Insights and Results

The study evaluated this approach on the Caltech-101 and Caltech-256 datasets. The latter, featuring 256 categories with significant clutter and no manual alignment, served as the primary testbed for scaling.

Emergent Semantics

A striking finding was that the automatically generated taxonomy often mirrored human logic. The algorithm consistently separated "living things" (animals and plants) from "inanimate objects" in its very first split, despite having no prior biological knowledge. This suggests that the "mistakes" a classifier makes are a signal of visual affinity rather than mere noise.

The Speed-Accuracy Trade-off

The hierarchical approach achieved a 5-fold to 20-fold speedup on Caltech-256. This massive increase in efficiency came at a relatively small cost: roughly a 10% decrease in classification accuracy compared to the exhaustive one-vs-all method.

Performance bands for Caltech-101 and Caltech-256 as the number of categories ($N_{cat}$) increases.

Furthermore, the authors found that branch classifiers only require about 10% of the total training images to be effective, reducing the offline cost of building the system. Hierarchies built via spectral clustering significantly outperformed randomly generated trees, proving that the specific structure of the taxonomy is critical to maintaining accuracy.

Limitations and Future Directions

While a 10% accuracy penalty is small relative to a 20x speedup, it remains a barrier for high-precision applications. Additionally, the current greedy algorithm does not guarantee a perfectly balanced tree; if the tree becomes too deep on one side, the logarithmic speed advantage erodes. Future work may explore "fuzzy" hierarchies where images can travel down multiple paths if a branch decision is ambiguous, potentially recovering some of the lost accuracy while maintaining sub-linear performance.

Summary updated

BibTeX
@inproceedings{griffin2008learning,
  author = {Gregory Griffin and Pietro Perona},
  title = {{Learning and using taxonomies for fast visual categorization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2008},
  doi = {10.1109/cvpr.2008.4587410},
}
Figure