Abstract
While deep learning models have achieved remarkable success in classification tasks, their "black box" nature remains a significant barrier to deployment in high-stakes domains. Capsule Networks (CapsNets) were introduced to provide more structured representations, yet they often suffer from information contamination and concept overlap. This paper introduces iCaps, a novel architecture designed to enhance interpretability by strictly disentangling class-relevant features from irrelevant ones. By utilizing a suite of specialized losses and a GAN-based generator, iCaps ensures that learned concepts are distinct, non-overlapping, and human-understandable, all while maintaining state-of-the-art classification performance.
1. Introduction
The lack of transparency in deep neural networks poses risks in critical fields such as medicine and law. To address this, researchers from Seoul National University propose iCaps, an interpretable classifier that leverages the vector-based representation of Capsule Networks. Unlike standard models that provide only a class label, iCaps provides a concept-based explanation for its decisions, allowing users to understand the specific visual attributes—such as "beard" or "hair length"—that influenced the model's output.
2. Addressing the Interpretability Gap
Standard Capsule Networks face two primary "interpretability leaks" that hinder their transparency:
- Information Contamination: Class capsules often encode features irrelevant to the classification task, such as background noise or lighting conditions.
- Concept Overlap: Visual features are often entangled across multiple dimensions, making it impossible for humans to isolate a single, coherent concept from a single dimension.
iCaps addresses these issues by explicitly modeling intra-class variation. By recognizing that members of the same class (e.g., "male") can possess varying attributes (e.g., different hair lengths or facial hair), the model provides a more nuanced and faithful explanation of the data.
3. Methodology
The iCaps architecture integrates six components, including a Capsule Network classifier ($C_C$), a residual encoder ($E$), and a GAN-based generator ($G$). The training process is governed by three core innovations:
- Class-Supervised Disentanglement: The latent space is partitioned into a class-relevant vector ($c$) and a residual vector ($r$). Through a swapping mechanism and image reconstruction, the model is forced to isolate all classification-critical information in $c$, while $r$ captures only auxiliary details like background color.
- Contrastive Regularization ($L_{CR}$): To prevent concept overlap, a dedicated discriminator ($D_{CR}$) ensures that perturbing a single dimension in the class capsule results in a distinct, visible change in the generated image.
- Concept Informativeness ($L_{concept}$): This loss ensures that every dimension within the class capsule is active and contributes to the final explanation, preventing the occurrence of "dead" dimensions.
4. Experimental Results
The model was evaluated on MNIST, SVHN, and CelebA datasets. In classification performance, iCaps achieved 98.4% accuracy on CelebA, outperforming the baseline DeepCaps (97.4%) and nearly matching ResNet-18.
4.1. Quantitative Disentanglement
Tests confirmed that the residual vector ($r$) contained virtually no class-relevant information. When a separate classifier attempted to predict labels using only $r$, its performance was equivalent to random guessing (e.g., 10% on MNIST and 50% on CelebA), proving the effectiveness of the disentanglement strategy.
4.2. Qualitative Interpretability
On the CelebA dataset, iCaps successfully isolated eight distinct, human-understandable concepts: Age, Hair Length, Makeup, Skin Tone, Bangs, Clothing Style, Beard, and Smiling. By traversing the latent space, researchers could observe the model's internal logic as it modified these specific attributes.
5. Bias Detection and Auditing
A significant advantage of the iCaps architecture is its ability to reveal dataset biases. For instance, the model's interpretability allowed researchers to discover a learned association between "young" and "female" in the CelebA dataset, reflecting a 2:1 ratio in the training data. This capability positions iCaps as a valuable tool for auditing datasets for fairness and hidden correlations.
6. Conclusion
iCaps represents a significant advancement in interpretable deep learning. By combining the structural advantages of Capsule Networks with rigorous disentanglement techniques, it provides clear, concept-based explanations without sacrificing accuracy. Future work will focus on improving reconstruction fidelity and integrating natural language generation to provide automated textual explanations for the model's decisions.
Summary updated