Deep learning has achieved remarkable success in image recognition, yet most state-of-the-art models operate as "black boxes." While we can observe a model's final classification, understanding the underlying reasoning remains a challenge. Existing interpretable methods often utilize "prototypes"—representative image patches—to explain decisions. However, these methods typically focus on flat classification, failing to capture the hierarchical nature of human reasoning. For instance, a model might identify a "Siberian Husky" but cannot explain why it is categorized as an animal rather than a vehicle.
To address this, we introduce HPnet (Hierarchical Prototype network), a novel architecture that incorporates taxonomical organization into the learning process. HPnet not only provides multi-level explanations but also excels at identifying novel objects by situating them within broader known categories.
Architecture and Methodology
The HPnet architecture is designed to mirror human-like hierarchical reasoning. It consists of three primary components: shared convolutional layers for feature extraction, hierarchical prototype layers, and a joint distribution computation for final classification.
Unlike standard models with a single classification layer, HPnet features dedicated prototype layers for every parent node in a pre-defined taxonomy (e.g., "Vehicle," "Animal"). Each prototype represents a specific patch from a training image, such as a wheel or fur. The model calculates similarity scores between parts of the input image and these learned prototypes. This structure allows the model to determine not just the final label, but also the evidence supporting its membership in broader categories.
Hierarchical Reasoning and Interpretability
A key innovation of HPnet is its ability to provide conditional interpretability. The features used to distinguish an animal from a vehicle are fundamentally different from those used to distinguish a lion from a tiger. By organizing prototypes into a hierarchy, HPnet can explain its decisions at multiple levels of abstraction.
This hierarchical approach also enables Novel Class Detection. By fitting probabilistic classifiers at each parent node, the model can identify when an image belongs to a broad category (like "Vehicle") but does not match any specific sub-classes it has seen before (like "Ambulance"). For example, if trained on cars and trucks, HPnet can recognize a forklift as a "novel vehicle" by identifying vehicle-general features like wheels while noting the absence of specific car or truck prototypes.
Experimental Results
HPnet was evaluated using a subset of ImageNet organized into a taxonomy of 15 training classes and 15 novel test classes. The results demonstrate that interpretability does not come at the cost of performance:
- Accuracy: HPnet achieved a fine-grained accuracy of 82.61%, slightly outperforming its black-box VGG-16 counterpart (82.19%).
- Novelty Detection: The model identified novel sub-classes with 73.72% accuracy, proving its ability to handle "unknown unknowns" effectively.
- Latent Space Organization: Quantitative analysis showed that approximately 79% of the nearest neighbors to a prototype in the latent space belonged to the correct class, indicating a highly organized internal representation.
Conclusion and Future Work
HPnet represents a significant step toward more transparent and robust image recognition. By bridging the gap between deep learning and taxonomical reasoning, it provides human-readable explanations and handles novel data more gracefully than traditional models. Future research will focus on automating taxonomy generation and scaling the architecture to handle thousands of classes more efficiently.
Summary updated