Distance-Ratio-Based Formulation for Metric Learning
Abstract
In metric learning, the goal is to learn an embedding so that data points with the same class are close to each other and data points with different classes are far apart. We propose a distance-ratio-based (DR) formulation for metric learning. Like softmax-based formulation for metric learning, it models , which is a probability that a query point belongs to a class . The DR formulation has two useful properties. First, the corresponding loss is not affected by scale changes of an embedding. Second, it outputs the optimal (maximum or minimum) classification confidence scores on representing points for classes. To demonstrate the effectiveness of our formulation, we conduct few-shot classification experiments using softmax-based and DR formulations on CUB and mini-ImageNet datasets. The results show that DR formulation generally enables faster and more stable metric learning than the softmax-based formulation. As a result, using DR formulation achieves improved or comparable generalization performances.
Cite
@article{arxiv.2201.08676,
title = {Distance-Ratio-Based Formulation for Metric Learning},
author = {Hyeongji Kim and Pekka Parviainen and Ketil Malde},
journal= {arXiv preprint arXiv:2201.08676},
year = {2022}
}
Comments
17 pages. Codes for our experiments are available in https://github.com/hjk92g/DR_Formulation_ML . Perhaps, we will write a new version with experiments using normalized embedding and common metric learning performance metrics