TL;DR
This paper introduces a way to make hypercomplex neural networks—models that use multi-dimensional number systems like quaternions—inherently interpretable. By extending the "B-cos" transform to the hypercomplex domain, the authors create models that explain their own decisions through high-resolution maps, revealing that these networks uniquely focus on both objects and their surrounding context while using significantly fewer parameters than standard networks.
What Problem Does This Paper Address?
Hypercomplex Neural Networks (HNNs) are gaining traction because they are incredibly parameter-efficient and excellent at capturing multidimensional relationships (like the correlations between R, G, and B channels in an image). A flexible version called Parameterized Hypercomplex Neural Networks (PHNNs) allows researchers to define the "dimensionality" of the algebra used, making them adaptable to various data types.
However, like most deep learning models, HNNs are "black boxes." While we know they work well, we don't truly understand how they learn or what features they prioritize. Existing explainability tools (like Grad-CAM) are "post-hoc," meaning they are external probes that might not faithfully represent the model's internal logic. This paper aims to bridge that gap by designing PHNNs that are interpretable by design.
Methods
The core innovation is the PHB-cos transform. The authors take the existing B-cos transform—which replaces standard dot products with a specialized cosine similarity measure—and reformulate it for the hypercomplex domain.
- Weight Alignment: The transform pressures the network's weights to align with relevant patterns in the input data during training.
- Linear Condensation: Because of this alignment, a deep stack of these layers can be mathematically collapsed into a single linear transform for any given input. This single transform acts as a direct "explanation map" showing exactly which pixels the network used to make a classification.
- Hypercomplex Integration: They integrate this into PHNNs, where the weight matrix is constructed using Kronecker products of algebra-encoding matrices ($A_i$) and filter matrices ($F_i$). This allows the model to maintain its parameter-saving benefits (often reducing parameters by a factor of $1/n$) while becoming transparent.
Datasets
The authors evaluated their approach on two distinct datasets:
- Imagenette: A 10-class subset of the famous ImageNet dataset, used for general object recognition.
- Kvasir: A medical dataset containing 4,000 images of gastrointestinal diseases (like polyps and ulcerative colitis), which provides a more challenging, real-world test for localization and clinical relevance.
Key Insights and Ideas
- Context Matters: A surprising finding is that hypercomplex networks don't just look at the object itself; they focus heavily on the shape around the object. For example, when identifying a "truck," real-valued networks might focus only on the tires, while PHNNs capture the structure of the truck and its immediate surroundings.
- Sharpness and Detail: The explanations generated by PHNNs (specifically the $n=6$ configuration) are significantly sharper and more detailed than those from standard real-valued networks. As seen in Figure 1, the PH model captures multiple instances of an object (like parachutes or fish) that the real-valued model partially ignores.
- Evolution of Concepts: By looking at single neurons (Figure 2), the authors show that PHNNs follow a similar hierarchy to standard nets—detecting colors and edges early on and complex objects later—but they encode these concepts with a broader spatial context from the very first layers.
Key Results
- Efficiency vs. Accuracy: On Imagenette, the PHB-cos model with $n=6$ achieved 93.15% accuracy using only 1.6 million parameters. In comparison, the standard real-valued B-cos model required 11.3 million parameters to reach a slightly lower accuracy of 92.94%.
- Superior Localization: Using a "grid pointing game" to quantify how well the explanations point to the correct object, the PHB-cos method outperformed popular post-hoc tools like LIME and Grad-CAM (Figure 5).
- Clinical Faithfulness: In the Kvasir dataset, the $n=3$ PH model was more faithful to the original colors of medical samples (like the redness of inflammation in ulcerative colitis) compared to other models that tended to "green-wash" the explanations.
Limitations and Future Work
- The Interpretability Tax: As shown in Table I, there is a slight trade-off between performance and interpretability. The "baseline" non-interpretable PHNNs still generally achieve higher raw accuracy than their B-cos counterparts.
- Model Sizing: On the complex Kvasir dataset, the $n=6$ model appeared "undersized," suggesting that extreme parameter reduction might eventually hit a ceiling on very difficult tasks.
- Future Directions: The authors plan to investigate how these networks handle global versus local relations more deeply and aim to extend this interpretability framework to multi-view architectures (models that look at the same object from different angles).
Summary updated