Hamiltonian Score Matching and Generative Flows

Peter Holderrieth, Yilun Xu, Tommi Jaakkola
10/27/2024
cs.LGstat.ML

No official code found. Best implementation: mohashei/hamiltonian_flow (2 stars, MIT, last commit 2025-04-08).

Abstract

Classical Hamiltonian mechanics has been widely used in machine learning in the form of Hamiltonian Monte Carlo for applications with predetermined force fields. In this work, we explore the potential of deliberately designing force fields for Hamiltonian ODEs, introducing Hamiltonian velocity predictors (HVPs) as a tool for score matching and generative models. We present two innovations constructed with HVPs: Hamiltonian Score Matching (HSM), which estimates score functions by augmenting data via Hamiltonian trajectories, and Hamiltonian Generative Flows (HGFs), a novel generative model that encompasses diffusion models and flow matching as HGFs with zero force fields. We showcase the extended design space of force fields by introducing Oscillation HGFs, a generative model inspired by harmonic oscillators. Our experiments validate our theoretical insights about HSM as a novel score matching metric and demonstrate that HGFs rival leading generative modeling techniques.

View on arXivView PDF

Code Implementations(1)

MIT

Notebooks to reproduce results in Hamiltonian Score Matching and Generative Flows.

21Jupyter NotebookApr 7, 20251 years agoMIT

Similar Papers

Cite this paper

@article{holderrieth2024hamiltonian,
  title  = {Hamiltonian Score Matching and Generative Flows},
  author = {Peter Holderrieth and Yilun Xu and Tommi Jaakkola},
  year   = {2024},
  eprint = {2410.20470},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.20470},
  url    = {http://arxiv.org/abs/2410.20470v1},
  journal = {NEURIPS 2024 2024}
}

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/2410.20470.svg)](https://codeofpaper.com/paper/2410.20470)

Discussion