HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Towards Interpretable Deep Metric Learning with Structural Matching

Wenliang Zhao Yongming Rao Ziyi Wang Jiwen Lu Jie Zhou

Towards Interpretable Deep Metric Learning with Structural Matching

Abstract

How do the neural networks distinguish two images? It is of critical importance to understand the matching mechanism of deep models for developing reliable intelligent systems for many risky visual applications such as surveillance and access control. However, most existing deep metric learning methods match the images by comparing feature vectors, which ignores the spatial structure of images and thus lacks interpretability. In this paper, we present a deep interpretable metric learning (DIML) method for more transparent embedding learning. Unlike conventional metric learning methods based on feature vector comparison, we propose a structural matching strategy that explicitly aligns the spatial embeddings by computing an optimal matching flow between feature maps of the two images. Our method enables deep models to learn metrics in a more human-friendly way, where the similarity of two images can be decomposed to several part-wise similarities and their contributions to the overall similarity. Our method is model-agnostic, which can be applied to off-the-shelf backbone networks and metric learning methods. We evaluate our method on three major benchmarks of deep metric learning including CUB200-2011, Cars196, and Stanford Online Products, and achieve substantial improvements over popular metric learning methods with better interpretability. Code is available at https://github.com/wl-zhao/DIML

Code Repositories

wl-zhao/diml
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
metric-learning-on-cars196ProxyAnchor + DIML
R@1: 87.01
metric-learning-on-cub-200-2011MS + DIML
R@1: 68.15
metric-learning-on-stanford-online-products-1Margin + DIML
R@1: 79.26

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Towards Interpretable Deep Metric Learning with Structural Matching | Papers | HyperAI