A Non-isotropic Probabilistic Take on Proxy-based Deep Metric Learning

Michael Kirchhof, Karsten Roth, Zeynep Akata, Enkelejda Kasneci

Abstract

Deep Metric Learning (DML) typically maps images to deterministic points on a hypersphere. This approach fails to account for image-level uncertainty and the complex, non-isotropic structures of semantic classes. We present a fully probabilistic framework that models images as isotropic von Mises-Fisher (vMF) distributions and class proxies as non-isotropic distributions (nivMF). By leveraging the embedding norm to represent concentration, our method naturally handles ambiguous samples and captures intra-class variance. Experimental results on CUB200-2011, CARS196, and SOP benchmarks demonstrate state-of-the-art performance and improved robustness.

Introduction

Deep Metric Learning (DML) aims to learn an embedding space where similar items are clustered and dissimilar items are separated. Proxy-based DML simplifies this task by comparing images to learned class representatives, or "proxies." However, standard methods treat embeddings as deterministic points and assume class distributions are isotropic "blobs." This ignores the inherent uncertainty in images (e.g., occlusion or blur) and the reality that classes often exhibit high variance in specific feature dimensions.

Methodology: Probabilistic Hyperspherical Embeddings

To address these limitations, we propose moving from point-based comparisons to distribution-to-distribution metrics on the unit hypersphere.

Non-isotropic Proxies (nivMF)

The core novelty of our work is the introduction of non-isotropic von Mises-Fisher (nivMF) distributions for class proxies. While standard vMF distributions are the spherical equivalent of isotropic Gaussians, nivMF allows for different variances in different directions. This enables the model to represent "ellipsoidal" distributions, better capturing complex intra-class structures such as sexual dimorphism in bird species or varying viewpoints of a car model.

Comparison of isotropic vMF and non-isotropic nivMF distributions on a sphere.

Modeling Image Uncertainty

We model individual images as isotropic vMF distributions. Crucially, we utilize the norm of the embedding vector—often discarded in standard DML—to represent the "concentration" or certainty of the embedding. A high norm indicates a high-confidence, feature-rich sample, while a low norm represents an ambiguous or noisy image.

Visualization of images mapped to a hypersphere, where red regions indicate the distribution of embeddings and their associated uncertainty.

Key Insights

  1. The Norm as Concentration: The embedding magnitude naturally encodes the presence of class-discriminative features. By treating this as a concentration parameter, the loss function automatically applies a "softer" touch to ambiguous images.
  2. Uncertainty as a Gradient Scaler: Mathematically, incorporating uncertainty acts as a sample-wise temperature. Highly certain samples exert a stronger influence on the embedding space, preventing the model from overfitting to noisy or uninformative data.

Experimental Results

We evaluated our approach, EL-nivMF, across three standard benchmarks: CUB200-2011 (fine-grained birds), CARS196 (car models), and Stanford Online Products (SOP).

  • Performance Gains: EL-nivMF outperformed standard ProxyNCA by 1.6 percentage points (pp) on CUB and 3.3pp on CARS.
  • State-of-the-Art: When integrated as a regularizer with ProxyAnchor (PANC + EL-nivMF), our method matched or exceeded the performance of significantly more complex SOTA models.
  • Qualitative Validation: Analysis of low-norm embeddings confirmed they correspond to images that are blurry, occluded, or contain distracting objects, validating the model's internal representation of uncertainty.

Conclusion and Future Work

By transitioning to a non-isotropic probabilistic framework, we provide a more robust and expressive inductive bias for Deep Metric Learning. While the benefits are most pronounced in datasets with sufficient samples per class to estimate variance, future work will explore "across-class priors" to improve performance on sparse datasets like SOP.

Summary updated

BibTeX
@inproceedings{kirchhof2022non,
  author = {Michael Kirchhof and Karsten Roth and Zeynep Akata and Enkelejda Kasneci},
  title = {{A Non-isotropic Probabilistic Take on Proxy-based Deep Metric Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19809-0\_25},
}
Figure