Skip to main content
QUICK REVIEW

[Paper Review] Visual Explanation for Deep Metric Learning

Sijie Zhu, Taojiannan Yang|arXiv (Cornell University)|Sep 27, 2019
Human Pose and Action RecognitionComputer Science37 references14 citations
TL;DR

This paper proposes a novel activation decomposition framework for visual explanation in deep metric learning, introducing point-specific activation maps that reveal pixel-to-pixel correspondence between images. By decomposing similarity scores into region-level contributions, the method uncovers fine-grained relationships—such as mouth-to-mouth or eye-to-eye matching—demonstrating superior interpretability over existing Grad-CAM-style methods in applications like cross-view pattern discovery and interactive retrieval.

ABSTRACT

This work explores the visual explanation for deep metric learning and its applications. As an important problem for learning representation, metric learning has attracted much attention recently, while the interpretation of such model is not as well studied as classification. To this end, we propose an intuitive idea to show where contributes the most to the overall similarity of two input images by decomposing the final activation. Instead of only providing the overall activation map of each image, we propose to generate point-to-point activation intensity between two images so that the relationship between different regions is uncovered. We show that the proposed framework can be directly deployed to a large range of metric learning applications and provides valuable information for understanding the model. Furthermore, our experiments show its effectiveness on two potential applications, i.e. cross-view pattern discovery and interactive retrieval. The source code is available at \url{https://github.com/Jeff-Zilence/Explain_Metric_Learning}.

Motivation & Objective

  • To address the lack of visual explanation in deep metric learning, particularly for understanding which image regions contribute most to similarity scores.
  • To uncover the relationship between corresponding regions in two images, beyond what global activation maps can reveal.
  • To develop a white-box explanation method applicable to diverse metric learning tasks without architectural modification.
  • To validate the utility of point-specific activation maps in real-world applications such as cross-view pattern discovery and interactive retrieval.

Proposed method

  • Proposes activation decomposition to compute the contribution of each spatial location in one image to the overall similarity score with another image.
  • Extends Grad-CAM to metric learning by computing gradients of the similarity score with respect to the last convolutional feature maps of both images.
  • Derives a gradient-based activation map using the chain rule, where the gradient is backpropagated from the cosine similarity score to the feature maps.
  • Introduces point-specific activation maps by computing the activation response of a single pixel in one image against all positions in the other image.
  • Uses global average pooling (GAP) and Jacobian-based gradient computation to generate class-agnostic, architecture-agnostic visual explanations.
  • Applies the method to Siamese networks with L2-normalized embeddings, enabling explanation without retraining or model modification.

Experimental results

Research questions

  • RQ1How can we visualize which regions in two images contribute most to their learned similarity score in deep metric learning?
  • RQ2What is the relationship between corresponding regions (e.g., eyes, mouths) in two images, and how can it be quantitatively measured?
  • RQ3Can point-specific activation maps improve model interpretability beyond global activation maps in metric learning?
  • RQ4How effective is the proposed method in real-world applications such as cross-view pattern discovery and interactive retrieval?
  • RQ5Does the proposed explanation framework outperform existing methods like Grad-CAM in capturing fine-grained matching patterns?

Key findings

  • The proposed activation decomposition method generates both overall and point-specific activation maps that reveal detailed spatial correspondence between images.
  • Point-specific activation maps show that even low-activating regions (e.g., mouth in a person re-identification image) can have strong responses to specific features (e.g., mouth in query image), which global maps miss.
  • Experiments demonstrate that the method outperforms cropping and masking baselines in generating meaningful activation maps, especially in person re-identification with GAP pooling.
  • In cross-view pattern discovery, the method successfully identifies consistent patterns like face orientation across different views.
  • Interactive retrieval results show that users can effectively refine search by focusing on high-response regions identified via point-specific maps.
  • The method is effective across diverse metric learning tasks, including face recognition, person re-identification, and image retrieval, without requiring model retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.