Lune

ICML2025Top-tier venue

Learning Distances from Data with Normalizing Flows and Score Matching

Peter Sorrenson, Daniel Behrend-Uriarte, Christoph Schnörr, Ullrich Köthe

Abstract

Density-based distances (DBDs) offer an elegant solution to the problem of metric learning. By defining a Riemannian metric which increases with decreasing probability density, shortest paths naturally follow the data manifold and points are clustered according to the modes of the data. We show that existing methods to estimate Fermat distances, a particular choice of DBD, suffer from poor convergence in both low and high dimensions due to i) inaccurate density estimates and ii) reliance on graph-based paths which are increasingly rough in high dimensions. To address these issues, we propose learning the densities using a normalizing flow, a generative model with tractable density estimation, and employing a smooth relaxation method using a score model initialized from a graph-based proposal. Additionally, we introduce a dimension-adapted Fermat distance that exhibits more intuitive behavior when scaled to high dimensions and offers better numerical properties. Our work paves the way for practical use of density-based distances, especially in high-dimensional spaces.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Geodesic Calculus on Implicitly Defined Latent Manifolds cites Score-Based Generative Modeling through Stochastic Differential Equations
  • Score-based Pullback Riemannian Geometry: Extracting the Data Manifold Geometry using Anisotropic Flows cites Score-Based Generative Modeling through Stochastic Differential Equations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. GeodesicNVS: Probability Density Geodesic Flow Matching for Novel View SynthesisXuqin Wang, Tao Wu, Yanfeng Zhang, Lu Liu et al.CVPR 2026 · 4 citations
  2. Geodesic Calculus on Implicitly Defined Latent ManifoldsFlorine Hartwig, Josua Sassen, Juliane Braunsmann, Martin Rumpf et al.ICML 2026 · 1 citation
  3. Score-based Pullback Riemannian Geometry: Extracting the Data Manifold Geometry using Anisotropic FlowsWillem Diepeveen, Georgios Batzolis, Zakhar Shumaylov, Carola-Bibiane SchönliebICML 2025

Builds on2

  1. Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 citations
  2. Exact computation of a manifold metric, via Lipschitz Embeddings and Shortest Paths on a GraphTimothy Chu, Gary L. Miller, Donald R. SheehySODA 2020 · 8 citations

Related papers

  1. Follow the Energy, Find the Path: Riemannian Metrics from Energy-Based ModelsLouis Béthune, David Vigouroux, Yilun Du, Rufin VanRullen et al.NeurIPS 2025 · 8 citations
  2. Denoising Normalizing FlowChristian Horvat, Jean-Pascal PfisterNeurIPS 2021 · 39 citations
  3. SoftFlow: Probabilistic Framework for Normalizing Flow on ManifoldsHyeongju Kim, Hyeonseung Lee, Woo Hyun Kang, Joun Yeop Lee et al.NeurIPS 2020 · 149 citations
  4. Tractable Density Estimation on Learned Manifolds with Conformal Embedding FlowsBrendan Leigh Ross, Jesse C. CresswellNeurIPS 2021 · 39 citations
  5. Flow Matching on General GeometriesRicky T. Q. Chen, Yaron LipmanICLR 2024 · 193 citations
Dusk over the sea between two cliffs drawn in fine vertical lines