Table of Contents
Fetching ...

Geometric Mean Improves Loss For Few-Shot Learning

Tong Wu, Takumi Kobayashi

TL;DR

Few-shot learning requires discriminative metric learning from scarce data. The paper introduces a geometric-mean loss built on softmax-based pairwise attention to encourage a discriminative feature metric. It establishes theoretical connections showing the loss upper-bounds the NCA loss and relates to PN and classification losses, while using a flexible distance metric with strong performance for p=1. Experimental results on miniImageNet, CIFAR-FS, and tieredImageNet demonstrate competitive gains with a simple, efficient loss.

Abstract

Few-shot learning (FSL) is a challenging task in machine learning, demanding a model to render discriminative classification by using only a few labeled samples. In the literature of FSL, deep models are trained in a manner of metric learning to provide metric in a feature space which is well generalizable to classify samples of novel classes; in the space, even a few amount of labeled training examples can construct an effective classifier. In this paper, we propose a novel FSL loss based on \emph{geometric mean} to embed discriminative metric into deep features. In contrast to the other losses such as utilizing arithmetic mean in softmax-based formulation, the proposed method leverages geometric mean to aggregate pair-wise relationships among samples for enhancing discriminative metric across class categories. The proposed loss is not only formulated in a simple form but also is thoroughly analyzed in theoretical ways to reveal its favorable characteristics which are favorable for learning feature metric in FSL. In the experiments on few-shot image classification tasks, the method produces competitive performance in comparison to the other losses.

Geometric Mean Improves Loss For Few-Shot Learning

TL;DR

Few-shot learning requires discriminative metric learning from scarce data. The paper introduces a geometric-mean loss built on softmax-based pairwise attention to encourage a discriminative feature metric. It establishes theoretical connections showing the loss upper-bounds the NCA loss and relates to PN and classification losses, while using a flexible distance metric with strong performance for p=1. Experimental results on miniImageNet, CIFAR-FS, and tieredImageNet demonstrate competitive gains with a simple, efficient loss.

Abstract

Few-shot learning (FSL) is a challenging task in machine learning, demanding a model to render discriminative classification by using only a few labeled samples. In the literature of FSL, deep models are trained in a manner of metric learning to provide metric in a feature space which is well generalizable to classify samples of novel classes; in the space, even a few amount of labeled training examples can construct an effective classifier. In this paper, we propose a novel FSL loss based on \emph{geometric mean} to embed discriminative metric into deep features. In contrast to the other losses such as utilizing arithmetic mean in softmax-based formulation, the proposed method leverages geometric mean to aggregate pair-wise relationships among samples for enhancing discriminative metric across class categories. The proposed loss is not only formulated in a simple form but also is thoroughly analyzed in theoretical ways to reveal its favorable characteristics which are favorable for learning feature metric in FSL. In the experiments on few-shot image classification tasks, the method produces competitive performance in comparison to the other losses.
Paper Structure (21 sections, 15 equations, 1 figure, 3 tables)

This paper contains 21 sections, 15 equations, 1 figure, 3 tables.

Figures (1)

  • Figure 1: Performance analysis of various distance metric ${\mathtt{d}}_p$.