Metric Space Magnitude for Evaluating the Diversity of Latent Representations

K. Limbeck, R. Andreeva, Rik Sarkar, Bastian Rieck
2/12/2026

No official code found. Best implementation: aidos-lab/magnipy (15 stars, BSD-3-Clause, last commit 2026-01-30). 1 more below.

Abstract

The magnitude of a metric space is a novel invariant that provides a measure of the 'effective size' of a space across multiple scales, while also capturing numerous geometrical properties, such as curvature, density, or entropy. We develop a family of magnitude-based measures of the intrinsic diversity of latent representations, formalising a novel notion of dissimilarity between magnitude functions of finite metric spaces. Our measures are provably stable under perturbations of the data, can be efficiently calculated, and enable a rigorous multi-scale characterisation and comparison of latent representations. We show their utility and superior performance across different domains and tasks, including (i) the automated estimation of diversity, (ii) the detection of mode collapse, and (iii) the evaluation of generative models for text, image, and graph data.

View on arXivView PDF

Code Implementations(2)

aidos-lab/magnipyCommunity100%
BSD-3-Clause

Metric Space Magnitude Computations

154Python, Jupyter NotebookMar 13, 20248 months agoBSD-3-Clause
BSD-3-Clause

Metric Space Magnitude for Evaluating the Diversity of Latent Representations

00Oct 30, 20241 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{limbeck2026metric,
  title  = {Metric Space Magnitude for Evaluating the Diversity of Latent Representations},
  author = {K. Limbeck and R. Andreeva and Rik Sarkar and Bastian Rieck},
  year   = {2026},
  eprint = {2311.16054},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.16054},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.16054.svg)](https://codeofpaper.com/paper/2311.16054)

Discussion