Introduction
Deep Neural Networks (DNNs) have achieved remarkable performance in computer vision, yet they largely remain "black boxes." Understanding the rationale behind a model's prediction is crucial for safety-critical applications. Existing approaches generally fall into two categories: post-hoc explanations (e.g., Grad-CAM), which often lack faithfulness to the model's internal logic, and Self-Explaining Neural Networks (SENNs), which frequently suffer from reduced accuracy and architectural rigidity. Furthermore, while Shapley values provide a mathematically rigorous framework for fair attribution, their computation is prohibitively expensive for high-dimensional image data.
Methodology: Shapley Value Optimization (SVO)
This research introduces a novel multitask learning framework that embeds Shapley value estimation directly into the training process. By treating interpretability as an auxiliary task, the model learns to produce "self-explaining" outputs during a single forward pass.
Dual-Branch Architecture
The framework utilizes a dual-branch structure compatible with standard backbones like ViT-B and ResNet-50:
- Upper Branch: Processes the full image by partitioning it into patches. It employs a "soft voting" mechanism where the final prediction is the sum of the predicted importance (Shapley value) of each patch.
- Lower Branch: Processes a masked version of the image to serve as a supervisor, ensuring the model remains robust to missing information and resolving the "masking discrepancy" common in post-hoc methods.
Optimization Objective
The core innovation is the Shapley Loss, which enforces the principle of fair allocation. The model is trained to ensure that the sum of individual patch contributions equals the total prediction score. This design ensures "faithfulness by construction"—if a patch is assigned a high value, it must contribute significantly to the final logit.
Experimental Results
The framework was evaluated on large-scale benchmarks including ImageNet, ImageNet-Segmentation, and MS COCO.
Performance and Regularization
Contrary to the typical trade-off between interpretability and accuracy, SVO acts as a regularizer. A ViT-B model trained with this framework achieved 76.8% top-1 accuracy on ImageNet, a significant improvement over the 75.0% achieved by a vanilla ViT-B.
Localization and Faithfulness
The model demonstrates superior localization capabilities. On ImageNet-Segmentation, the ResNet variant (Ours-R) achieved a 66.96% mIoU, outperforming traditional attribution methods.
As shown in the figures, the generated heatmaps align closely with the physical boundaries of objects, providing clear evidence of the model's decision-making process.
Multimodal Versatility
Beyond standard classification, the method was successfully applied to CLIP-based models for image-text matching. It produced cleaner alignments between textual prompts and image regions compared to state-of-the-art competitors like ECLIP.
Discussion and Limitations
While the SVO framework offers a significant leap in efficient interpretability, some constraints remain:
- Granularity: Explanations are currently tied to patch size (e.g., 16x16), limiting pixel-level precision.
- Training Complexity: The dual-branch approach increases initial training time and memory requirements, although inference remains computationally inexpensive.
- Hyperparameters: The balance between classification and Shapley losses requires careful tuning via the $\lambda$ parameter.
Conclusion
By integrating Shapley value optimization into the training objective, this work demonstrates that models can be both high-performing and inherently interpretable. Future research will explore extending this "interpretability-as-an-auxiliary-task" paradigm to video processing and large language models.
Summary updated