Generalized Sum Pooling for Metric Learning

08/18/2023
by   Yeti Z. Gürbüz, et al.
0

A common architectural choice for deep metric learning is a convolutional neural network followed by global average pooling (GAP). Albeit simple, GAP is a highly effective way to aggregate information. One possible explanation for the effectiveness of GAP is considering each feature vector as representing a different semantic entity and GAP as a convex combination of them. Following this perspective, we generalize GAP and propose a learnable generalized sum pooling method (GSP). GSP improves GAP with two distinct abilities: i) the ability to choose a subset of semantic entities, effectively learning to ignore nuisance information, and ii) learning the weights corresponding to the importance of each entity. Formally, we propose an entropy-smoothed optimal transport problem and show that it is a strict generalization of GAP, i.e., a specific realization of the problem gives back GAP. We show that this optimization problem enjoys analytical gradients enabling us to use it as a direct learnable replacement for GAP. We further propose a zero-shot loss to ease the learning of GSP. We show the effectiveness of our method with extensive evaluations on 4 popular metric learning benchmarks. Code is available at: GSP-DML Framework

READ FULL TEXT

page 6

page 7

research
07/14/2023

Generalizable Embeddings with Cross-batch Metric Learning

Global average pooling (GAP) is a popular component in deep metric learn...
research
07/27/2019

Hybrid-Attention based Decoupled Metric Learning for Zero-Shot Image Retrieval

In zero-shot image retrieval (ZSIR) task, embedding learning becomes mor...
research
11/14/2022

Few-shot Metric Learning: Online Adaptation of Embedding for Retrieval

Metric learning aims to build a distance metric typically by learning an...
research
12/13/2022

Regularized Optimal Transport Layers for Generalized Global Pooling Operations

Global pooling is one of the most significant operations in many machine...
research
07/29/2021

Bridging Gap between Image Pixels and Semantics via Supervision: A Survey

The fact that there exists a gap between low-level features and semantic...
research
11/17/2020

Towards Improved and Interpretable Deep Metric Learning via Attentive Grouping

Grouping has been commonly used in deep metric learning for computing di...
research
09/27/2019

Visual Explanation for Deep Metric Learning

This work explores the visual explanation for deep metric learning and i...

Please sign up or login with your details

Forgot password? Click here to reset