Abstract
Standard deep learning models often fail in ways that are semantically nonsensical to humans, such as misclassifying a cat as a shower curtain. This paper introduces a framework for training neural networks using Weighted Loss Functions (WLFs) that incorporate human semantic expectations. By leveraging human labeling or existing linguistic hierarchies like WordNet, the proposed methods ensure that when models misclassify, they do so in "explicable" ways—predicting classes that are semantically related to the ground truth. Experimental results on CIFAR and ImageNet demonstrate that this approach significantly improves the explicability of errors without compromising top-1 accuracy.
Introduction
Deep Neural Networks (DNNs) have achieved remarkable success in image classification, yet they remain prone to "inexplicable" errors. The standard training objective, Categorical Cross-Entropy (CCE), treats all misclassifications as equally incorrect. Consequently, a model might confuse a "Tabby Cat" with a "Shower Curtain" just as easily as with a "Tiger Cat." Such semantically distant errors erode human trust and can have severe societal implications.
This research argues that we should optimize for explicability: the degree to which a model's mistakes align with human intuition. If a model must fail, it should fail gracefully toward a semantically related category.
Methodology: Weighted Loss Functions
The authors propose modifying the training process by replacing CCE with a Weighted Loss Function (WLF). The loss is scaled by a weight matrix $W$, where $W_{ij}$ represents the semantic "cost" of predicting class $j$ when the true class is $i$. Three strategies for generating $W$ are explored:
- Instance-Level Human Labeling (IHL): Captures fine-grained uncertainty through soft labels provided by humans for every image. While highly accurate, it is resource-intensive.
- Class-Level Human Labeling (CHL): Humans rate the reasonableness of confusing pairs of classes. This is significantly more cost-effective than IHL.
- Existing Knowledge for Labeling (EKL): Uses linguistic hierarchies like WordNet to calculate semantic distances between class labels. This method provides a "free" source of human-aligned semantic structure.
Experimental Results
The framework was evaluated on CIFAR-10, CIFAR-100, and ImageNet, including "plus" versions of these datasets containing out-of-distribution (OOD) data from Flickr.
Accuracy and Explicability
The proposed models maintained top-1 accuracy within ~1% of standard CCE models. In some instances, the WLF acted as a regularizer, actually improving accuracy. More importantly, the models showed superior performance on explicability metrics, particularly in OOD scenarios where standard models often produce nonsensical predictions.
Human Validation
A blind study on ImageNet confirmed these findings. Human participants rated the errors of the EKL-trained model as twice as explicable (2.897 on a Likert scale) compared to the baseline model (1.456). This suggests that linguistic hierarchies like WordNet are effective proxies for human semantic expectations.
Saliency Analysis
Using Grad-CAM, the researchers observed that explicable models tend to focus more on the primary object (e.g., the hull of a ship) rather than background context (e.g., water), which standard models often use as a shortcut.
Conclusion
Training for explicability offers a path toward more trustworthy AI systems. By incorporating semantic costs into the loss function, models can be encouraged to "fail better." Future work includes scaling these methods to massive label sets and exploring task-specific semantics, such as those required for autonomous navigation.
Summary updated