Visual Confusion Label Tree for Image Classification

Yuntao Liu, Yong Dou, Ruochun Jin, Rongchun Li

Deep Convolutional Neural Networks (CNNs) have revolutionized image classification, but they come with a heavy "computational tax." While much research focuses on compressing the convolutional layers, the fully-connected (FC) layers often remain a massive bottleneck, especially for large-scale tasks with thousands of categories.

In this paper, researchers from the National University of Defense Technology propose a novel way to bypass this bottleneck: replacing the heavy FC layers with a Visual Confusion Label Tree (VCLT).

TL;DR

The authors introduce the Visual Confusion Label Tree (VCLT), a hierarchical classifier that replaces the computationally expensive fully-connected layers of a CNN. By building the tree based on how the model actually "confuses" images and using a multi-kernel SVM with hierarchical constraints, they achieved up to a 124× speedup in the classification stage with little to no loss in accuracy.

What Problem Does This Paper Address?

Standard CNNs are often too slow for real-time applications on mobile or embedded devices. While techniques like pruning and quantization help, the final fully-connected layers still require a huge amount of computation—specifically, their complexity scales linearly with the number of categories ($N$).

Tree-based classifiers offer a theoretical complexity of $O(\log N)$, but they usually suffer from lower accuracy. This is because most existing trees are built using semantic taxonomies (like WordNet) or by clustering raw image pixels, neither of which perfectly captures how a deep neural network "sees" and distinguishes between objects.

Methods

The authors propose a three-step pipeline to bridge the gap between CNN features and tree-based efficiency:

  1. Visual Confusion Label Tree (VCLT) Construction: Instead of using external labels, they build a "confusion graph" based on the output of the CNN's FC layers. If the model frequently confuses "dogs" with "cats," those categories are linked. They then apply a community detection algorithm to this graph to automatically group visually similar categories into a hierarchical tree structure.
  2. Multi-Kernel SVM Plus: To train the tree, they use a multi-kernel SVM (combining linear, polynomial, and Gaussian kernels). This allows the model to capture complex decision boundaries at each node of the tree.
  3. Hierarchical Constraints: To prevent "error propagation" (where a mistake at the top of the tree ruins the final result), they introduce an inter-level constraint. This ensures that a sample’s classification score at a child node is tied to its parent node’s score, forcing the model to be more discriminative at every level.

Datasets

The method was evaluated on two standard benchmarks:

  • CIFAR-100: 60,000 images across 100 categories.
  • ImageNet (ILSVRC2012): Over 120 million images across 1,000 categories.

Key Insights and Ideas

  • Model-Centric Tree Building: The most significant "aha moment" is that the tree structure should be dictated by the model's internal features, not human semantics. A "bicycle" and a "motorcycle" might be semantically different, but if the CNN sees them as visually similar, they belong in the same branch of the tree to ensure the final classifier can focus on their subtle differences.
  • Community Detection vs. Clustering: By using community detection on a confusion graph, the authors avoid manually setting parameters for clustering, allowing the tree to emerge naturally from the data.
  • Replacing the Bottleneck: By replacing only the FC layers, the authors keep the powerful feature-extraction capabilities of the convolutional layers while drastically reducing the cost of the final decision-making step.

Key Results

The VCLT outperformed state-of-the-art tree classifiers and provided massive speedups compared to standard FC layers:

  • Accuracy Gains: On CIFAR-100, VCLT achieved 58.63% top-1 accuracy, outperforming the "Enhanced Visual Tree" by 4.3%. On ImageNet, it reached 61.18%, a 2.4% improvement over previous tree methods.
  • Massive Speedups:
    • On AlexNet (CIFAR-100), the tree classifier was 124× faster than the original FC layers.
  • On VGG16 (CIFAR-100), it achieved a 115× speedup.
  • On ImageNet, the speedup was 37× for AlexNet.
  • Comparison to Compression: When compared to other compression methods like XNOR-Net or DeepCompression, VCLT consistently showed higher speedup ratios for the FC layers specifically.

Limitations and Future Work

While the results are impressive, there are a few trade-offs:

  • VGG16 on ImageNet: While AlexNet saw accuracy gains, the VCLT version of VGG16 on ImageNet actually saw a drop in accuracy (from 71.53% to 66.71%), though it still provided a 28× speedup. This suggests that for very deep, high-performing models, the tree structure might need further refinement to match original performance.
  • Training Complexity: Training a multi-kernel SVM for every node in a large tree can be computationally intensive during the offline phase, even if the online inference is lightning-fast.

The authors suggest that future work could involve more sophisticated ways to integrate the tree training directly into the CNN's end-to-end backpropagation.

Summary updated

BibTeX
@inproceedings{liu2018visual,
  author = {Yuntao Liu and Yong Dou and Ruochun Jin and Rongchun Li},
  title = {{Visual Confusion Label Tree for Image Classification}},
  booktitle = {ICME},
  year = {2018},
  url = {https://openreview.net/forum?id=LBFT5eK57v},
}

Loading related content...

Figure