MMF: Multi-task Multi-structure Fusion for Hierarchical Image Classification

Xiaoni Li, Yucan Zhou, Yu Zhou 0015, Weiping Wang

Introduction

In computer vision, classification is often treated as a binary outcome—correct or incorrect. However, hierarchical image classification recognizes that not all mistakes are equal. For instance, misidentifying a "porcupine" as an "opossum" is a more reasonable error than misidentifying it as a "sunflower." The MMF (Multi-Task Multi-Structure Fusion) framework aims to improve classification by leveraging multiple hierarchical relationships simultaneously.

The Challenge of Single Label Structures

Standard classifiers often use "flat" one-hot encoding, assuming all classes are equally distinct. Hierarchical classifiers improve on this by organizing labels into trees. However, most existing methods rely on a single structure—either semantic (based on language/taxonomy) or visual (based on image similarity).

Comparison of different hierarchical structures: (b) illustrates a visual affinity-based grouping where a palm tree and porcupine share a superclass, while (c) shows a traditional semantic grouping.

The problem is that single structures are often incomplete. Semantic relationships might miss visual similarities (e.g., a bus and a train), while visual-only structures might ignore important conceptual links. MMF addresses this by fusing multiple perspectives to provide richer prior knowledge.

The MMF Framework

The authors propose the Multi-Task Multi-Structure Fusion (MMF) framework, which trains a neural network to recognize categories across multiple hierarchical structures.

The MMF framework architecture, featuring multiple superclass classification branches (MSCBs) attached to early stages and a conventional classification branch (CCB) at the end.

Core Components:

  1. Multiple Branches: The model uses a standard backbone (e.g., VGG16 or ResNet50) with two types of output branches:
  2. Conventional Classification Branch (CCB): Identifies the specific subclass.
  3. Multiple Superclass Classification Branches (MSCBs): Parallel branches that identify "superclasses" defined by different hierarchies.
  4. Structure Construction: MMF utilizes both Semantic ($H_S$) hierarchies (inherent in datasets like CIFAR100) and Visual/Affinity ($H_A$) hierarchies (built using spectral clustering on features from pre-trained models).
  5. Multi-Task Loss: The model minimizes a weighted sum of losses from all branches, forcing the backbone to learn features that satisfy multiple constraints.
  6. Inference Efficiency: At test time, only the CCB is used, ensuring no extra computational overhead during deployment.

Key Insights

  • Early Insertion: Attaching MSCBs to early stages of the CNN is more effective, as early layers capture generic concepts suitable for superclasses, while later layers specialize in fine-grained subclass details.
  • Complementary Constraints: By requiring the model to categorize images correctly according to both "meaning" and "look," it develops more robust internal representations.
  • Refined Metrics: Since standard accuracy doesn't capture the "severity" of a mistake, the authors use hierarchical metrics like Tree Induced Error (TIE) and Lowest Common Ancestor (LCA) to measure performance across multiple structures.

Results and Performance

MMF consistently outperforms flat classifiers and single-structure hierarchical models on benchmarks like CIFAR100 and Car196.

  • Accuracy: On the Car196 dataset with a VGG16 backbone, MMF achieved 83.67% accuracy, compared to 74.63% for a standard flat classifier.
  • Graceful Failure: Hierarchical metrics showed significant improvement. On CIFAR100 with ResNet50, the $TIE_a$ (error distance) dropped from 0.7668 to 0.7029, confirming that MMF's predictions are "closer" to the ground truth even when incorrect.

Conclusion

By moving away from a "one-size-fits-all" label structure, MMF provides a blueprint for more nuanced image recognition. While future work could explore more dynamic structure discovery, MMF demonstrates that fusing multiple hierarchical perspectives leads to better accuracy and more "reasonable" mistakes.

Summary updated

BibTeX
@inproceedings{li2021mmf,
  author = {Xiaoni Li and Yucan Zhou and Yu Zhou and Weiping Wang},
  title = {{MMF: Multi-task Multi-structure Fusion for Hierarchical Image Classification}},
  booktitle = {ICANN},
  year = {2021},
  doi = {10.1007/978-3-030-86380-7\_6},
}
Figure