Explaining Cross-domain Recognition with Interpretable Deep Classifier

Yiheng Zhang, Ting Yao, Zhaofan Qiu, Tao Mei

TL;DR

This paper introduces an Interpretable Deep Classifier (IDC) that explains cross-domain recognition by identifying which source domain samples are most influential for classifying target domain samples. IDC achieves this by using a memory bank to store source sample features and their learned representative scores, allowing it to provide evidence for its decisions and even outperform full training sets when using only a tiny fraction of selected source data.

What Problem Does This Paper Address?

Deep learning models, while powerful, are often opaque "black boxes," making it difficult to understand why they make certain decisions. This lack of interpretability is particularly problematic in domain adaptation, where models trained on one data distribution (source domain) are applied to a different one (target domain). In this scenario, understanding which source examples contribute most to the model's predictions on target data is crucial for building trust, debugging, and improving the adaptation process. Existing explainability methods primarily focus on in-domain scenarios, leaving a gap in explaining cross-domain recognition.

Methods

The core of the proposed method is the Interpretable Deep Classifier (IDC). IDC works by:

  • Memory Banks: For each category, IDC maintains a memory bank. Each slot in the bank stores a "key-value" pair. The key is the feature representation of a discriminative source sample, and the value is a learnable "representative score" that indicates how well that source sample describes the category.
  • Identifying Evidence: When presented with a target image, IDC extracts its features and compares them to the keys in each memory bank. The most similar source samples (keys) are identified as "evidence" for the prediction.
  • Inferring Probability: The representative scores of these identified evidence samples are then weighted by their similarity to the target image and averaged to produce the probability score for each category. This process mimics the explainability of k-Nearest Neighbors (k-NN).
  • Training: IDC is trained by optimizing the representative scores in the memory banks using the ground-truth labels of source images. It also incorporates a memory writing mechanism to update or add new key-value pairs.
  • Joint Training: IDC is integrated into a standard adversarial learning framework for unsupervised domain adaptation. This allows it to learn domain-invariant representations while simultaneously developing its interpretable memory banks.

Datasets

The proposed method was evaluated on two standard datasets for unsupervised domain adaptation:

  • VisDA-2017: A synthetic-to-real object classification dataset with 12 categories.
  • Office-Home: A dataset with 65 object categories across four domains (Art, Clipart, Product, Real-World).

Key Insights and Ideas

  • Evidence-based Explanation: IDC provides concrete source images as "evidence" for its predictions on target images, making the decision-making process transparent.
  • Leveraging k-NN Explainability: The method draws inspiration from the intuitive distance-based reasoning of k-NN to build an interpretable deep classifier.
  • Learnable Representative Scores: By learning representative scores for source samples, IDC can go beyond simple similarity and capture more nuanced contributions to category representation.
  • Data Selection Power: IDC can effectively identify a small subset of source data that is highly relevant to the target domain, leading to surprisingly strong performance even when using only 0.1% of the original source training data. This suggests that not all source data is equally beneficial for domain adaptation.
  • Rejection Capability: The explainability of IDC allows it to intelligently "reject" making a prediction when confidence is low, preventing critical mistakes in real-world applications.

Key Results

  • Comparable Accuracy: IDC achieves classification accuracy comparable to standard fully-connected (FC) layers in adversarial learning frameworks on both VisDA-2017 and Office-Home datasets, demonstrating that interpretability doesn't come at a significant performance cost.
  • Improved Robustness: IDC showed a lower standard deviation in performance on the Office-Home dataset, suggesting increased robustness.
  • Superior Data Selection: When using IDC to select only 0.1% of source data for training on VisDA-2017, the performance surpassed that of training with the full source dataset using other methods. This highlights the effectiveness of IDC's selection strategy.
  • Reasonable Explanations: Qualitative results (Figures 5, 6, 7) show that IDC identifies visually similar and relevant source images as evidence for its predictions, offering meaningful explanations.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the use of memory banks and extensive similarity calculations during inference might introduce some computational overhead compared to simpler classifiers.
  • Negative Transfer: The paper notes that in cases of large domain discrepancy, IDC might rely on visually similar samples from other categories as explanations, even if they are not perfectly representative. This can lead to incorrect predictions, though the explanations are still considered "seemingly reasonable."
  • Future Work: The authors suggest exploring the use of IDC as a prior interpreter for selecting discriminative source images for re-training, which they demonstrate yields impressive results. Further investigation into the "negative transfer" scenarios and refining the evidence selection for more challenging domain shifts could be future directions.

Summary updated

BibTeX
@article{zhang2022explaining,
  author = {Yiheng Zhang and Ting Yao and Zhaofan Qiu and Tao Mei},
  title = {{Explaining Cross-domain Recognition with Interpretable Deep Classifier}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2022},
}
Figure