Evaluating multi-class learning strategies in a generative hierarchical framework for object detection

Sanja Fidler, Marko Boben, Ales LeonardisNeurIPS 2009

Introduction

As computer vision moves toward "large-scale" recognition, researchers face a fundamental scaling problem. Training a separate detector for every new object class (independent learning) causes total model size and inference time to grow linearly, eventually becoming too slow and bulky. Conversely, training one giant model for all objects at once (joint learning) encourages "feature sharing"—making the final model compact and fast—but is computationally expensive and requires re-training the entire system to add a single new class.

This paper evaluates how different learning strategies—independent, joint, and sequential—affect the performance and efficiency of hierarchical object detection models. The authors demonstrate that sequential learning provides the best trade-off, achieving sublinear growth in model size and inference time while remaining computationally feasible to train as the number of object classes scales.

Methods: The Generative Hierarchical Framework

The study is conducted within a generative hierarchical framework where objects are represented as a "vocabulary" of parts:

  • Layer 1: Basic oriented contour fragments.
  • Middle Layers: Compositions of parts from the layer below (e.g., a corner made of two lines).
  • Top Layer: The whole object shape.
Hierarchical networks showing shared and class-specific nodes across different learning strategies.

The authors compare three learning strategies within this hierarchy:

  1. Independent Training: Each class gets its own hierarchy. Only the very basic Layer 1 features are shared.
  2. Joint Training: The model is presented with all classes simultaneously. It learns "average" features that work across the whole dataset and then adds class-specific details.
  3. Sequential Training: Classes are added one by one. For a new class, the system first tries to represent it using existing parts from previous classes. It only creates new "compositions" if the existing ones are insufficient.

Key Insights

  • Sublinear Growth is Real: Both joint and sequential learning result in hierarchies that grow sublinearly. Adding the 10th class requires significantly fewer new "parts" than adding the 1st class because so much geometry is shared.
  • The "Transfer" Advantage: In sequential learning, the "degree of transfer" (how much a new class reuses old parts) is high. This naturally reduces training time for subsequent classes because the system isn't starting from scratch.
  • Ordering Matters: The order in which you learn classes affects performance. Learning a "person" before a "car" might yield different results than the reverse, suggesting that an optimal curriculum could further improve results.
  • Better Discrimination through Sharing: Surprisingly, joint and sequential models sometimes outperformed independent detectors. By sharing features, the model learns to distinguish between similar classes (like cows vs. horses) more effectively by focusing on the parts that actually differ.
Detection rates and degree of sharing across layers for different learning strategies.

Experimental Results

The authors evaluated their approach on several standard computer vision benchmarks, including UIUC (cars), GRAZ (cows/persons), Weizmann (horses), ETH-5, TUD-10, and a 50-class LabelMe test.

  • Efficiency: On the TUD-10 dataset, sequential training took 151 minutes, compared to 752 minutes for joint training, while maintaining the same 71% classification rate.
  • Model Size: The hierarchical representation for 10 classes occupied only 0.5 MB on disk, proving it could easily fit on mobile devices with limited memory.
  • Inference Speed: Sequential learning achieved significantly lower inference times than independent training. On the 50-class LabelMe test, the sequential model was much faster than the extrapolated linear cost of independent detectors.
  • Accuracy: Sequential learning consistently matched or slightly exceeded the detection performance (Recall at Equal Error Rate) of independent training across the ETH-5 and TUD-10 datasets.

Limitations and Future Work

While growth is sublinear, inference time still increases as more classes are added. For hundreds or thousands of classes, further research is needed to keep inference times within practical limits. Additionally, the experiments used a fixed 6-layer vocabulary; the impact of deeper or shallower hierarchies on the sharing-vs-accuracy trade-off wasn't fully explored. Finally, while the structure is learned without labels on parts, the system still requires bounding boxes for whole objects during training, leaving the entirely unlabeled discovery of hierarchies as an open challenge.

Summary updated

BibTeX
@inproceedings{fidler2009evaluating,
  author = {Sanja Fidler and Marko Boben and Ales Leonardis},
  title = {{Evaluating multi-class learning strategies in a generative hierarchical framework for object detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2009},
  url = {https://openreview.net/forum?id=S1WuswbuWr},
}
Figure