Follow the Energy, Find the Path: Riemannian Metrics from Energy-Based Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Béthune, Louis, Vigouroux, David, Du, Yilun, VanRullen, Rufin, Serre, Thomas, Boutin, Victor
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914131843481600
author Béthune, Louis
Vigouroux, David
Du, Yilun
VanRullen, Rufin
Serre, Thomas
Boutin, Victor
author_facet Béthune, Louis
Vigouroux, David
Du, Yilun
VanRullen, Rufin
Serre, Thomas
Boutin, Victor
contents What is the shortest path between two data points lying in a high-dimensional space? While the answer is trivial in Euclidean geometry, it becomes significantly more complex when the data lies on a curved manifold -- requiring a Riemannian metric to describe the space's local curvature. Estimating such a metric, however, remains a major challenge in high dimensions. In this work, we propose a method for deriving Riemannian metrics directly from pretrained Energy-Based Models (EBMs) -- a class of generative models that assign low energy to high-density regions. These metrics define spatially varying distances, enabling the computation of geodesics -- shortest paths that follow the data manifold's intrinsic geometry. We introduce two novel metrics derived from EBMs and show that they produce geodesics that remain closer to the data manifold and exhibit lower curvature distortion, as measured by alignment with ground-truth trajectories. We evaluate our approach on increasingly complex datasets: synthetic datasets with known data density, rotated character images with interpretable geometry, and high-resolution natural images embedded in a pretrained VAE latent space. Our results show that EBM-derived metrics consistently outperform established baselines, especially in high-dimensional settings. Our work is the first to derive Riemannian metrics from EBMs, enabling data-aware geodesics and unlocking scalable, geometry-driven learning for generative modeling and simulation.
format Preprint
id arxiv_https___arxiv_org_abs_2505_18230
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Follow the Energy, Find the Path: Riemannian Metrics from Energy-Based Models
Béthune, Louis
Vigouroux, David
Du, Yilun
VanRullen, Rufin
Serre, Thomas
Boutin, Victor
Machine Learning
Artificial Intelligence
What is the shortest path between two data points lying in a high-dimensional space? While the answer is trivial in Euclidean geometry, it becomes significantly more complex when the data lies on a curved manifold -- requiring a Riemannian metric to describe the space's local curvature. Estimating such a metric, however, remains a major challenge in high dimensions. In this work, we propose a method for deriving Riemannian metrics directly from pretrained Energy-Based Models (EBMs) -- a class of generative models that assign low energy to high-density regions. These metrics define spatially varying distances, enabling the computation of geodesics -- shortest paths that follow the data manifold's intrinsic geometry. We introduce two novel metrics derived from EBMs and show that they produce geodesics that remain closer to the data manifold and exhibit lower curvature distortion, as measured by alignment with ground-truth trajectories. We evaluate our approach on increasingly complex datasets: synthetic datasets with known data density, rotated character images with interpretable geometry, and high-resolution natural images embedded in a pretrained VAE latent space. Our results show that EBM-derived metrics consistently outperform established baselines, especially in high-dimensional settings. Our work is the first to derive Riemannian metrics from EBMs, enabling data-aware geodesics and unlocking scalable, geometry-driven learning for generative modeling and simulation.
title Follow the Energy, Find the Path: Riemannian Metrics from Energy-Based Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.18230