Skip to main content
QUICK REVIEW

[Paper Review] Heated-Up Softmax Embedding

Xu Zhang, Felix X. Yu|arXiv (Cornell University)|Sep 11, 2018
Advanced Memory and Neural ComputingEngineering18 references39 citations
TL;DR

This paper proposes a 'heating-up' strategy that gradually increases the temperature in the softmax function during training of a deep neural network classifier, leading to improved embedding compactness and inter-class spread. By training with intermediate temperatures and fine-tuning at higher temperatures, the method achieves state-of-the-art performance on metric learning benchmarks for clustering and retrieval, outperforming existing methods with a simpler, more efficient training process.

ABSTRACT

Metric learning aims at learning a distance which is consistent with the semantic meaning of the samples. The problem is generally solved by learning an embedding for each sample such that the embeddings of samples of the same category are compact while the embeddings of samples of different categories are spread-out in the feature space. We study the features extracted from the second last layer of a deep neural network based classifier trained with the cross entropy loss on top of the softmax layer. We show that training classifiers with different temperature values of softmax function leads to features with different levels of compactness. Leveraging these insights, we propose a "heating-up" strategy to train a classifier with increasing temperatures, leading the corresponding embeddings to achieve state-of-the-art performance on a variety of metric learning benchmarks.

Motivation & Objective

  • To investigate the relationship between the softmax temperature parameter and the resulting embedding distribution in deep neural networks.
  • To address the challenge of suboptimal embedding compactness and spread in standard cross-entropy trained classifiers for metric learning.
  • To develop a training strategy that enhances embedding quality for downstream metric learning tasks like clustering and retrieval.
  • To provide a simpler, more efficient alternative to complex loss functions like triplet or contrastive loss with hard mining.

Proposed method

  • The method studies the gradient of the softmax layer to show how the temperature parameter controls embedding compactness and inter-class spread.
  • It proposes a 'heating-up' training strategy that starts with a lower temperature and gradually increases it during training.
  • The approach uses a fixed temperature in the final linear layer, with the temperature scaled via a learnable scalar α in the softmax function.
  • The method applies ℓ₂-normalization to embeddings and classifier weights, and uses α = 16 or α = 4 in the final fine-tuning phase.
  • The training process begins with a standard cross-entropy loss and transitions to higher temperatures to refine embedding structure.
  • The final embeddings are evaluated using standard metric learning metrics: Recall@K and NMI on clustering tasks.

Experimental results

Research questions

  • RQ1How does the temperature parameter in the softmax function affect the distribution of features in the bottleneck layer of a deep network?
  • RQ2Can a dynamic temperature schedule improve the compactness and spread of embeddings for metric learning?
  • RQ3Does a 'heating-up' strategy outperform fixed-temperature training in downstream metric learning tasks?
  • RQ4How does the proposed method compare to state-of-the-art metric learning methods like triplet loss and ProxyNCA?

Key findings

  • The 'heated-up' model (HLN and HBN) achieves state-of-the-art performance on all four benchmark datasets for both clustering and retrieval tasks.
  • The method outperforms the standard softmax baseline and fixed-temperature models (e.g., LN, BN) across all metrics, including Recall@1 and NMI.
  • The model trained with α = 16 achieves the best performance among fixed-temperature models, indicating optimal balance between compactness and spread.
  • The 'heating-up' strategy significantly improves performance even when using the same base network (GoogleNetV1) and evaluation metric (Euclidean distance).
  • The method achieves better or comparable results than complex state-of-the-art methods such as ProxyNCA, triplet loss with hard mining, and lifted structured loss.
  • The ablation study confirms that the 'heating-up' strategy consistently improves performance across different embedding sizes (64, 128, 256) and α values (4.0 to 64.0).

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.