Skip to main content
QUICK REVIEW

[Paper Review] Embedding Expansion: Augmentation in Embedding Space for Deep Metric Learning

Byungsoo Ko, Geonmo Gu|arXiv (Cornell University)|Mar 5, 2020
Face recognition and analysisComputer Science11 references7 citations
TL;DR

This paper proposes Embedding Expansion (EE), a simple yet effective data augmentation technique in the embedding space for deep metric learning. By generating synthetic points via linear interpolation within same-class pairs and performing hard negative mining, EE boosts performance without additional networks, achieving state-of-the-art results on image retrieval and clustering benchmarks with minimal computational cost.

ABSTRACT

Learning the distance metric between pairs of samples has been studied for image retrieval and clustering. With the remarkable success of pair-based metric learning losses, recent works have proposed the use of generated synthetic points on metric learning losses for augmentation and generalization. However, these methods require additional generative networks along with the main network, which can lead to a larger model size, slower training speed, and harder optimization. Meanwhile, post-processing techniques, such as query expansion and database augmentation, have proposed the combination of feature points to obtain additional semantic information. In this paper, inspired by query expansion and database augmentation, we propose an augmentation method in an embedding space for pair-based metric learning losses, called embedding expansion. The proposed method generates synthetic points containing augmented information by a combination of feature points and performs hard negative pair mining to learn with the most informative feature representations. Because of its simplicity and flexibility, it can be used for existing metric learning losses without affecting model size, training speed, or optimization difficulty. Finally, the combination of embedding expansion and representative metric learning losses outperforms the state-of-the-art losses and previous sample generation methods in both image retrieval and clustering tasks. The implementation is publicly available.

Motivation & Objective

  • To address the limitations of existing data augmentation methods in deep metric learning that require additional generative networks, leading to increased model size and training complexity.
  • To improve generalization and performance in metric learning by generating informative synthetic samples in the embedding space using only linear interpolation.
  • To enable effective hard negative mining without introducing extra model capacity or optimization difficulty.
  • To provide a plug-and-play augmentation method compatible with existing pair-based metric learning losses.
  • To achieve state-of-the-art performance on image retrieval and clustering tasks without architectural changes.

Proposed method

  • The method generates synthetic embedding points by performing linear interpolation between pairs of same-class samples, dividing the line segment into n+1 equal parts to produce n synthetic points.
  • It applies hard negative pair mining over all combinations of original and synthetic points to select the most challenging negative pairs for training.
  • The approach operates entirely in the embedding space, avoiding the need for a separate generative network or complex operations.
  • The method is compatible with any pair-based metric learning loss, such as triplet loss, N-pair loss, lifted structured loss, and MS loss.
  • It maintains computational efficiency, with negligible overhead, as synthetic point generation relies only on simple linear algebra.
  • The final model uses the same architecture and training pipeline as the base model, with only the loss computation modified to include synthetic points.

Experimental results

Research questions

  • RQ1Can in-space data augmentation via linear interpolation in the embedding space improve metric learning performance without adding model parameters?
  • RQ2Does generating synthetic points from same-class pairs and mining hard negatives among them lead to better generalization than standard training?
  • RQ3How does the proposed method compare to existing sample generation techniques that rely on GANs or autoencoders in terms of performance and efficiency?
  • RQ4Can the method be universally applied to various pair-based metric learning losses with consistent performance gains?
  • RQ5Does the performance gain scale with the number of synthetic points, and is the computational cost manageable?

Key findings

  • Embedding Expansion significantly improves performance across all evaluated metric learning losses, with the best combination (EE + MS loss) achieving 63.3% NMI and 46.1% Recall@1 on the Stanford Online Products dataset.
  • On the CARS196 dataset, EE + MS loss achieves a 12.1% improvement in Recall@1 and 7.4% in NMI compared to the baseline triplet loss.
  • The method outperforms previous sample generation methods such as DAML and HDML on all benchmarks, including large-scale datasets like SOP, even when those methods use additional generative networks.
  • The computational overhead of generating synthetic points is negligible, with only 0.0023ms additional time for n=32 synthetic points per batch, as shown in Table 1.
  • The method achieves consistent performance gains across multiple datasets (CUB200-2011, CARS196, SOP) and tasks (retrieval and clustering), demonstrating broad applicability.
  • The performance boost is most pronounced on large-scale datasets with many categories, indicating that EE effectively leverages semantic information from synthetic points in high-variability settings.

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.