NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hierarchical Auxiliary Learning

Jaehoon Cha, Kyeong Soo Kim, Sanghyuk Lee

Abstract

Standard Convolutional Neural Networks (CNNs) typically treat classification categories as independent, "flat" entities, ignoring the inherent hierarchical relationships found in real-world data. This paper introduces Hierarchical Auxiliary Learning (HAL), a framework that injects "superclass" information into a network via a specialized auxiliary block. By modulating feature maps based on superclass identity, HAL significantly reduces classification error rates and accelerates model convergence across standard benchmarks like MNIST, SVHN, and CIFAR-10.

Introduction

In a typical image classification task, a CNN treats every class as an independent entity. To a standard ResNet, the mathematical difference between a "Beagle" and a "Poodle" is identical to the difference between a "Beagle" and a "Truck." This "flat" assumption ignores innate hierarchies (e.g., animals vs. vehicles) and derived logical groupings (e.g., numerical ranges). As the number of classes grows, this lack of structure leads to scalability issues and higher error rates. The HAL framework aims to bridge this gap by teaching the network to recognize broader "superclasses" as a stepping stone to fine-grained classification.

Methodology: The Auxiliary Block

The core contribution of this work is the Auxiliary Block, an architectural component inserted between the last residual block and the final fully-connected (FC) layer of a ResNet.

Architecture of the HAL framework and the internal structure of the Auxiliary Block.

The Gating Mechanism

The HAL framework operates through a multi-step process:

  1. Superclass Grouping: Target classes are grouped into superclasses. These can be semantic (e.g., "transportation" vs. "animals") or non-semantic (e.g., "prime numbers" vs. "non-primes").
  2. Feature Modulation: The Auxiliary Block takes a one-hot encoded superclass vector as an additional input. It compares this vector against a learned representation of the image features to calculate a scalar auxiliary score.
  3. Element-wise Multiplication: This score acts as a "gate," multiplied element-wise by the output of the last residual block. This modulates the features before they reach the final classifier, focusing the network's attention based on the identified superclass.

Experimental Results

The researchers evaluated HAL using three standard benchmarks: MNIST, SVHN, and CIFAR-10. For each dataset, they tested multiple superclass definitions, ranging from simple numerical splits to complex semantic groupings.

Convergence and Performance

A key finding of the study was that models using HAL converged significantly faster than the baseline. The auxiliary score provides a stronger, more structured gradient signal during training, allowing the network to "solve" the broad category before refining its subclass predictions.

Training and testing loss curves comparing the baseline ResNet against the HAL-enhanced model.

As shown in the loss curves, the HAL-enhanced model (baseline + case1) reaches a lower loss state much earlier in the training process than the standard baseline. This translates to substantial improvements in final accuracy:

  • CIFAR-10: Baseline error of 6.81% was reduced to 3.30% using a simple "transportation vs. animal" split.
  • SVHN: Error dropped from 4.05% to 2.53%.
  • MNIST: Error dropped from 0.93% to 0.43%.

Discussion and Conclusion

The results demonstrate that even a small amount of "top-down" hierarchical information can significantly boost the "bottom-up" feature learning of a CNN. Interestingly, the authors found that superclasses do not necessarily need to be "logical" to humans to be helpful; even arbitrary groupings improved performance, though semantic groupings often yielded the best results.

Future Work

Currently, superclasses must be defined manually, which requires domain knowledge and may not scale to datasets with thousands of classes. Future research will focus on developing systematic or automated methods to construct these superclasses, ensuring the clearest possible separation in auxiliary scores and further optimizing the hierarchical learning process.

Summary updated

BibTeX
@article{cha2020hierarchical,
  author = {Jaehoon Cha and Kyeong Soo Kim and Sanghyuk Lee},
  title = {{Hierarchical Auxiliary Learning}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2020},
  doi = {10.1088/2632-2153/aba7b3},
}
Figure