atlas

Research map / Probabilistic and scientific modeling / Variational and generative sampling

Learning Distances from Data with Normalizing Flows and Score Matching

ICML 2025 · Probabilistic and scientific modeling › Variational and generative sampling · approach: Flow-based density estimation · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Learns density-based (Fermat) distances by using normalizing flows for more accurate graph edge weights and sliced score matching for a score-guided relaxation that computes smooth geodesics, evaluated against ground-truth geodesics on 2D GMMs/spirals and high-dimensional standard normals.

Problem

Fermat distances (density-based distances) are principled metrics for data manifolds, but existing kNN-graph estimators converge very slowly due to poor density estimates and produce rough geodesics that degrade in high dimensions.

Approach

Replace nearest-neighbor density estimates in the kNN graph with normalizing-flow densities, refine paths via a relaxation solver of the geodesic ODE (reparameterized to constant Euclidean speed) using a sliced-score-matching score model, and propose a dimension-scaled temperature beta=1/D.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace nearest-neighbor density estimates with a learned normalizing flow for graph edge weightsDensity-weighted graph method · Five two-dimensional datasetsLog Path RatioHelped
Use score matching to estimate the score directly instead of differentiating a normalizing flowRelaxation · Standard normal up to 25 dimensionsLog Path RatioHelped
Scale the Fermat metric with dimension using β=1/D rather than β=1Fermat distance · Standard normal across dimensionsLog Path RatioHelped
Replace learned density estimates with ground-truth density estimates for graph edge weights (ablation)Density-weighted graph method · Five two-dimensional datasetsLog Path RatioHelped
Use inverse-of-mean nearest-neighbor density for graph edge weights (ablation)Power-weighted graph method · Two-dimensional Gaussian mixture datasetLog Path RatioHurt
Use mean-of-inverse nearest-neighbor density for graph edge weights (ablation)Power-weighted graph method · Two-dimensional Gaussian mixture datasetLog Path RatioHurt
Use maximum endpoint nearest-neighbor density for graph edge weights (ablation)Power-weighted graph method · Two-dimensional Gaussian mixture datasetLog Path RatioHurt
Use minimum endpoint nearest-neighbor density for graph edge weights (ablation)Power-weighted graph method · Two-dimensional Gaussian mixture datasetLog Path RatioHurt
Use graph-based paths without score-based relaxation (ablation)High-dimensional geodesic computation · Standard normal across dimensionsLog Path RatioHurt
Use learned-score relaxation instead of graph-based paths alone (ablation)High-dimensional geodesic computation · Standard normal across dimensionsLog Path RatioHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic 2D standard normal 2D Gaussian mixture (3 components) circle single spiral two interleaved spirals high-dimensional standard normal up to 25D MNIST

Benchmarks: 5 two-dimensional datasets with known ground-truth densities high-dimensional standard normal (1-25D) MNIST latent-space geodesics

Metrics: Log Path Ratio (LPR) mean/std of log distances

Baselines: power-weighted shortest path (kNN graph) density-weighted graph with ground-truth density graph-based with scaled metric

Builds on: Fermat distances power-weighted shortest path distances sliced score matching FrEIA normalizing flows

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy